Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032779Openbravo ERP07. Sales managementpublic2016-04-14 14:222016-04-26 17:30
ngarcia 
platform 
immediatemajorunable to reproduce
closedfixed 
5
3.0PR16Q1 
3.0PR16Q23.0PR16Q2 
caristu
Core
No
0032779: Wrong Total Gross Amount, Total Net Amount and Tax information is obtained in order and invoices
Wrong Total Gross Amount, Total Net Amount and Tax information is obtained in order and invoices. Before 3.0PR15Q4 the problem could be solved by reactivating and processing the document. After the following commit

https://issues.openbravo.com/view.php?id=28366 [^]

the only option is to delete the whole document (header and lines)
0. Login as group admin role
1. Create a Sales Order
2. Add a line to it and click on Book button
3. Before booking it keep the mouse in the New toolbar button
4. Press enter and at the same time click on the New button sometimes
    -> ERROR 1: Check the new header is created with the values of the old record in the status bar fields
            * Status: Booked
            * Total Amounts: The values in previous document
6. Fill in mandatory fields in header
7. Save header. See different behavior depending on the version:
   7.1. 3.0PR15Q4-3.0PR16Q1
     -> ERROR 2: status bar values:
          * Status: Draft (OK)
          * Total Amounts: Previous values are kept (ERROR)
   7.2. >=3.0PR16Q2
      -> OK: status bar values are reset:
          * Status: Draft
          * Total Amounts: 0


Error 7.2 is caused because in the save request numeric values are sending an outdated textualValue property, this property was removed in 16Q2 by fix for 0031901.
No tags attached.
blocks defect 0032668 closed alostale Wrong Total Gross Amount, Total Net Amount and Tax information is obtained in order and invoices 
Issue History
2016-04-26 09:50alostaleTypedefect => backport
2016-04-26 09:50alostaleTarget Version => 3.0PR16Q2
2016-04-26 11:06alostaleReview Assigned To => caristu
2016-04-26 15:57hgbotCheckin
2016-04-26 15:57hgbotNote Added: 0085994
2016-04-26 15:57hgbotStatusscheduled => resolved
2016-04-26 15:57hgbotResolutionopen => fixed
2016-04-26 15:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/f5ddfb939a9add8b3f7ef74edf4124ed5b4dc1e1 [^]
2016-04-26 17:30caristuNote Added: 0086000
2016-04-26 17:30caristuStatusresolved => closed
2016-04-26 17:30caristuFixed in Version => 3.0PR16Q2

Notes
(0085994)
hgbot   
2016-04-26 15:57   
Repository: erp/backports/3.0PR16Q2
Changeset: f5ddfb939a9add8b3f7ef74edf4124ed5b4dc1e1
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Apr 26 10:47:23 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q2/rev/f5ddfb939a9add8b3f7ef74edf4124ed5b4dc1e1 [^]

fixed bug 32779: wrong values displayed in status bar on record creation

  When a new record is created just after processing a previous one, status bar
  displayed valued of the previous record instead of being in New mode.

  Fixed by forcing status bar reset on FIC response for NEW.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0086000)
caristu   
2016-04-26 17:30   
Code review + testing OK, after following the steps the status bar is in new status