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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041448
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2019-07-24 16:312019-07-25 16:45
ReporteraaroncaleroView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionfixedFixed in VersionRR19Q4
StatusclosedFix in branchFixed in SCM revisionc8ccf50bc538
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toadrianromero
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0041448: Receipt is not loaded correctly in WebPOS when one of the addresses is not active

DescriptionReceipt is not loaded correctly in WebPOS when one of the addresses is not active. Some lines are not loaded at all, changing the total amount of the ticket loaded in webpos.
Steps To ReproduceLog in backend.
Go to the Preference window and configure the following preferences:
* 'Enable Remote for Product' with value Y
* 'Enable Remote for Customer' with value Y

Log in WebPOS
Search for the customer Carl Studson
Add a new address for the customer.

Create a new ticket
Assign the customer Carl Studson
Assing one of the addresses for shipping and the other for invoicing.
Add three different products to the ticket.
Complete the receipt.

Log in backend, go to the Business Partner window, find Carl Studson and deactivate the shipping address used in the ticket.

Go back to WebPOS and try to load the ticket again.

Randomly one or two lines won't load, and the ticket total amount will change.
Proposed SolutionThe problem seems to be on the newPaidReceipt function [1]
If at least one of the locations is not available in Web POS (i.e. because it was deactivated) the code calls loadBusinesPartner and in its callback it is calling locationForBpartner, which eventually calls loadProducts, which adds the lines to the ticket.
At the same time, loadBusinesPartner executes most of the newPaidReceipt code again when it finishes, which causes duplicated calls to locationForBpartner (and finally to loadProducts)


[1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/tip/web/org.openbravo.retail.posterminal/js/model/order.js#l10071 [^]
TagsNo tags attached.
Attached Filespatch file icon issue 41448 source posterminal.patch [^] (1,254 bytes) 2019-07-25 09:12 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0041513 closedranjith_qualiantech_com A receipt cannot be returned correctly in WebPOS when one of the addresses is not active 

-  Notes
(0113647)
hgbot (developer)
2019-07-25 14:34

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c8ccf50bc538a92d5a7303fa394555bff3abed0f
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jul 25 18:03:59 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c8ccf50bc538a92d5a7303fa394555bff3abed0f [^]

Fixed issue 41448 : Customer and Location should be loaded from backoffice

* Customer and Location should be loaded from backoffice if its not present in
  the local db.
* Backoffice Customer and location will be updated in loadBusinesPartner callback.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0113649)
adrianromero (manager)
2019-07-25 16:45

Verified

- Issue History
Date Modified Username Field Change
2019-07-24 16:31 aaroncalero New Issue
2019-07-24 16:31 aaroncalero Assigned To => Retail
2019-07-24 16:31 aaroncalero Resolution time => 1565128800
2019-07-24 16:31 aaroncalero Triggers an Emergency Pack => No
2019-07-24 16:35 aaroncalero Steps to Reproduce Updated View Revisions
2019-07-24 16:43 aaroncalero Proposed Solution updated
2019-07-24 16:49 aaroncalero Description Updated View Revisions
2019-07-25 08:38 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2019-07-25 09:12 ranjith_qualiantech_com File Added: issue 41448 source posterminal.patch
2019-07-25 09:35 ranjith_qualiantech_com Status new => scheduled
2019-07-25 14:34 hgbot Checkin
2019-07-25 14:34 hgbot Note Added: 0113647
2019-07-25 14:34 hgbot Status scheduled => resolved
2019-07-25 14:34 hgbot Resolution open => fixed
2019-07-25 14:34 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c8ccf50bc538a92d5a7303fa394555bff3abed0f [^]
2019-07-25 16:45 adrianromero Review Assigned To => adrianromero
2019-07-25 16:45 adrianromero Note Added: 0113649
2019-07-25 16:45 adrianromero Status resolved => closed
2019-07-25 16:45 adrianromero Fixed in Version => RR19Q4
2019-07-31 17:32 guillermogil Relationship added related to 0041513


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker