Summary: | TaxRate system preference - add note about updating vendor tax rates where required | ||
---|---|---|---|
Product: | Koha | Reporter: | David Nind <david> |
Component: | Acquisitions | Assignee: | David Nind <david> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | trivial | ||
Priority: | P5 - low | CC: | jacob.omara |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: |
This enhancement adds a note to the TaxRates system preference about updating vendors tax rates when the TaxRates system preference values are changed or removed. (Vendors retain the original value entered, and this is used to calculate the tax rate for orders.)
|
Version(s) released in: |
23.05.00,22.11.01
|
Circulation function: | |||
Attachments: |
Screenshot - tax rate field for order form (with custom values)
Screenshot - Receiving order - formatting and default values Bug 31984: TaxRate preference - add note about vendor updates Bug 31984: TaxRate preference - add note about vendor updates Bug 31984: TaxRate preference - add note about vendor updates |
Description
David Nind
2022-10-26 02:34:21 UTC
Created attachment 142659 [details]
Screenshot - tax rate field for order form (with custom values)
A screenshot showing the accounting details form for an order, where 15% and 20% values are entered into the TaxRate system preference (0.15|0.20).
Note that 19.65% is selected by default, even though it is not a value entered into the TaxRate system preference.
(In reply to David Nind from comment #1) > Created attachment 142659 [details] Also note the warning message. Created attachment 142660 [details] Screenshot - Receiving order - formatting and default values Testing notes and issues/query (tested using koha-testing-docker). Three things I noticed: 1. Tax Rate system preference warning message --------------------------------------------- Even though I defined the Tax Rate system preference as 0.15, when adding an item to a basket: for tax rate there is a message saying "Tax rate not defined in system preference TaxRates!". Despite the warning, everything is calculated correctly using the 15% tax rate. I've logged bug 31984 for this, as this was happening before the patches were applied (includes a screenshot to show what I mean). 2. Step 13 - Formatting things ------------------------------ When receiving order (see screenshot): - For the Retail price field: no space after value and the opening bracket; no space between comma and tax exclusive - For the Budgeted cost field: no space after value and the opening bracket 3. For step 13 - Query about using the default values ----------------------------------------------------- I received the order with the default values (see the screenshot). As the actual cost defaulted to $10 (as entered in step 6), then the 10.00 is the value excluding tax, so: - For step 14: spent = 10.00 - For step 15: subtotal = 10.00 - For step 17: spent = 11.50 - For step 18: subtotal = 11.50 These values are correctly calculated, but don't match up with the test plan. So should I have entered the actual costs as 8.00 (the $10 retail price less the 20% discount, tax exclusive)? Comment on attachment 142660 [details]
Screenshot - Receiving order - formatting and default values
Incorrectly added to this bug!
Either the pref or the behavior is certainly wrong! Confirmed on current master that the last value of taxrate is selected instead of the first as documented. Worked out that the 19.65 is coming from the vendor information: 1. Check "My Vendor" - tax rate is set to 19.65% - drop down list has values from TaxRates. 2. Change TaxRates, for example: from 0|0.12|0.1965 to 0|0.12|0.15 3. Vendor tax rate remains as 19.65 until you edit the vendor (when editing will default to 0%). (In reply to David Nind from comment #6) > Worked out that the 19.65 is coming from the vendor information: > 1. Check "My Vendor" - tax rate is set to 19.65% - drop down list has values > from TaxRates. > 2. Change TaxRates, for example: from 0|0.12|0.1965 to 0|0.12|0.15 > 3. Vendor tax rate remains as 19.65 until you edit the vendor (when editing > will default to 0%). Ok, that makes sense. When you create a new vendor, the first is selected correctly. So is this ok after all? (In reply to Katrin Fischer from comment #7) > Ok, that makes sense. > > When you create a new vendor, the first is selected correctly. > > So is this ok after all? It makes sense. But should there be a warning somewhere? Either (or both): - For the TaxRates system preference to say that vendor information may need updating if you remove existing values (for example, "NOTE: Current vendor information may need updating if existing tax rates values are removed.") - For the warning on the order to say something along the lines of "vendor tax rate needs updating" (Possibly "The tax rate for the vendor does not match any values in the TaxRates system preference - please update the information for this vendor." To me the warning is ok as is, but I think adding to the pref might be helpful. (In reply to Katrin Fischer from comment #9) > To me the warning is ok as is, but I think adding to the pref might be > helpful. Have assigned to myself - I think I can manage changing the text for the system preference. Created attachment 144282 [details] [review] Bug 31984: TaxRate preference - add note about vendor updates If a value for the TaxRates system preference is changed or removed, vendors retain the original value recorded in their tax rate field. The vendor tax rate is used to calculate prices for orders added to a basket. Where the tax rate doesn't match with the system preference, a warning message is displayed on the order form "Tax rate not defined in system preference TaxRates!". This patch adds a note to the system preference description about updating vendor tax rate information where required. Test plan: 1. Check the values recorded for the TaxRates system preference. 2. For a vendor (Acquisitions > search for a vendor > Edit vendor), check the value recorded in the tax rate field. 3. Note that the tax rate field is populated from a dropdown list using values from the TaxRates system preference. 4. Change the TaxRates system preferemce to remove a tax rate. For example, change 0|0.12|0.1965 to 0|0.12. 5. Refresh the vendor page. 6. Note that the vendor tax rate remains as the original value until you edit the vendor. 7. Apply the patch. 8. Review the description for the TaxRates system preference and make sure the new note about updating vendor tax rates where required makes sense. 9. Sign off! Signed-off-by: David Nind <david@davidnind.com> Created attachment 144303 [details] [review] Bug 31984: TaxRate preference - add note about vendor updates If a value for the TaxRates system preference is changed or removed, vendors retain the original value recorded in their tax rate field. The vendor tax rate is used to calculate prices for orders added to a basket. Where the tax rate doesn't match with the system preference, a warning message is displayed on the order form "Tax rate not defined in system preference TaxRates!". This patch adds a note to the system preference description about updating vendor tax rate information where required. Test plan: 1. Check the values recorded for the TaxRates system preference. 2. For a vendor (Acquisitions > search for a vendor > Edit vendor), check the value recorded in the tax rate field. 3. Note that the tax rate field is populated from a dropdown list using values from the TaxRates system preference. 4. Change the TaxRates system preferemce to remove a tax rate. For example, change 0|0.12|0.1965 to 0|0.12. 5. Refresh the vendor page. 6. Note that the vendor tax rate remains as the original value until you edit the vendor. 7. Apply the patch. 8. Review the description for the TaxRates system preference and make sure the new note about updating vendor tax rates where required makes sense. 9. Sign off! Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 144479 [details] [review] Bug 31984: TaxRate preference - add note about vendor updates If a value for the TaxRates system preference is changed or removed, vendors retain the original value recorded in their tax rate field. The vendor tax rate is used to calculate prices for orders added to a basket. Where the tax rate doesn't match with the system preference, a warning message is displayed on the order form "Tax rate not defined in system preference TaxRates!". This patch adds a note to the system preference description about updating vendor tax rate information where required. Test plan: 1. Check the values recorded for the TaxRates system preference. 2. For a vendor (Acquisitions > search for a vendor > Edit vendor), check the value recorded in the tax rate field. 3. Note that the tax rate field is populated from a dropdown list using values from the TaxRates system preference. 4. Change the TaxRates system preferemce to remove a tax rate. For example, change 0|0.12|0.1965 to 0|0.12. 5. Refresh the vendor page. 6. Note that the vendor tax rate remains as the original value until you edit the vendor. 7. Apply the patch. 8. Review the description for the TaxRates system preference and make sure the new note about updating vendor tax rates where required makes sense. 9. Sign off! Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Pushed to master for 23.05. Nice work everyone, thanks! Nice work, thanks everyone! Pushed to 22.11.x for the next release. |