Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0028739Localization Pack: SpainAEAT 390public2015-01-22 18:232015-02-04 12:55
vmromanos 
vmromanos 
normaltrivialhave not tried
closedinvalid 
20Debian 5.0
 
 
vmromanos
0028739: Negative amounts in VOLUME_OPERATIONS and SPECIFIC_OPERATIONS
According to AEAT, if any of the boxes inside the VOLUME_OPERATIONS and SPECIFIC_OPERATIONS groups is a negative amount, then the correspondent box (aka XML tag) shouldn't be included into the generated XML file.

Note that this is a very strange scenario, where a company has invoiced more credit memos than normal invoices.

Right now the automatic XML validation detects any negative value and raises an error. Instead, the process should detect that scenario and avoid including those boxes.
1. Create a sales credit memo for any tax rate (example Entregas IVA 21%) included into the 390 report for an amount bigger than the correspondent to normal invoices (for example 9.999.999€)
2. Post the invoice
3. Launch the 390 report. An error is raised
No tags attached.
related to design defect 0028858 closed vmromanos Modelo 390 2015 (to be submitted on Jan 2016) redesign so only the credit notes dated on the corresponding period are included 
Issue History
2015-01-22 18:23vmromanosNew Issue
2015-01-22 18:23vmromanosAssigned To => vmromanos
2015-01-22 18:24vmromanosSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7523#r7523
2015-01-22 18:25vmromanosSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7524#r7524
2015-01-22 18:32vmromanosStatusnew => scheduled
2015-01-22 18:32vmromanosfix_in_branch => pi
2015-01-22 18:50hgbotCheckin
2015-01-22 18:50hgbotNote Added: 0073739
2015-01-22 18:50hgbotStatusscheduled => resolved
2015-01-22 18:50hgbotResolutionopen => fixed
2015-01-22 18:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat390.es/rev/34086731e3ff8de904ac76426b5333f545c6c469 [^]
2015-02-04 12:38psanjuanRelationship addedrelated to 0028858
2015-02-04 12:50hgbotCheckin
2015-02-04 12:50hgbotNote Added: 0074076
2015-02-04 12:50vmromanosStatusresolved => new
2015-02-04 12:50vmromanosfix_in_branchpi =>
2015-02-04 12:51vmromanosReview Assigned To => vmromanos
2015-02-04 12:51vmromanosNote Added: 0074077
2015-02-04 12:51vmromanosStatusnew => closed
2015-02-04 12:51vmromanosResolutionfixed => invalid
2015-02-04 12:55psanjuanNote Added: 0074078

Notes
(0073739)
hgbot   
2015-01-22 18:50   
Repository: erp/pmods/org.openbravo.module.aeat390.es
Changeset: 34086731e3ff8de904ac76426b5333f545c6c469
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Thu Jan 22 18:46:38 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat390.es/rev/34086731e3ff8de904ac76426b5333f545c6c469 [^]

Fixed bug 28739: Negative amounts in VOLUME_OPERATIONS and SPECIFIC_OPERATIONS,

If amount is negative, it's not necessary to include it here according to AEAT. However note that the csv file will reflect these negative transactions

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/aeat390/es/api/cashvat/AEAT390CashVATReadyReport.java
---
(0074076)
hgbot   
2015-02-04 12:50   
Repository: erp/pmods/org.openbravo.module.aeat390.es
Changeset: 5a6e8cb7c8e4b071efb8c1907a46ccc342f3cf41
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Wed Feb 04 12:45:08 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.module.aeat390.es/rev/5a6e8cb7c8e4b071efb8c1907a46ccc342f3cf41 [^]

Issue 28739: Reverted changes because the solution was not right

---
M src-db/database/sourcedata/AD_MODULE.xml
M src/org/openbravo/module/aeat390/es/api/cashvat/AEAT390CashVATReadyReport.java
---
(0074077)
vmromanos   
2015-02-04 12:51   
Finally rejected the issue because the proposed solution wasn't right.
The changes have been reverted from the repository too.
(0074078)
psanjuan   
2015-02-04 12:55   
Correct proposed solution can be found on the issue related. Issue 28858.