Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020072Openbravo ERP07. Sales managementpublic2012-03-21 12:222012-04-02 06:12
gregor1com 
dalsasua 
normalmajoralways
closedfixed 
5
3.0MP6 
3.0MP9 
Core
No
0020072: accounting date inherited from sales order to sales invoice: incorrect

If you create a sales order, book it and then create a sales invoice from the sales order automatically, the invoice date = the order date.

Take the situation where I create an order in March, then later raise the invoice for the order, say, in April, the date is inherited from March. This is incorrect because the order date does not represent the proper period for accounting on this customer transaction; the actual date when the invoice was raised would be.
see above

1. The create invoice from orders process should be modified to default the current date rather than the order date.

2. The invoice date once copied, should be modifiable.

The reason is that the accounting date for the invoice may not be today just because I ran the process today. One needs the ability to modify the invoice date after it is created from the order.

3. The create invoice process should not automatically create an accounting transaction based on order information. The process should end with the requirement for the user to 'post'.

The reason is that today the order date is taken, the invoice is created with that date, and an accounting transaction is automatically posted.


No tags attached.
Issue History
2012-03-21 12:22gregor1comNew Issue
2012-03-21 12:22gregor1comAssigned To => vmromanos
2012-03-21 12:22gregor1comModules => Core
2012-03-23 20:48dmitry_mezentsevAssigned Tovmromanos => dalsasua
2012-03-26 15:26dalsasuaStatusnew => scheduled
2012-03-26 15:26dalsasuafix_in_branch => pi
2012-03-26 22:12hgbotCheckin
2012-03-26 22:12hgbotNote Added: 0046743
2012-03-26 22:12hgbotStatusscheduled => resolved
2012-03-26 22:12hgbotResolutionopen => fixed
2012-03-26 22:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cd474abfc8be8d18c9799232b717e35c0fd83be1 [^]
2012-03-28 18:29hgbotCheckin
2012-03-28 18:29hgbotNote Added: 0046859
2012-03-28 18:29hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/cd474abfc8be8d18c9799232b717e35c0fd83be1 [^] => http://code.openbravo.com/erp/devel/pi/rev/0d42d9f113076fba5154389180256db5e2512739 [^]
2012-03-29 11:59vmromanosNote Added: 0046871
2012-03-29 11:59vmromanosStatusresolved => closed
2012-03-29 11:59vmromanosFixed in Version => 3.0MP9
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047236
2012-04-02 06:12hudsonbotCheckin
2012-04-02 06:12hudsonbotNote Added: 0047262

Notes
(0046743)
hgbot   
2012-03-26 22:12   
Repository: erp/devel/pi
Changeset: cd474abfc8be8d18c9799232b717e35c0fd83be1
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Mon Mar 26 22:12:11 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cd474abfc8be8d18c9799232b717e35c0fd83be1 [^]

Fixes issue 20072. Added 'Create Invoices With Date' field

---
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
M src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html
M src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.java
M src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.xml
---
(0046859)
hgbot   
2012-03-28 18:29   
Repository: erp/devel/pi
Changeset: 0d42d9f113076fba5154389180256db5e2512739
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Wed Mar 28 16:56:09 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0d42d9f113076fba5154389180256db5e2512739 [^]

Fixes issue 20072. Moved 'Invoice Date' button. Dates validated when submitting

---
M src-db/database/sourcedata/AD_TEXTINTERFACES.xml
M src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html
---
(0046871)
vmromanos   
2012-03-29 11:59   
code review + testing OK

Test plan:
- Create a sales order. Invoice terms = Immediate
- Book it
- Go to Create Invoices from Orders
- Select previously created order
- Introduce a wrong date in Invoice Date field, example: adfsadf
- An error is displayed
- Press Process. It can't be process
- Introduce any valid date in the Invoice Date field
- Press Process. An invoice is created
- Go to the invoice and ensure the invoice date is equal to the one introduced

- Repeat the process but this time don't select any date in the invoice date field.
- The invoice date for the new invoice should be today.
(0047236)
hudsonbot   
2012-04-02 06: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/7814864461ac [^]

Maturity status: Test
(0047262)
hudsonbot   
2012-04-02 06: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/7814864461ac [^]

Maturity status: Test