Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0000331Openbravo ERP07. Sales managementpublic2008-05-16 16:412008-12-02 13:01
rafaroda 
rafaroda 
normalminoralways
closedfixed 
20Ubuntu 7.10
pi 
2.402.40 
Core
No
0000331: Taxdate field is not completed in processes that generate Invoices
While launching 'Generate Invoices' process, 'Taxdate' field is not completed. The same happens in other processes that generate invoices such as 'Create AP Invoices from Expenses' in Project & Service management

These processes should complete this field.
1) Go to Sales Management || Transactions || Sales Order
2) Create a new Warehouse Order Sale Order
3) Go to Lines tab and create a new one
4) Go back to Header tab and complete the Sale Order
5) A Shipment is automatically created
6) Go to Sales Management || Transactions || Generate Invoices
7) Select the corresponding Organization and Business Partner and click on OK button
8) Go to the Invoice created at Sales Management || Transactions || Sales Invoice
9) Invoice created is Completed but mandatory Taxdate field is not filled
10) Try to navigate to Lines tab: 'You have not filled in all needed fields' message displays
No tags attached.
related to defect 00040022.40 closed cromero Review processes that create Invoices because of Tax Date 
Issue History
2008-05-16 16:41rafarodaNew Issue
2008-05-16 16:41rafarodaAssigned To => cromero
2008-05-16 18:26rafarodaSummaryTaxdate field is not completed => Taxdate field is not completed in 'Generate Invoices' process
2008-05-16 18:35rafarodaNote Added: 0000211
2008-05-16 18:35rafarodaAssigned Tocromero => rafaroda
2008-05-16 18:35rafarodaSummaryTaxdate field is not completed in 'Generate Invoices' process => Taxdate field is not completed in processes that generate Invoices
2008-05-16 18:35rafarodaDescription Updated
2008-05-19 09:12rafarodaStatusnew => scheduled
2008-05-19 11:01rafarodaNote Added: 0000230
2008-05-19 11:10rafarodaStatusscheduled => resolved
2008-05-19 11:10rafarodaFixed in Version => trunk
2008-05-19 11:10rafarodaResolutionopen => fixed
2008-05-19 11:10rafarodaNote Added: 0000231
2008-05-21 18:56cromeroTarget Version => R2.40alpha r2
2008-06-12 09:37psarobeStatusresolved => new
2008-06-12 09:37psarobeResolutionfixed => open
2008-06-12 09:49psarobeStatusnew => scheduled
2008-06-12 09:49psarobeNote Added: 0007344
2008-06-17 08:59rafarodaRelationship deleteddepends on 0000357
2008-06-17 09:18rafarodaRelationship addedrelated to 0004002
2008-06-17 09:24rafarodaNote Added: 0007758
2008-06-17 09:24rafarodaStatusscheduled => resolved
2008-06-17 09:24rafarodaResolutionopen => fixed
2008-06-17 09:24rafarodasvn_revision => 4327
2008-06-17 09:24rafarodaTarget Version2.40alpha r2 => 2.40
2008-09-03 21:57psarobeRegression testing => No
2008-09-03 21:57psarobeStatusresolved => closed
2008-09-03 21:57psarobeFixed in Versiontrunk => 2.40
2008-12-02 13:01jaimetorresf_bug_id0 => 2377022

Notes
(0000211)
rafaroda   
2008-05-16 18:35   
The easiest and cleanest way of doing it is to add to C_Invoice trigger a clause saying that, when a new invoice is created, the Tax date is equal to the Invoice date.
(0000230)
rafaroda   
2008-05-19 11:01   
Another way of reproducing it is:
1) Project & Service Management || Transactions || Expense Sheet
2) Fill the 'Header' and go to 'Lines' tab
3) Select 'Reinvoicing', a product and a business partner.
4) Go back to 'Header' tab and click on 'Process expenses' button
5) Go to Project & Service Management || Transactions || Create AP Expense Invoices
6) Select the employee of the expense sheet, fill the dates and click on 'Process' button.
7) Go to Procurement Management || Transactions || Purchase Invoice and select the created purchase invoice.

'Tax Date' field is empty.
(0000231)
rafaroda   
2008-05-19 11:10   
Added a clause to C_INVOICE_TRG that takes DATEINVOICED as TAXDATE if no TAXDATE has been specified on inserting.

https://dev.openbravo.com/websvn/openbravo/?op=comp&compare[]=%2Ftrunk@4326&compare[]=%2Ftrunk@4327 [^]
(0007344)
psarobe   
2008-06-12 09:49   
This bug has been re-opened because the solution should be in the related process and not as a trigger. So the trigger must be removed. Besides the processes written in this bug, others can be involved:
- C_ORDER_POST
- C_INVOICE_CREATE
- Under Procurement Management || Transactions || Goods Receipt || Header exists the button Generate invoice from receipt
- Under Sales Management || Transactions || Sales Invoice || Header exists the button Copy lines
(0007758)
rafaroda   
2008-06-17 09:24   
Fixed temporarily in the trunk because a complete fix will take much longer and it is scheduled for 2.50 version: https://issues.openbravo.com/view.php?id=4002 [^]