Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032595Openbravo ERP09. Financial managementpublic2016-03-29 15:162016-04-15 15:02
ngarcia 
AtulOpenbravo 
immediateminoralways
closedfixed 
5
 
3.0PR16Q1.13.0PR16Q1.1 
aferraz
Core
2015-11-20
https://code.openbravo.com/erp/devel/pi/rev/77f1cb4dd278c84913938db669a62c4c52796486 [^]
No
0032595: 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.0PR16Q1.1
2016-04-15 14:59hgbotCheckin
2016-04-15 14:59hgbotNote Added: 0085675
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.0PR16Q1.1/rev/7a915dae15ed77349d31c68374b667a9670d00a9 [^]
2016-04-15 15:02aferrazReview Assigned To => aferraz
2016-04-15 15:02aferrazNote Added: 0085677
2016-04-15 15:02aferrazStatusresolved => closed
2016-04-15 15:02aferrazFixed in Version => 3.0PR16Q1.1

Notes
(0085675)
hgbot   
2016-04-15 14:59   
Repository: erp/backports/3.0PR16Q1.1
Changeset: 7a915dae15ed77349d31c68374b667a9670d00a9
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Apr 11 11:29:50 2016 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR16Q1.1/rev/7a915dae15ed77349d31c68374b667a9670d00a9 [^]

Fixes Issue 32595: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
---
(0085677)
aferraz   
2016-04-15 15:02   
Code review OK