Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029710Retail ModulesLayaway orderpublic2015-04-27 16:522015-06-23 18:00
lorenzofidalgo 
adrianromero 
immediateminoralways
closedfixed 
5
main 
RR15Q3 
migueldejuana
Packaging and release
RR15Q1.3
No
0029710: "Use Credit" button should not appear when a receipt is marked as "To be laid away"
"Use Credit" button should not appear, configured or not, when a receipt is marked as "To be laid away". (Before complete it as a layaway receipt. Only recovered layaway receipts could be paid, credit or not credit).
[This behaviour has been reproduced in RR15Q2 & RR15Q1.3.]
0-Configure terminal and business partner to be able to use credit.
1-Login POS as vallblanca//openbravo.
2-Create a receipt and add a product to this receipt.
3-In dropdown menu button, click "Layaway this receipt".
4-Click Total Amount button.
Defect: Check "Use Credit" button appears.
No tags attached.
has duplicate defect 0028963 closed adrianromero [RR15Q1.1] Use Credit button wrongly appears at webpos, when the user selects Layaway this receipt option 
Issue History
2015-04-27 16:52lorenzofidalgoNew Issue
2015-04-27 16:52lorenzofidalgoAssigned To => adrianromero
2015-04-27 16:52lorenzofidalgoRegression level => Packaging and release
2015-04-27 16:52lorenzofidalgoRegression introduced in release => RR15Q1.3
2015-04-27 16:52lorenzofidalgoTriggers an Emergency Pack => No
2015-04-27 16:52lorenzofidalgoRelationship addedrelated to 0028963
2015-04-27 17:00lorenzofidalgoRelationship replacedhas duplicate 0028963
2015-04-27 18:00hgbotCheckin
2015-04-27 18:00hgbotNote Added: 0076790
2015-04-27 18:00hgbotStatusnew => resolved
2015-04-27 18:00hgbotResolutionopen => fixed
2015-04-27 18:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/810037773a7f8052ce54f05ee16f0912c4de0a87 [^]
2015-05-06 18:03malsasuaNote Added: 0077061
2015-05-06 18:03malsasuaStatusresolved => new
2015-05-06 18:03malsasuaResolutionfixed => open
2015-06-15 11:35hgbotCheckin
2015-06-15 11:35hgbotNote Added: 0078291
2015-06-15 11:35hgbotStatusnew => resolved
2015-06-15 11:35hgbotResolutionopen => fixed
2015-06-15 11:35hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/810037773a7f8052ce54f05ee16f0912c4de0a87 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b60f5c99992371c2b469b9db43a75484c740d299 [^]
2015-06-23 18:00migueldejuanaReview Assigned To => migueldejuana
2015-06-23 18:00migueldejuanaNote Added: 0078456
2015-06-23 18:00migueldejuanaStatusresolved => closed
2015-06-23 18:00migueldejuanaFixed in Version => RR15Q3

Notes
(0076790)
hgbot   
2015-04-27 18:00   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 810037773a7f8052ce54f05ee16f0912c4de0a87
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Apr 27 17:56:51 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/810037773a7f8052ce54f05ee16f0912c4de0a87 [^]

Fixes issue 0029710: 'Use Credit' button should not appear when a receipt is marked as 'To be laid away'
* It has been modified the behaviour when 'Use Credit' appears in layaways. It appears only in loaded layaways not in new layaways.
* It has been centralized in one funtion the logic that shows/hides 'Use Credit' button: updateCreditSalesAction()

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0077061)
malsasua   
2015-05-06 18:03   
When a layaway is partial paid, and it is voided, use credit button is displayed, and it was not displayed before the changeset:
. configure the terminal and the customer to use credit
. create a layaway and to do a partial paid
. load the layaway, and void it:
use credit button is displayed

I think that the problem is in the line:
visible = visible && (this.receipt.get('isLayaway') || (this.receipt.get('orderType') !== 2 && this.receipt.get('orderType') !== 3));

In case that it is ok, and we want to able to use credit when layaway is voided, then this line:
visible = visible && (this.receipt.get('isLayaway') || (this.receipt.get('orderType') !== 2 && this.receipt.get('orderType') !== 3));
shoud be:
visible = visible && (this.receipt.get('isLayaway') || this.receipt.get('orderType') !== 2)
(0078291)
hgbot   
2015-06-15 11:35   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b60f5c99992371c2b469b9db43a75484c740d299
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Mon Jun 15 11:33:39 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b60f5c99992371c2b469b9db43a75484c740d299 [^]

Fixes issue 0029710: 'Use Credit' button should not appear when a receipt is marked as 'To be laid away'
Fixing condition to show 'Use Credit' button to make it invisible for voided layaways

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0078456)
migueldejuana   
2015-06-23 18:00   
Tested and reviewed d44b8cfd1584