Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046304Retail ModulesWeb POSpublic2021-04-20 08:482021-04-28 07:23
guillermogil 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
RR20Q3.4 
RR21Q3 
No
0046304: Address Extensions of BP Creation are not properly saved in the model
Address Extensions of BP Creation are not properly saved in the model. See screenshot.
It is only on the creation and the data on the BackOffice is properly saved the model in WebPOS and the data in IndexedDB is wrong.

On OB.DATA.executeCustomerSave the shipping and billing properties are hardcoded making the model not extensible.
On the server side there is a fillBOBFromJSON on CustomerLoader that makes the data saved properly.
Install this module (ensure the branch): https://gitlab.com/obcustomers/CAR/com.openbravo.caroll.retail.fields/-/tree/46304 [^]
Create a BP and modify default Location and status (you might need to add records on Status window in backoffice)
See that the backend is updated but in WebPOS the model is not
It is needed to iterate the Properties of the model and save them on OB.DATA.executeCustomerSave.
Billing properties need to match the name and Shipping should begin by "ship"
e.g.- carfieStatus will be shipCarfieStatus
No tags attached.
png Screenshot from 2021-04-20 11-33-02.png (18,855) 2021-04-20 11:34
https://issues.openbravo.com/file_download.php?file_id=15545&type=bug
png
Issue History
2021-04-20 08:48guillermogilNew Issue
2021-04-20 08:48guillermogilAssigned To => Retail
2021-04-20 08:48guillermogilResolution time => 1620597600
2021-04-20 08:48guillermogilTriggers an Emergency Pack => No
2021-04-20 08:50guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22341#r22341
2021-04-20 08:51guillermogilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22342#r22342
2021-04-20 11:34guillermogilversion => RR20Q3.4
2021-04-20 11:34guillermogilDescription Updatedbug_revision_view_page.php?rev_id=22345#r22345
2021-04-20 11:34guillermogilFile Added: Screenshot from 2021-04-20 11-33-02.png
2021-04-20 11:35guillermogilDescription Updatedbug_revision_view_page.php?rev_id=22346#r22346
2021-04-20 13:25ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-04-21 16:15hgbotNote Added: 0127416
2021-04-28 07:23hgbotResolutionopen => fixed
2021-04-28 07:23hgbotStatusnew => closed
2021-04-28 07:23hgbotNote Added: 0127602
2021-04-28 07:23hgbotFixed in Version => RR21Q3
2021-04-28 07:23hgbotNote Added: 0127603

Notes
(0127416)
hgbot   
2021-04-21 16:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/387 [^]
(0127602)
hgbot   
2021-04-28 07:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/387 [^]
(0127603)
hgbot   
2021-04-28 07:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: bca7e8aa706f20ec1b3758a7b029077f6fd7696c
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-04-28T05:23:02+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/bca7e8aa706f20ec1b3758a7b029077f6fd7696c [^]

Fixed ISSUE-46304: Updated CustomerSave to include Location Extension Properties

---
M web/org.openbravo.retail.posterminal/js/data/datacustomersave.js
---