Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038845
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2018-06-26 17:502018-07-09 12:44
ReporterasiermartirenaView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision382e07c38457
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomigueldejuana
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038845: The related receipts of an order are not being loaded correctly

DescriptionWhen having the 'Open related receipts' functionality configured for a POS Terminal Type, the opened related documents are not being selected correctly.

The popup that appears to select the receipts to load is not managing correctly the orders, and is possible to load a ticket that is not selected, and a ticket that is selected is not loaded.
Steps To ReproduceIn the POS Terminal Type window, set the 'Open related receipts' check activated.

Load the Web POS.
Created three layaways for the 'Arturo Montoro' without any payment.
Open the 'Open receipt' selector, and select one of those three layaways to load in the Web POS.
The popup to open the related receipts appears with the other two orders.
Uncheck the first order and click the 'Apply' button.

Realize that in addition to the initial order, the first order is being loaded instead of the second one, when the first one was the unchecked order.
Proposed SolutionAttached the proposed solution in an export file.
TagsNo tags attached.
Attached Files? file icon issue_38845.export [^] (1,728 bytes) 2018-06-26 17:57

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0105639)
hgbot (developer)
2018-07-05 14:06

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 382e07c384576868b38187818bb5a118f30c1aeb
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Thu Jul 05 17:36:15 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/382e07c384576868b38187818bb5a118f30c1aeb [^]

Fixed issue 38845: The related receipts of an order are not being loaded correctly

Now, to remove a record from the this.selectedOrders array (the array that stores the orders to load) a 'for' loop is used instead of the 'indexOf' function, that was not working correctly. Also, when adding again an order to the array, instead of introducing the full backbone model, only the json with the properties is stored, to maintain the consistency.

---
M web/org.openbravo.retail.posterminal/js/components/openRelatedReceiptsModal.js
---
(0105674)
migueldejuana (developer)
2018-07-09 12:44

Tested and reviewed

- Issue History
Date Modified Username Field Change
2018-06-26 17:50 asiermartirena New Issue
2018-06-26 17:50 asiermartirena Assigned To => Retail
2018-06-26 17:50 asiermartirena Resolution time => 1531173600
2018-06-26 17:50 asiermartirena Triggers an Emergency Pack => No
2018-06-26 17:57 asiermartirena File Added: issue_38845.export
2018-06-26 17:58 asiermartirena Proposed Solution updated
2018-06-29 12:15 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2018-06-29 12:15 ranjith_qualiantech_com Status new => scheduled
2018-07-05 14:06 hgbot Checkin
2018-07-05 14:06 hgbot Note Added: 0105639
2018-07-05 14:06 hgbot Status scheduled => resolved
2018-07-05 14:06 hgbot Resolution open => fixed
2018-07-05 14:06 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/382e07c384576868b38187818bb5a118f30c1aeb [^]
2018-07-09 12:44 migueldejuana Review Assigned To => migueldejuana
2018-07-09 12:44 migueldejuana Note Added: 0105674
2018-07-09 12:44 migueldejuana Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker