Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032594Openbravo ERP09. Financial managementpublic2016-03-29 15:162016-04-15 15:02
ngarcia 
AtulOpenbravo 
immediateminoralways
closedfixed 
5
 
3.0PR16Q23.0PR16Q2 
aferraz
Core
2015-11-20
https://code.openbravo.com/erp/devel/pi/rev/77f1cb4dd278c84913938db669a62c4c52796486 [^]
No
0032594: Cash VAT field of document header is updated to 'N' when you insert a tax rate of 0
Cash VAT field of document header is updated to 'N' when you insert a tax rate of 0
As group admin role:
   Create a Tax Rate and set it as Cash VAT
   Create an exempt tax rate (Rate = 0)
   Create a Sales Order header and check the Cash VAT field is 'N'
   Add a line and select the Cash Vat Tax Rate
   Check the Cash VAT field of the header is modified to 'Y'. This is correct
   Add a new line and select the Exempt tax rate
   Check the Cash VAT field of the header is modified to 'N'. This is not correct
   Try to book the sales order and check the following error message is raised:
     "Any of the tax rates in the document doesn't match the Cash VAT configured at the header"
The update should not be done for withholding tax rates or tax rates with 0 rate with summary level = 'N'
No tags attached.
blocks defect 0032549 closed AtulOpenbravo Cash VAT field of document header is updated to 'N' when you insert a tax rate of 0 
Issue History
2016-04-05 11:41aferrazTypedefect => backport
2016-04-05 11:41aferrazTarget Version => 3.0PR16Q2
2016-04-15 14:59hgbotCheckin
2016-04-15 14:59hgbotNote Added: 0085674
2016-04-15 14:59hgbotStatusscheduled => resolved
2016-04-15 14:59hgbotResolutionopen => fixed
2016-04-15 14:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/af0d6a9e780b431681fcce1efff618e46ab60ebd [^]
2016-04-15 15:02aferrazReview Assigned To => aferraz
2016-04-15 15:02aferrazStatusresolved => closed
2016-04-15 15:02aferrazFixed in Version => 3.0PR16Q2
2016-04-15 15:02aferrazNote Added: 0085678

Notes
(0085674)
hgbot   
2016-04-15 14:59   
Repository: erp/backports/3.0PR16Q2
Changeset: af0d6a9e780b431681fcce1efff618e46ab60ebd
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Apr 08 14:51:17 2016 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/af0d6a9e780b431681fcce1efff618e46ab60ebd [^]

Fixes Issue 32594:Cash VAT field of document header is updated to 'N'
when you insert a tax rate of 0

Added condition prior to update the order cash flag vat, to check
whether tax is non withholding tax and non zero tax.

Code is now shifted to C_OrderTax and C_InvoiceTax Triggers instead
of C_OrderLine and C_InvoiceLine Triggers.

---
M src-db/database/model/triggers/C_INVOICELINE_TRG.xml
M src-db/database/model/triggers/C_INVOICETAX_TRG.xml
M src-db/database/model/triggers/C_ORDERLINE_TRG.xml
M src-db/database/model/triggers/C_ORDERTAX_TRG.xml
---
(0085678)
aferraz   
2016-04-15 15:02   
Code review OK