Openbravo Issue Tracking System - Retail Modules
View Issue Details
0039926Retail ModulesQuotationspublic2019-01-11 11:222019-01-25 15:07
aaroncalero 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q2 
marvintm
No
0039926: It is not possible to reactivate a quotation if the original quotation had saved deleted lines
When the Web POS Save Removed Tickets preference is configured, it is possible to end with Quotations in the Errors While Importing POS Data window.
When a quotation is created with deleted lines, completed (status= Under Evaluation) and then reactivated (without reloading it), the deleted lines of the original quotation remain on the new quotation, causing errors when the new quotation is synchronized, because of duplicated c_orderline_ids.
Login in backend and configure the Web POS Save Removed Tickets preference with value Y.
Login in web pos.
Create a new quotation.
Add two products
Remove one of the products.
Click on the Total Amount button to complete the quotation.
Verify in backend that the quotation contains 2 lines, one of them removed.
In web pos, reactivate the quotation.
Try to complete the quotation again.
Verify that the new quotation is now in the Errors While Importing POS Data window, and that the json of that quotation contains a deletedLine which already exists in the old quotation.
When a quotation is reactivated, the existing array of deleted lines should be removed.
No tags attached.
Issue History
2019-01-11 11:22aaroncaleroNew Issue
2019-01-11 11:22aaroncaleroAssigned To => Retail
2019-01-11 11:22aaroncaleroResolution time => 1548370800
2019-01-11 11:22aaroncaleroTriggers an Emergency Pack => No
2019-01-11 13:49ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-01-11 13:49ranjith_qualiantech_comStatusnew => scheduled
2019-01-17 11:13hgbotCheckin
2019-01-17 11:13hgbotNote Added: 0108991
2019-01-17 11:13hgbotStatusscheduled => resolved
2019-01-17 11:13hgbotResolutionopen => fixed
2019-01-17 11:13hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9e83a58dc3a952ddd7f23caaba11790c59c724a5 [^]
2019-01-25 15:07marvintmReview Assigned To => marvintm
2019-01-25 15:07marvintmStatusresolved => closed
2019-01-25 15:07marvintmFixed in Version => RR19Q2

Notes
(0108991)
hgbot   
2019-01-17 11:13   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 9e83a58dc3a952ddd7f23caaba11790c59c724a5
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jan 17 15:32:55 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/9e83a58dc3a952ddd7f23caaba11790c59c724a5 [^]

Fixed issue 39926 : Deleted Lines should be removed when reactivating the quotation

* If Save Remove Ticket Pref is enabled, receipt deletedLines should be removed from quotation when reactivating it
  Because while reactivating deletedLines should not be present in Backoffice Sales Quotation

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---