Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012404Openbravo ERP07. Sales managementpublic2010-02-23 09:282010-05-18 12:12
arunkumar 
harikrishnan 
urgentmajorhave not tried
closedfixed 
5
main 
2.50MP17 
Core
No
0012404: Complete and reactivate sales order - delete the lines - Now Total Net Amount and Total Gross Amount are same
Create a sales order and complete it.
Assume the Total Net Amount is 10 and Grant Total amount is 11.
Now reactivate the sales order.Delete the lines and come back to header.
Total Net Amount and Grant Total Amount are 10.
Go to Sales Management -> Transactions -> Sales order -> Header.
Click new and select the business partner "Millman".
Go to lines and select the product Hammer.
Enter the Ordered quantity as 1, net unit price as 10, tax as VAT 10%.
Go back to header and complete the sales order.
Now reactivate the sales order by clicking Close button.
The document status will be changed to "Draft"
Go to lines and delete the record.
Come back to header and verify the Total Net Amount and Total Gross Amount. Both are displayed as 10.

Total Net Amount and Total Gross Amount should be displayed as zero since we have deleted the Lines tab.
No tags attached.
has duplicate defect 0012884 closed adrianromero Sales Orders/Sales Invoices don't update header totals when a line is deleted 
blocks defect 00131582.50MP17 closed adrianromero Complete and reactivate sales invoice- delete the lines - Now Total Net Amount and Total Gross Amount are not zero 
Issue History
2010-02-23 09:28arunkumarNew Issue
2010-02-23 09:28arunkumarAssigned To => adrianromero
2010-02-23 10:43arunkumarTarget Version => 2.50MP14
2010-02-23 10:43arunkumarProposed Solution updated
2010-02-23 10:44arunkumarPrioritynormal => urgent
2010-02-23 10:44arunkumarStatusnew => scheduled
2010-02-23 10:44arunkumarfix_in_branch => pi
2010-02-23 13:08arunkumarfix_in_branchpi =>
2010-03-08 16:05jpabloaeTarget Version2.50MP14 => 2.50MP15
2010-04-01 08:14harikrishnanAssigned Toadrianromero => harikrishnan
2010-04-01 08:24hgbotCheckin
2010-04-01 08:24hgbotNote Added: 0025855
2010-04-01 08:24hgbotStatusscheduled => resolved
2010-04-01 08:24hgbotResolutionopen => fixed
2010-04-01 08:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fc18da8fb8f73d323eff2cab7e5b0ccf952402ce [^]
2010-04-01 08:25harikrishnanNote Added: 0025856
2010-04-05 07:40sureshbabuNote Added: 0025872
2010-04-05 07:40sureshbabuStatusresolved => closed
2010-04-06 00:00anonymoussf_bug_id0 => 2982346
2010-04-06 17:44psarobeRelationship addedhas duplicate 0012884
2010-04-19 21:12hudsonbotCheckin
2010-04-19 21:12hudsonbotNote Added: 0026408
2010-04-29 13:07arunkumarRelationship addedblocks 0013158
2010-05-18 12:12gorka_gilTarget Version2.50MP15 => 2.50MP17

Notes
(0025855)
hgbot   
2010-04-01 08:24   
Repository: erp/devel/pi
Changeset: fc18da8fb8f73d323eff2cab7e5b0ccf952402ce
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Thu Apr 01 12:04:44 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/fc18da8fb8f73d323eff2cab7e5b0ccf952402ce [^]

Fixes issue 12404: Complete and reactivate sales order - delete the lines - Now Total Net Amount and Total Gross Amount are same

---
M src-db/database/model/triggers/C_ORDERLINE_TRG2.xml
---
(0025856)
harikrishnan   
2010-04-01 08:25   
Steps to Test:

*Create a sales order and and create a 2 lines for that order.
*Complete the above created order and again reactivate the order.
*Now delete the lines.
*Now the Linenet amount and Total gross amount are updated.
(0025872)
sureshbabu   
2010-04-05 07:40   
Tested working fine (tested in PI context)
(0026408)
hudsonbot   
2010-04-19 21:12   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/fc18da8fb8f7 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/91d98bda46c1 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17088.obx [^]