mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Rename an ambiguous parameter to avoid confusion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21406 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -792,11 +792,14 @@ gncInvoiceGetTotalInternal (GncInvoice *invoice, gboolean use_value,
|
||||
{
|
||||
GList *node;
|
||||
gnc_numeric total = gnc_numeric_zero();
|
||||
gboolean reverse;
|
||||
gboolean is_cust_doc;
|
||||
|
||||
g_return_val_if_fail (invoice, total);
|
||||
|
||||
reverse = (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_CUSTOMER);
|
||||
/* Is the current document an invoice/credit note related to a customer or a vendor/employee ?
|
||||
* The GncEntry code needs to know to return the proper entry amounts
|
||||
*/
|
||||
is_cust_doc = (gncInvoiceGetOwnerType (invoice) == GNC_OWNER_CUSTOMER);
|
||||
|
||||
for (node = gncInvoiceGetEntries(invoice); node; node = node->next)
|
||||
{
|
||||
@@ -806,7 +809,7 @@ gncInvoiceGetTotalInternal (GncInvoice *invoice, gboolean use_value,
|
||||
if (use_payment_type && gncEntryGetBillPayment (entry) != type)
|
||||
continue;
|
||||
|
||||
gncEntryGetValue (entry, reverse, &value, NULL, &tax, NULL);
|
||||
gncEntryGetValue (entry, is_cust_doc, &value, NULL, &tax, NULL);
|
||||
|
||||
if (gnc_numeric_check (value) == GNC_ERROR_OK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user