Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0030155 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Localization Pack: Spain] AEAT 303 Cash VAT compatible | major | always | 2015-06-11 12:27 | 2015-06-11 15:21 | |||
Reporter | vmromanos | View Status | public | |||||
Assigned To | vmromanos | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | e96a7a7a9711 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Regression date | ||||||||
Regression introduced by commit | ||||||||
Regression level | ||||||||
Review Assigned To | ||||||||
Support ticket | 36749 | |||||||
OBNetwork customer | OBPS | |||||||
Regression introduced in release | ||||||||
Summary | 0030155: Wrong amounts calculated in scenarios where invoice's amount is higher that order's amount | |||||||
Description | In 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 Reproduce | Create 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||
|
![]() |
|
(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 (viewer) 2015-06-11 15:21 |
Verified. Positive line (Payment details line) working ok. Positive and negative lines working ok. Negative line working ok. |
![]() |
|||
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:27 | vmromanos | OBNetwork customer | => Yes |
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 12:59 | ngarcia | Support ticket | => 36749 |
2015-06-11 15:21 | psanjuan | Note Added: 0078209 | |
2015-06-11 15:21 | psanjuan | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |