Skip to content

Commit

Permalink
Rename parameter for clarity.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gjanssens committed Dec 11, 2011
1 parent 4adf872 commit 81884c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/business/business-gnome/dialog-invoice.c
Expand Up @@ -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;

Expand All @@ -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)))
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 81884c2

Please sign in to comment.