Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0030155
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Localization Pack: Spain] AEAT 303 Cash VAT compatiblemajoralways2015-06-11 12:272015-06-11 15:21
ReportervmromanosView Statuspublic 
Assigned Tovmromanos 
PriorityimmediateResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisione96a7a7a9711
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0030155: Wrong amounts calculated in scenarios where invoice's amount is higher that order's amount

DescriptionIn case an invoice is generated from an order, and the invoice's amount is higher that order's amount, the 303 wrongly calculates the tax %.

The reason is that the negative tax amount in Invoice | Tax | Cash VAT tab is added to the total 303 tax amount (boxes [03] [06] [09]) as positive value. As a consequence, the rate % calculated for boxes [02] [05] [08] would be wrong too.
Steps To ReproduceCreate a Sales Order with a Cash VAT tax rate. Total amount 10.000€
Create an invoice from the previous order. Edit the net unit price and set a lower amount. Complete the invoice and post it.
Launch the 303. Verify tax amount is not properly calculated
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00274843.0PR14Q4 closedAtulOpenbravo Openbravo ERP Wrong cash vat lines when payment is automatically created and invoice's amount is higher that order's amount 

-  Notes
(0078207)
hgbot (developer)
2015-06-11 12:44

Repository: erp/pmods/org.openbravo.module.aeat303.es
Changeset: e96a7a7a97118fe7d19370d18dc3bbdf46c7cde4
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Thu Jun 11 12:37:45 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat303.es/rev/e96a7a7a97118fe7d19370d18dc3bbdf46c7cde4 [^]

Fixed bug 30155: Wrong amounts calculated in scenarios where invoice's amount is higher that order's amount
In this scenario, the ITCV tax amount was added as a positive value to the total tax amount. Now we add it to the total tax amount taking into account its sign.
This should be safe because Cash VAT taxes don't have complex scenarios with several child tax rates with negative rates

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/aeat303/es/util/AEAT303CalculationsHelper.java
---
(0078209)
psanjuan (manager)
2015-06-11 15:21

Verified.

Positive line (Payment details line) working ok.
Positive and negative lines working ok.
Negative line working ok.

- Issue History
Date Modified Username Field Change
2015-06-11 12:27 vmromanos New Issue
2015-06-11 12:27 vmromanos Assigned To => vmromanos
2015-06-11 12:28 vmromanos Relationship added related to 0027484
2015-06-11 12:29 vmromanos Issue cloned 0030156
2015-06-11 12:30 vmromanos Status new => scheduled
2015-06-11 12:44 hgbot Checkin
2015-06-11 12:44 hgbot Note Added: 0078207
2015-06-11 12:44 hgbot Status scheduled => resolved
2015-06-11 12:44 hgbot Resolution open => fixed
2015-06-11 12:44 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat303.es/rev/e96a7a7a97118fe7d19370d18dc3bbdf46c7cde4 [^]
2015-06-11 12:59 ngarcia Resolution time => 1437516000
2015-06-11 15:21 psanjuan Note Added: 0078209
2015-06-11 15:21 psanjuan Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker