http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7180 Jonathan Druart <jonathan.druart@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Needs Signoff --- Comment #141 from Jonathan Druart <jonathan.druart@biblibre.com> --- (In reply to mathieu saby from comment #122)
Thank you for corecting the discount
with the following: - syspref: price: 947$c - a biblio with 947$c=100 - a supplier with "list price include tax = 0", I got a rrp (include tax) = 94.79 (gst is 5.5%). - a supplier with "list price include tax = 1", I got a rrp (include tax) = 100
It is what is expected. See the test plan, step 6.
I continue to find that strange. For me, if the vendor price in 947c is 100 EUR and this price "does NOT include tax", it means the book price is 100 EUR without tax, so 105.5 with tax. I cannot understand it in an other way...
The value in 947$c *includes* the tax. The rrp and ecost values are calculated depending on the supplier configuration. I rewrite the algorithm: So, the imported file always contains: price = include tax with the discount discount = the discount ecost : unit price with discount RRP : unit price If the supplier includes tax: ecost = unit price with discount, tax include RRP = unit price, tax include If a discount exists in the file: ecost = price RRP = ecost/(1-discount) If no discount in the file: RRP = price ecost = price*(1-discount [from supplier]) If the supplier does not include tax: ecost = unit price with discount, tax exclude RRP = unit price, tax exclude If a discount exists in the file: ecost = price/(1+tax) RRP = ecost/1-discount If no discount in the file: RRP = price/(1+tax) ecost = RRP(1-discount [from supplier]) -- You are receiving this mail because: You are watching all bug changes.