mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #663638 - Posting Invoices asks for curency conversion for blank
lines BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21536 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -755,7 +755,8 @@ gnc_invoice_window_postCB (GtkWidget *widget, gpointer data)
|
||||
this_acc = (reverse ? gncEntryGetInvAccount (entry) :
|
||||
gncEntryGetBillAccount (entry));
|
||||
|
||||
if (!gnc_commodity_equal(gncInvoiceGetCurrency (invoice), xaccAccountGetCommodity(this_acc)))
|
||||
if (this_acc &&
|
||||
!gnc_commodity_equal (gncInvoiceGetCurrency (invoice), xaccAccountGetCommodity (this_acc)))
|
||||
{
|
||||
GNCPrice *convprice;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user