r21718 - gnucash/branches/2.4/src/business/business-gnome - [21714]Rename parameter for clarity.
Geert Janssens
gjanssens at code.gnucash.org
Sun Dec 11 17:15:29 EST 2011
Author: gjanssens
Date: 2011-12-11 17:15:29 -0500 (Sun, 11 Dec 2011)
New Revision: 21718
Trac: http://svn.gnucash.org/trac/changeset/21718
Modified:
gnucash/branches/2.4/src/business/business-gnome/dialog-invoice.c
Log:
[21714]Rename parameter for clarity.
This one should have been committed before r21713
because that commit uses the changed parameter.
Modified: gnucash/branches/2.4/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/branches/2.4/src/business/business-gnome/dialog-invoice.c 2011-12-11 22:15:20 UTC (rev 21717)
+++ gnucash/branches/2.4/src/business/business-gnome/dialog-invoice.c 2011-12-11 22:15:29 UTC (rev 21718)
@@ -646,7 +646,7 @@
const char *text;
EntryList *entries, *entries_iter;
GncEntry* entry;
- gboolean reverse;
+ gboolean is_cust_doc;
gboolean show_dialog = TRUE;
gboolean post_ok = TRUE;
@@ -666,7 +666,7 @@
return;
}
- reverse = (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_CUSTOMER);
+ is_cust_doc = (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_CUSTOMER);
/* Make sure that the invoice has a positive balance */
if (gnc_numeric_negative_p(gncInvoiceGetTotal(invoice)))
@@ -757,7 +757,7 @@
Account *this_acc;
entry = (GncEntry*)entries_iter->data;
- this_acc = (reverse ? gncEntryGetInvAccount (entry) :
+ this_acc = (is_cust_doc ? gncEntryGetInvAccount (entry) :
gncEntryGetBillAccount (entry));
if (this_acc &&
More information about the gnucash-changes
mailing list