Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015521Openbravo ERP03. Procurement managementpublic2010-12-24 11:062011-03-29 13:48
malsasua 
dalsasua 
highminoralways
closedfixed 
20Community Appliance
2.50MP24 
2.50MP262.50MP26 
Core
No
0015521: invoice date in the void invoice should be updatable
when you void a purchase invoice, a new invoice is created to void the initial invoice.
The invoice date of the new invoice is the date when it is voided, and this field is not updateable.
it should be updatable because this date normally is not the day that the invoice is voided
. create and process a new purchase invoice with date 01/07/2010
. void it

No tags attached.
depends on defect 0015611 closed adrianromero invoice date in the void invoice should be updatable 
related to backport 00165332.50MP30 closed adrianromero the invoice date, when the invoice is voided, should be updatable 
Issue History
2010-12-24 11:06malsasuaNew Issue
2010-12-24 11:06malsasuaAssigned To => adrianromero
2010-12-24 11:06malsasuaModules => Core
2011-01-11 12:35adrianromeroNote Added: 0033586
2011-01-11 13:09adrianromeroStatusnew => scheduled
2011-01-11 13:09adrianromerofix_in_branch => pi
2011-01-11 13:09adrianromeroTypedefect => backport
2011-01-11 13:09adrianromerofix_in_branchpi =>
2011-01-11 13:09adrianromeroIssue cloned0015611
2011-01-11 13:09adrianromeroRelationship addeddepends on 0015611
2011-01-17 09:23dalsasuaAssigned Toadrianromero => dalsasua
2011-01-17 09:24dalsasuaNote Added: 0033669
2011-01-17 14:55dalsasuaNote Edited: 0033669bug_revision_view_page.php?bugnote_id=0033669#r1427
2011-01-17 15:06dalsasuaNote Added: 0033689
2011-01-17 16:19dalsasuafix_in_branch => 2.50
2011-01-18 11:52hgbotCheckin
2011-01-18 11:52hgbotNote Added: 0033706
2011-01-18 11:52hgbotStatusscheduled => resolved
2011-01-18 11:52hgbotResolutionopen => fixed
2011-01-18 11:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/855a6f9145b21a01fc1193862aa6801368324bfc [^]
2011-01-27 18:22psarobeNote Added: 0033934
2011-01-27 18:22psarobeStatusresolved => closed
2011-01-27 18:22psarobeFixed in Version => 2.50MP26
2011-05-02 17:05adrianromeroRelationship addedrelated to 0016533

Notes
(0033586)
adrianromero   
2011-01-11 12:35   
It has to be updatable the invoice date and the accounting date of purchase void invoices only as a display logic in the field and in the trigger too.

It has to be documented too that if the invoice date or accounting date of a purchase void invoice is modified it has to be re-executed the accounting for the invoice.
(0033669)
dalsasua   
2011-01-17 09:24   
(edited on: 2011-01-17 14:55)
It must, also, be tested whether the invoice can be un-posted or not, if in void status. <- Tested; it's possible.

(0033689)
dalsasua   
2011-01-17 15:06   
This is the way I'm gonna fix it: please notice that we have, in the current scenario, two invoices involved:
- Original invoice (O), created by the user, and voided by the user manually.
- Reversal invoice (R), created automatically by the system, when the O invoice was voided.
The behavior of the system regarding the O invoice will continue to be the same: if processed, invoice date will not be modifiable; if posted, accounting date will not be modifiable (yes will be modifiable if the invoice is not posted); if voided (as if processed) invoice date will not be modifiable.

Regarding the R invoice, the behavior of the system will be: it will be created in void status (and will not be possible to un-process it) -as system behaves nowadays-; if the invoice is not posted, accounting date will be modifiable -as nowadays-; invoice date will be modifiable if it's not posted -this is new behavior-; if the invoice is posted, nor invoice date, nor accounting date will be modifiable -as nowadays-.

Please let me know if this behavior is not correct. Otherwise, I will go for that approach.
(0033706)
hgbot   
2011-01-18 11:52   
Repository: erp/stable/2.50
Changeset: 855a6f9145b21a01fc1193862aa6801368324bfc
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Jan 17 16:20:30 2011 +0100
URL: http://code.openbravo.com/erp/stable/2.50/rev/855a6f9145b21a01fc1193862aa6801368324bfc [^]

Fixes issue 15521: invoice date in the void invoice should be updatable
The invoiced date field in purchase invoice and sales invoice windows is not read only when the invoice was created automatically by the void invoice process

---
M src-db/database/model/triggers/C_INVOICE_TRG.xml
M src-db/database/sourcedata/AD_AUXILIARINPUT.xml
M src-db/database/sourcedata/AD_COLUMN.xml
---
(0033934)
psarobe   
2011-01-27 18:22   
Tested working fine