Openbravo Issue Tracking System - Localization Pack: Spain
View Issue Details
0025721Localization Pack: SpainAEAT 349public2014-02-13 11:522014-05-07 18:12
maite 
caristu 
urgentmajoralways
closedfixed 
5
 
 
0025721: Should be possible to set "349 corrective" flag in Manual Reversed Invoices already processed
Currently, when an invoice is voided using "Void" process you can access its Reversed Invoice tab and define it as "349 corrective". However, if your invoice was manually voided (not using "Void" process but manually creating new Reversed Sales Invoice referencing your original invoice) when you try to set is as "349 corrective" you receive "Posted/processed error"
1. Register new Reversed Sales Invoice. Add any negative line.
2. Access "Reversed Invoice" tab and define any invoice as referenced.
3. Process invoice
4. Access to Reversed Invoice tab again an try to set is as "349 corrective". You will receive error.
Problem is that C_INVOICE_REVERSE_TRG (core trigger) only allows to modify processed invoices in VO status:

IF ((v_isposted='Y') OR (v_isprocessed='Y' AND v_docstatus<>'VO')) THEN
     RAISE_APPLICATION_ERROR(-20000, '@20501@') ;
END IF;

However, it is necessary to be able to modify 349 fields of Reversed Invoices manually registered
No tags attached.
Issue History
2014-02-13 11:52maiteNew Issue
2014-02-13 11:52maiteAssigned To => jonalegriaesarte
2014-02-13 12:07maiteIssue Monitored: networkb
2014-03-12 10:31jonalegriaesarteResolution time => 1395270000
2014-03-31 16:41jonalegriaesarteResolution time1395270000 => 1396476000
2014-04-02 14:50jonalegriaesarteAssigned Tojonalegriaesarte => caristu
2014-05-02 08:32hgbotCheckin
2014-05-02 08:32hgbotNote Added: 0066777
2014-05-02 08:32hgbotStatusnew => resolved
2014-05-02 08:32hgbotResolutionopen => fixed
2014-05-02 08:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/bf3f4a3acfdaff953b33a20c34609a8a54b25423 [^]
2014-05-02 13:25maiteNote Added: 0066790
2014-05-02 13:25maiteStatusresolved => closed
2014-05-07 18:12hudsonbotCheckin
2014-05-07 18:12hudsonbotNote Added: 0066991

Notes
(0066777)
hgbot   
2014-05-02 08:32   
Repository: erp/devel/pi
Changeset: bf3f4a3acfdaff953b33a20c34609a8a54b25423
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri May 02 08:31:26 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/bf3f4a3acfdaff953b33a20c34609a8a54b25423 [^]

fixes issue 25721: Should be possible to set 349 corrective flag
 in Manual Reversed Invoices already processed

---
M src-db/database/model/triggers/C_INVOICE_REVERSE_TRG.xml
---
(0066790)
maite   
2014-05-02 13:25   
verified
(0066991)
hudsonbot   
2014-05-07 18:12   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/02ca2648bcdc [^]
Maturity status: Test