Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020553Openbravo ERP07. Sales managementpublic2012-05-19 04:322013-05-23 01:32
fleroux 
dmiguelez 
highmajoralways
closedfixed 
30Professional Appliance
pi 
 
Sandrahuguet
Mozilla Firefox
Core
No
0020553: Total Gross Amount issue
The gross amount calculation is calculated incorrectly when applying a discount AND reactivation
1. Create a sales invoice header
2. Create a sales invoice line for the header (allocate 5% tax)
3. Now allocate a discount line to the invoice (I allocate 7% discount)
4. Note the gross amount (at this stage the discount is not applied; this will happen when you hit complete/post). as an example i noted my gross amount before posting to be 22$
4. Now hit complete/post (the result gross amount CORRECTLY applies the discount) and note the amount (in my case 20$)
5. Now reactivate/unpost the invoice (You will note that the gross amount does NOT revert back to the original amount). So in my example I expected the amount to revert to $22 but instead the gross amount reverts to some arbitrary amount i.e. 24$
Somewhere during the unpost / reactivate the original calculation is not being repeated. Appreciate if you can fix this.
No tags attached.
related to defect 0021068 closed pramakrishnan Reactivating an invoice that has discounts and price includes taxes, the tax amt sometimes is not correct 
Issue History
2012-05-19 04:32flerouxNew Issue
2012-05-19 04:32flerouxAssigned To => mirurita
2012-05-19 04:32flerouxWeb browser => Mozilla Firefox
2012-05-19 04:32flerouxModules => Core
2012-05-23 13:48SandrahuguetStatusnew => scheduled
2012-05-23 13:48SandrahuguetAssigned Tomirurita => Sandrahuguet
2012-05-23 13:48Sandrahuguetfix_in_branch => pi
2012-07-13 12:09psarobeRelationship addedrelated to 0021068
2013-05-02 19:05dmiguelezNote Added: 0058445
2013-05-02 19:05dmiguelezStatusscheduled => closed
2013-05-02 19:05dmiguelezResolutionopen => unable to reproduce
2013-05-03 08:22dmiguelezStatusclosed => new
2013-05-03 08:22dmiguelezResolutionunable to reproduce => open
2013-05-03 12:11SandrahuguetNote Deleted: 0058445
2013-05-03 13:24SandrahuguetWeb browserMozilla Firefox => Mozilla Firefox
2013-05-03 13:24SandrahuguetTriggers an Emergency Pack => No
2013-05-03 13:24SandrahuguetTypedefect => design defect
2013-05-03 13:24Sandrahuguetfix_in_branchpi =>
2013-05-06 17:21SandrahuguetWeb browserMozilla Firefox => Mozilla Firefox
2013-05-06 17:21SandrahuguetAssigned ToSandrahuguet => dmiguelez
2013-05-06 17:21SandrahuguetTypedesign defect => defect
2013-05-07 10:24hgbotCheckin
2013-05-07 10:24hgbotNote Added: 0058481
2013-05-07 10:24hgbotStatusnew => resolved
2013-05-07 10:24hgbotResolutionopen => fixed
2013-05-07 10:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cff22f4a86ed32b92458e5f37e101f1921ada44c [^]
2013-05-07 10:36SandrahuguetReview Assigned To => Sandrahuguet
2013-05-07 10:36SandrahuguetNote Added: 0058482
2013-05-07 10:36SandrahuguetStatusresolved => closed
2013-05-23 01:32hudsonbotCheckin
2013-05-23 01:32hudsonbotNote Added: 0058773

Notes
(0058481)
hgbot   
2013-05-07 10:24   
Repository: erp/devel/pi
Changeset: cff22f4a86ed32b92458e5f37e101f1921ada44c
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon May 06 13:38:25 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/cff22f4a86ed32b92458e5f37e101f1921ada44c [^]

Fixes Issue 20553: When Reactivating an Invoice, forces an Update
of the Invoice Lines so the Triggers of the Invoice Lines and
Invoice Tax Lines are launched again, fixing the problem of the
order of how they are launched in Postgre.

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0058482)
Sandrahuguet   
2013-05-07 10:36   
Code review + testing OK
(0058773)
hudsonbot   
2013-05-23 01:32   
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/97c7f6256af7 [^]

Maturity status: Test