Menu

#1322 Tax sometimes shown for non-taxable customers

1.4
closed-works-for-me
nobody
None
1.4
5
2015-10-19
2015-01-12
John Locke
No

I'm not sure whether this is a problem in LedgerSMB or in my integration with an external system, where I'm now populating tax info and posting into Ledger -- but I'm pretty sure this is in Ledger.

We have just started charging sales tax on a set of products. The sales tax rate varies by location, and is applied to customers in Washington State, and only on particular products.

In our integration, we are manually listing the rate, basis, amount, and location code in fields stored with some recurring transactions, and posting those into sales invoices in LedgerSMB. This is working correctly for customers in Washington State.

However, one of our customers that is out of state had tax calculated and added to the invoice that was generated.

When we post the invoice with tax, we set the "manual_tax" field to 1, and then supply the tax details. In this case, we left "manual_tax" set to 0, and supplied no tax info -- so the tax was added automatically. (Our script simply reposts the values returned by the request, unless we're specifically setting a different value).

The product is set to have "Washington Sales Tax". The customer/credit account is explicitly set to not have this tax -- so the tax should not get added.

But it was -- only on the first run through the form. We re-posted the last form details after posting the invoice, when sending the email, and the generated PDF invoice has the tax calculated and applied automatically.

However, and here's the strange part -- if you re-open the invoice and generate it again, the invoice correctly omits the sales tax -- so we can work around this by emailing the invoice manually.

Discussion

  • Chris Travers

    Chris Travers - 2015-10-19

    This sort of thing sounds ike something we would need extra triage on.

    Best thing to do is check the customertax table and entries relating to the customer first.

    At present there isn't anything like a reproduceable scenario here and with the external system integration, I would recommend tech support before a bug report.

     
  • Chris Travers

    Chris Travers - 2015-10-19
    • status: open --> closed-works-for-me
    • Version: --> 1.4
     
MongoDB Logo MongoDB