Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0026118 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | always | 2014-03-28 11:07 | 2014-12-16 22:29 | |||
Reporter | migueldejuana | View Status | public | |||||
Assigned To | Osmany | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR15Q1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 929aa6ebf814 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | mtaal | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0026118: When we are in Multiorders if we press F5 we get an error. | |||||||
Description | When we are in Multiorders if we press F5 we get an error. | |||||||
Steps To Reproduce | When we are in Multiorders if we press F5 we get an error. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0072556) hgbot (developer) 2014-12-16 15:04 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: f8e536acea0d11d6213bbb5cececd1221da37aef Author: Osmany Garcia Machado <osmany.machado <at> peoplewalking.com> Date: Tue Dec 16 08:03:26 2014 -0600 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f8e536acea0d11d6213bbb5cececd1221da37aef [^] Fixed issue 26118: When we are in Multiorders if we press F5 we get an error. --- M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js --- |
(0072559) mtaal (viewer) 2014-12-16 16:02 |
Hi, Was checking it, but the code change means that the if this.receipt is null then it will end up in the else of the if-statement. Is this indeed what you intend? So instead of this: if (!isMultiOrders && !_.isNull(this.receipt)) { this.receipt.selectedPayment = payment.payment.searchKey; paymentstatus = this.receipt.getPaymentStatus(); } else { this.model.get('multiOrders').set('selectedPayment', payment.payment.searchKey); paymentstatus = this.model.get('multiOrders').getPaymentStatus(); } I would do this: if (!_.isNull(this.receipt)) { if (!isMultiOrders) { this.receipt.selectedPayment = payment.payment.searchKey; paymentstatus = this.receipt.getPaymentStatus(); } else { this.model.get('multiOrders').set('selectedPayment', payment.payment.searchKey); paymentstatus = this.model.get('multiOrders').getPaymentStatus(); } } |
(0072561) Osmany (viewer) 2014-12-16 16:17 |
Hi, I like idea, but if we do this: if (!isMultiOrders) { if (!_.isNull(this.receipt)) { this.receipt.selectedPayment = payment.payment.searchKey; paymentstatus = this.receipt.getPaymentStatus(); } } else { this.model.get('multiOrders').set('selectedPayment', payment.payment.searchKey); paymentstatus = this.model.get('multiOrders').getPaymentStatus(); } What do you think? Regards. |
(0072563) mtaal (viewer) 2014-12-16 16:24 |
yes I guess this is best, can you try it and if it works push the change? I will then close the issue. |
(0072575) hgbot (developer) 2014-12-16 20:26 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 929aa6ebf814eed09d87773bf6891754bb94c314 Author: Osmany Garcia Machado <osmany.machado <at> peoplewalking.com> Date: Tue Dec 16 13:25:57 2014 -0600 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/929aa6ebf814eed09d87773bf6891754bb94c314 [^] Fixed issue 26118: Validation of paymentstatus and requiredCash when are undefined, because the receipt is null --- M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js --- |
(0072580) mtaal (viewer) 2014-12-16 22:29 |
Reviewed and tested |
![]() |
|||
Date Modified | Username | Field | Change |
2014-03-28 11:07 | migueldejuana | New Issue | |
2014-03-28 11:07 | migueldejuana | Assigned To | => migueldejuana |
2014-03-28 11:07 | migueldejuana | OBNetwork customer | => No |
2014-03-28 11:07 | migueldejuana | Triggers an Emergency Pack | => No |
2014-12-15 10:17 | mtaal | Relationship added | has duplicate 0028057 |
2014-12-15 17:29 | mario_castello | Assigned To | migueldejuana => mario_castello |
2014-12-16 15:02 | Osmany | Assigned To | mario_castello => Osmany |
2014-12-16 15:04 | hgbot | Checkin | |
2014-12-16 15:04 | hgbot | Note Added: 0072556 | |
2014-12-16 15:04 | hgbot | Status | new => resolved |
2014-12-16 15:04 | hgbot | Resolution | open => fixed |
2014-12-16 15:04 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f8e536acea0d11d6213bbb5cececd1221da37aef [^] |
2014-12-16 16:02 | mtaal | Note Added: 0072559 | |
2014-12-16 16:02 | mtaal | Status | resolved => new |
2014-12-16 16:02 | mtaal | Resolution | fixed => open |
2014-12-16 16:17 | Osmany | Note Added: 0072561 | |
2014-12-16 16:24 | mtaal | Note Added: 0072563 | |
2014-12-16 20:26 | hgbot | Checkin | |
2014-12-16 20:26 | hgbot | Note Added: 0072575 | |
2014-12-16 20:26 | hgbot | Status | new => resolved |
2014-12-16 20:26 | hgbot | Resolution | open => fixed |
2014-12-16 20:26 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f8e536acea0d11d6213bbb5cececd1221da37aef [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/929aa6ebf814eed09d87773bf6891754bb94c314 [^] |
2014-12-16 22:29 | mtaal | Review Assigned To | => mtaal |
2014-12-16 22:29 | mtaal | Note Added: 0072580 | |
2014-12-16 22:29 | mtaal | Status | resolved => closed |
2014-12-16 22:29 | mtaal | Fixed in Version | => RR15Q1 |
2014-12-17 16:52 | mtaal | Relationship added | has duplicate 0026032 |
Copyright © 2000 - 2009 MantisBT Group |