Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035941Retail ModulesWeb POSpublic2017-05-08 13:052017-05-18 12:45
nataliag 
jorge-garcia 
normalmajoralways
closedfixed 
5
 
RR17Q3 
marvintm
No
0035941: Discount quantity set to 0 in a return ticket using discount key from keyboard
If you create a ticket and you apply a discount to a line using the quantity and the discount key from the webPOS keyboard, this discount is visible in the c_orderline table. Now if you return this ticket and you look again the new register created in the c_orderline table the discount is set as 0.
1-Go to preference window in backend and set the property "WEB POS Open Discounts From Keyboard " to N.
2- Now enter in a POS terminal and create a new ticket and add a product. Select that line and press in the screen keyboard, the quantity 30 for example and the "Discount" key. A discount of 30% is applied to that line.
3- Pay and complete the ticket.
4- Again in backoffice, use the SQL Query window to search the line created and verify that in the "Discount" field the 30 is present. This query can be used:
select * from c_orderline order by created desc
5- Go back to POS terminal and select in "Verified returns" the ticket created in step 2.
6- Complete it
7- Execute the same query as in step 4 and verify that the "Discount" field is now set to 0, instead 30.
No tags attached.
Issue History
2017-05-08 13:05nataliagNew Issue
2017-05-08 13:05nataliagAssigned To => Retail
2017-05-08 13:05nataliagResolution time => 1496008800
2017-05-08 13:05nataliagTriggers an Emergency Pack => No
2017-05-08 15:05heccamIssue Monitored: heccam
2017-05-09 16:41jorge-garciaStatusnew => scheduled
2017-05-09 16:41jorge-garciaAssigned ToRetail => jorge-garcia
2017-05-10 09:05hgbotCheckin
2017-05-10 09:05hgbotNote Added: 0096500
2017-05-10 09:05hgbotStatusscheduled => resolved
2017-05-10 09:05hgbotResolutionopen => fixed
2017-05-10 09:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/da89aeb12ad15caf0c4fd9c88c0e23df79170128 [^]
2017-05-10 09:06hgbotCheckin
2017-05-10 09:06hgbotNote Added: 0096501
2017-05-18 12:45marvintmReview Assigned To => marvintm
2017-05-18 12:45marvintmStatusresolved => closed
2017-05-18 12:45marvintmFixed in Version => RR17Q3

Notes
(0096500)
hgbot   
2017-05-10 09:05   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: da89aeb12ad15caf0c4fd9c88c0e23df79170128
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue May 09 16:46:08 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/da89aeb12ad15caf0c4fd9c88c0e23df79170128 [^]

Fixed issue 35941: Discount quantity set to 0 in a return ticket using
discount key from keyboard

The solution is to retrieve the value of the percentage discounted to the
ticket and set it in the verify return.

---
M src/org/openbravo/retail/posterminal/PaidReceiptLinesProperties.java
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0096501)
hgbot   
2017-05-10 09:06   
Repository: tools/automation/pi-mobile
Changeset: 0d8a96369cef1abf31c216b25416e5d74388ce2a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue May 09 16:46:47 2017 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/0d8a96369cef1abf31c216b25416e5d74388ce2a [^]

Verifies issue 35941: Discount quantity set to 0 in a return ticket using
discount key from keyboard

Added test I35941_CorrectPercentageDiscountedInVerifyReturn.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/returns/I35941_CorrectPercentageDiscountedInVerifyReturn.java
---