gnucash maint: When default tax table is 'None', set a new invoice/bill entry as not taxabl by default as well.
Geert Janssens
gjanssens at code.gnucash.org
Sat Jul 2 11:39:45 EDT 2016
Updated via https://github.com/Gnucash/gnucash/commit/704bc835 (commit)
from https://github.com/Gnucash/gnucash/commit/77988a72 (commit)
commit 704bc8352dd2e9bf25e73fcecfd3710858cf609f
Author: Geert Janssens <janssens-geert at telenet.be>
Date: Sat Jul 2 17:38:33 2016 +0200
When default tax table is 'None', set a new invoice/bill entry as not taxabl by default as well.
This slightly changes the semantics of a 'None' default tax table
from 'taxable but no tax details given'
to 'not taxable'.
While not exactly the same the former is a highly unlikely
situation, where the latter is more common and hence makes
more sense. In the rare case a user does want to express
the old semantics this is still possible by explicitly
creating a tax table without any details.
Note this only influences newly entered entries. It has
no influence on existing ones.
diff --git a/src/business/business-ledger/gncEntryLedgerLoad.c b/src/business/business-ledger/gncEntryLedgerLoad.c
index e96eff7..ef099d1 100644
--- a/src/business/business-ledger/gncEntryLedgerLoad.c
+++ b/src/business/business-ledger/gncEntryLedgerLoad.c
@@ -440,12 +440,14 @@ void gnc_entry_ledger_load (GncEntryLedger *ledger, GList *entry_list)
if (ledger->is_cust_doc)
{
+ gncEntrySetInvTaxable (blank_entry, table != NULL);
gncEntrySetInvTaxTable (blank_entry, table);
gncEntrySetInvTaxIncluded (blank_entry, taxincluded);
gncEntrySetInvDiscount (blank_entry, discount);
}
else
{
+ gncEntrySetBillTaxable (blank_entry, table != NULL);
gncEntrySetBillTaxTable (blank_entry, table);
gncEntrySetBillTaxIncluded (blank_entry, taxincluded);
}
Summary of changes:
src/business/business-ledger/gncEntryLedgerLoad.c | 2 ++
1 file changed, 2 insertions(+)
More information about the gnucash-changes
mailing list