Openbravo Issue Tracking System - POS2
View Issue Details
0048170POS2Corepublic2021-11-29 10:592021-12-17 09:56
jmelin 
nicola_uva 
urgentmajoralways
closedfixed 
5
 
 
guilleaer
No
0048170: JIRA 2528 - API sales - for B2BCustomer, replace "Company code" by "Search key" from "Business partner" window
Currently in “API Sales” request, when payment is done by reinvoicing, we send the “Company code” linked from “Business partner” window.

We must replace by the “Search key” from the same window
Connect to POS and do a sales order.
In payment section, pay using "A REFACTURER" payment method (complete by other if necessary).

Close the till to do the cashup

In the BO, check the "API Sales" EDL Request.
In the EDL request, we have:
"customer": {
    "loyalty": [{
    "type": "B2B_CUSTOMER",
    "card_id": "$COMPANY_CODE"
    }],
    "email": "print"
}

where $COMPANY_CODE is company code of the bp linked to the customer to reinvoice

We must have instead:
"customer": {
    "loyalty": [{
    "type": "B2B_CUSTOMER",
    "card_id": "$SEARCH_KEY"
    }],
    "email": "print"
}

where $SEARCH_KEY is the search key from the same bp
AGPCustom
Issue History
2021-11-29 10:59jmelinNew Issue
2021-11-29 10:59jmelinAssigned To => Triage Platform Base
2021-11-29 10:59jmelinTriggers an Emergency Pack => No
2021-12-17 09:51caristuTag Attached: AGPCustom
2021-12-17 09:56guilleaerStatusnew => scheduled
2021-12-17 09:56guilleaerAssigned ToTriage Platform Base => nicola_uva
2021-12-17 09:56guilleaerStatusscheduled => resolved
2021-12-17 09:56guilleaerResolutionopen => fixed
2021-12-17 09:56guilleaerReview Assigned To => guilleaer
2021-12-17 09:56guilleaerNote Added: 0133797
2021-12-17 09:56guilleaerStatusresolved => closed

Notes
(0133797)
guilleaer   
2021-12-17 09:56   
https://gitlab.com/obcustomers/AGAP/com.openbravo.flunch.integration.comarch.cashup/-/commit/b9c80e9c8550b509f7531addaf3f97985a955036 [^]