Menu
Feedback
Start here

Known issues

Known issues
Payment Terms changes not applied in the B2B Checkout Settings
B2B
•
ID: 1019548
Fixed
Published on4/18/2024
•
Last updated on7/25/2024
2 min read

Summary

Updating the Payment Terms in Organization Details UI for an organization doesn't apply to B2B Checkout Settings.

This behavior occurs because the update occurs only for the organization, but the B2B Checkout Settings uses information from the cost center, which is not updated by the Organization Details UI.

Simulation

  • Create an organization;
  • In the Organization Details UI, update the Payment Terms;
  • Access the website, assemble a cart, and access checkout; the Payment Terms will remain the same.

Workaround

  • Access GraphQL IDE and select vtex.b2b-organizations-graphql;

  • Use the query below to get the cost center details:

    { getCostCenterById (id:"insert here the cost center id"){ name addresses{ addressId addressType addressQuery postalCode country receiverName city state street number complement neighborhood geoCoordinates reference } phoneNumber businessDocument customFields{ name type value dropdownValues{ value label } useOnRegistration } stateRegistration paymentTerms{ id name } }}

  • Use the query below to get the payment terms from the organization:

    { getOrganizationById(id:"insert here the organization id"){ paymentTerms{ id name } }}

  • Send a mutation to update the cost center, adding the payment terms from the organization to the response from the cost center:

    mutation updateCostCenter($id: ID!, $input: CostCenterInput!) { updateCostCenter( id: $id input: $input ){ id status }}{ "id": "", "input": { "name": "", "addresses": [{ "addressId": "", "addressType": "", "addressQuery": "", "postalCode": "", "country": "", "receiverName": "", "city": "", "state": "", "street": "", "number": "", "complement": null, "neighborhood": "", "geoCoordinates": [], "reference": null } ], "phoneNumber": "", "businessDocument": "", "customFields": [], "stateRegistration": "", "paymentTerms": [{ "id": "", "name": "" }, { "id": "", "name": "" }] }}

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback