mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Rename parameter for clarity.
This one should have been committed before r21713 because that commit uses the changed parameter. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21714 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -656,7 +656,7 @@ gnc_invoice_window_postCB (GtkWidget *unused_widget, gpointer data)
|
||||
const char *text;
|
||||
EntryList *entries, *entries_iter;
|
||||
GncEntry* entry;
|
||||
gboolean reverse;
|
||||
gboolean is_cust_doc;
|
||||
gboolean show_dialog = TRUE;
|
||||
gboolean post_ok = TRUE;
|
||||
|
||||
@@ -676,7 +676,7 @@ gnc_invoice_window_postCB (GtkWidget *unused_widget, gpointer data)
|
||||
return;
|
||||
}
|
||||
|
||||
reverse = (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_CUSTOMER);
|
||||
is_cust_doc = (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_CUSTOMER);
|
||||
|
||||
// /* Make sure that the invoice/credit note has a positive balance */
|
||||
// if (gnc_numeric_negative_p(gncInvoiceGetTotal(invoice)))
|
||||
@@ -768,7 +768,7 @@ gnc_invoice_window_postCB (GtkWidget *unused_widget, gpointer data)
|
||||
gnc_commodity *account_currency;
|
||||
|
||||
entry = (GncEntry*)entries_iter->data;
|
||||
this_acc = (reverse ? gncEntryGetInvAccount (entry) :
|
||||
this_acc = (is_cust_doc ? gncEntryGetInvAccount (entry) :
|
||||
gncEntryGetBillAccount (entry));
|
||||
account_currency = xaccAccountGetCommodity (this_acc);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user