Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031158Retail ModulesLayaway orderpublic2015-10-16 11:282016-03-30 10:47
lorenzofidalgo 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
main 
RR16Q2 
marvintm
No
0031158: [RR15Q4] Receipt can be marked as Layaway, but it is possible to set a line as to be returned and it will not process a layaway
Although a receipt is marked as Layaway, it is still possible to set a line as to be returned and it will not process a layaway but a Return.
This process will create a record in "Sales Order" window in Backend with "Payment Plan" tab data similar to a return, with '0' in "Outstanding" field. It is not created a record in "Return from Customer" window.
0-Login POS as vallblanca//openbravo.
1-Execute a cashup keeping nothing to clean the instance.
2-Create a sales receipt in POS with 5x "Alpine skiing backpack 27L" product (to have some cash) and complete that receipt.
3-In a new receipt, add 1x "Alpine skiing backpack 27L" product.
4-In dropdown menu, click in "Layaway this Receipt".
5-Go to "Alpine skiing backpack 27L" product line and click in "Return Line" button (now you have a layaway with a return line).
6-Click in Total Amount button. You can click in "Layaway" button and you will see that a warning message appears: "You cannot layaway a sales with returns.".
7-Click green "Cash" button to deactivate that button.
8-Enter 109.9 and click "Cash" button. ("Exact amount returned." appears and it is possible to click now in "Done" button to complete this receipt).
9-Click "Done" button. (This flow allows you to process this layaway with returns receipt).
No tags attached.
png LayawayWithReturnLinesAllowed.png (212,579) 2015-10-16 11:28
https://issues.openbravo.com/file_download.php?file_id=8577&type=bug
png
Issue History
2015-10-16 11:28lorenzofidalgoNew Issue
2015-10-16 11:28lorenzofidalgoAssigned To => Retail
2015-10-16 11:28lorenzofidalgoFile Added: LayawayWithReturnLinesAllowed.png
2015-10-16 11:28lorenzofidalgoTriggers an Emergency Pack => No
2016-03-21 08:30ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2016-03-21 09:51ranjith_qualiantech_comStatusnew => scheduled
2016-03-25 07:56hgbotCheckin
2016-03-25 07:56hgbotNote Added: 0085307
2016-03-25 07:56hgbotCheckin
2016-03-25 07:56hgbotNote Added: 0085308
2016-03-25 07:56hgbotStatusscheduled => resolved
2016-03-25 07:56hgbotResolutionopen => fixed
2016-03-25 07:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f6a786ee3b2cdd6fc61aad864cf7608b81f302ec [^]
2016-03-30 10:47marvintmReview Assigned To => marvintm
2016-03-30 10:47marvintmStatusresolved => closed
2016-03-30 10:47marvintmFixed in Version => RR16Q2

Notes
(0085307)
hgbot   
2016-03-25 07:56   
Repository: tools/automation/pi-mobile
Changeset: 9b90073126760a5fde3554b6d6e304a3c6c13f82
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 25 12:25:43 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/9b90073126760a5fde3554b6d6e304a3c6c13f82 [^]

Verifies issue 31158 : Added automated test 'I31158_VerifyLayawayWithReturn'

---
M src-test/org/openbravo/test/mobile/common/selenium/utils/AllowedErrorsHelper.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/layaway/I31158_VerifyLayawayWithReturn.java
---
(0085308)
hgbot   
2016-03-25 07:56   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: f6a786ee3b2cdd6fc61aad864cf7608b81f302ec
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 25 12:26:04 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f6a786ee3b2cdd6fc61aad864cf7608b81f302ec [^]

Fixes issue 31158 : Verify return line should not be added in lawaway receipt

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