Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037000Retail ModulesQuotationspublic2017-10-03 18:462017-10-09 12:08
aaroncalero 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR18Q1 
marvintm
No
0037000: Removing a quotation under evaluation with deleted lines should not trigger the save deleted tickets logic
With the Save Removed Tickets preference configured:
If a quotation is created in web pos with several deleted lines, and then synchronized to backend, these deleted lines remain on the quotation even if it is marked as 'Under Evaluation'.
When this quotation is later removed from the screen, since the array of deletedLines is present, the Save Removed Tickets logic is triggered and the quotation is tried to be synchronized again (since an 'Under Evaluation' quotation doesn't exist in the websql nothing happens).
Configure the Save Removed Tickets preference.
Login in web pos.
Create a quotation (Menu > Create Quotation)
Add two lines and remove one of them.
Click on the total amount button to synchronize the quotation and mark it as 'Under Evaluation'.
Open the browser console and find the markOrderAsDeleted function on the code. Set a breakpoint on the function.
Close the quotation and verify that the breakpoint hits.
No tags attached.
Issue History
2017-10-03 18:46aaroncaleroNew Issue
2017-10-03 18:46aaroncaleroAssigned To => Retail
2017-10-03 18:46aaroncaleroResolution time => 1508277600
2017-10-03 18:46aaroncaleroTriggers an Emergency Pack => No
2017-10-04 16:14ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-10-04 16:14ranjith_qualiantech_comStatusnew => scheduled
2017-10-06 14:54hgbotCheckin
2017-10-06 14:54hgbotNote Added: 0099807
2017-10-06 14:54hgbotStatusscheduled => resolved
2017-10-06 14:54hgbotResolutionopen => fixed
2017-10-06 14:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ba9030401bd3f5712178af443858b70ff5a95250 [^]
2017-10-09 12:08marvintmReview Assigned To => marvintm
2017-10-09 12:08marvintmStatusresolved => closed
2017-10-09 12:08marvintmFixed in Version => RR18Q1

Notes
(0099807)
hgbot   
2017-10-06 14:54   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ba9030401bd3f5712178af443858b70ff5a95250
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Oct 06 18:07:13 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ba9030401bd3f5712178af443858b70ff5a95250 [^]

Fixed issue 37000 : Validate while deleting completed Quotation

* With "Save Removed ticket" preference, quotation should not be saved with deleted lines

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