Openbravo Issue Tracking System - POS2
View Issue Details
0053957POS2POSpublic2023-11-15 17:062023-11-16 15:23
Markel_Iruretagoyena 
guilleaer 
normalmajoralways
closedfixed 
5
 
23Q4.123Q4 
No
0053957: [23Q4] After creating a new customer from the POS this customer is not stored in the back office
After creating a new customer from the POS, it will appear at the POS as it should, but will not be saved in the back office, so when the cache is cleared, this new user will no longer be available.

Also when creating the customer an entry appears in the back office window "errors while importing" with the following error message:

org.openbravo.base.validation.ValidationException: BusinessPartner.businessPartnerType: Property BusinessPartner.businessPartnerType, value () is not allowed, it should be one of the following values: [PR, PS, CO, FC] but it is value
    at org.openbravo.base.model.domaintype.BaseEnumerateDomainType.checkIsValidValue(BaseEnumerateDomainType.java:64)
    at org.openbravo.base.model.Property.checkIsValidValue(Property.java:827)
    at org.openbravo.base.structure.BaseOBObject.set(BaseOBObject.java:274)
    at org.openbravo.mobile.core.process.JSONPropertyToEntity.fillBobFromJSON(JSONPropertyToEntity.java:128)
    at org.openbravo.mobile.core.process.JSONPropertyToEntity.fillBobFromJSON(JSONPropertyToEntity.java:34)
1- Login in POS as vallblanca
2- Go to the Customers window and click on the "New Customer" button
3- Fill in all the fields necessary for the creation and click on "SAVE AND ASSIGN"
4- You will see that the new user is at the top of the ticket

Login to the Backoffice and open the "Business Partner" window. You will see your new user does not exist.

Also when creating the customer an entry appears in the back office window "errors while importing" with the following error message:

org.openbravo.base.validation.ValidationException: BusinessPartner.businessPartnerType: Property BusinessPartner.businessPartnerType, value () is not allowed, it should be one of the following values: [PR, PS, CO, FC] but it is value
    at org.openbravo.base.model.domaintype.BaseEnumerateDomainType.checkIsValidValue(BaseEnumerateDomainType.java:64)
    at org.openbravo.base.model.Property.checkIsValidValue(Property.java:827)
    at org.openbravo.base.structure.BaseOBObject.set(BaseOBObject.java:274)
    at org.openbravo.mobile.core.process.JSONPropertyToEntity.fillBobFromJSON(JSONPropertyToEntity.java:128)
    at org.openbravo.mobile.core.process.JSONPropertyToEntity.fillBobFromJSON(JSONPropertyToEntity.java:34)



5- Go back to the POS, clean the cache of that browser and login again
6- After the refresh go to the Customers window

Note that the user you just created is no longer available.
No tags attached.
blocks defect 0053950 closed guilleaer [23Q4] After creating a new customer from the POS this customer is not stored in the back office 
Issue History
2023-11-16 11:38guilleaerTypedefect => backport
2023-11-16 11:38guilleaerTarget Version => 23Q4.1
2023-11-16 12:34hgbotNote Added: 0157203
2023-11-16 15:23hgbotResolutionopen => fixed
2023-11-16 15:23hgbotStatusscheduled => closed
2023-11-16 15:23hgbotNote Added: 0157239
2023-11-16 15:23hgbotFixed in Version => 23Q4
2023-11-16 15:23hgbotNote Added: 0157240

Notes
(0157203)
hgbot   
2023-11-16 12:34   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2240 [^]
(0157239)
hgbot   
2023-11-16 15:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2240 [^]
(0157240)
hgbot   
2023-11-16 15:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 6040cca996e7fcf1ec477e26b9350ef1df61209e
Author: Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Date: 16-11-2023 14:23:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/6040cca996e7fcf1ec477e26b9350ef1df61209e [^]

fixed ISSUE-53957: Business Partner type is now defaulted to null to avoid error when processing on the backoffice

---
M web-jspack/org.openbravo.pos2/src/services/crm/OBCustomerRelationshipManagement.js
---