AUDIT: r21714 - gnucash/trunk/src/business/business-gnome - Rename parameter for clarity.
Geert Janssens
gjanssens at code.gnucash.org
Sun Dec 11 15:39:34 EST 2011
Author: gjanssens
Date: 2011-12-11 15:39:34 -0500 (Sun, 11 Dec 2011)
New Revision: 21714
Trac: http://svn.gnucash.org/trac/changeset/21714
Modified:
gnucash/trunk/src/business/business-gnome/dialog-invoice.c
Log:
Rename parameter for clarity.
This one should have been committed before r21713
because that commit uses the changed parameter.
BP
Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c 2011-12-11 17:53:52 UTC (rev 21713)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c 2011-12-11 20:39:34 UTC (rev 21714)
@@ -656,7 +656,7 @@
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 @@
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_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);
More information about the gnucash-changes
mailing list