Hi Community,
Previously we managed to create a PO with received quantity populated on the line items using the child account access token. However, when we tried creating a PO now, we have noticed that the received quantity is not updating even though we pass it on the mutation. This is the last PO that was created when it was still working: https://app.shiphero.com/dashboard/purchase-orders/details/977639
Can you help us check on this? Here are the following details of the mutation:
Mutation:
mutation purchaseOrderCreate {
purchase_order_create(
data: {
po_number: "PO-CREATE-TEST-V60"
warehouse_id: "V2FyZWhvdXNlOjc1OTY5"
po_date: "2022-02-24"
packing_note: ""
vendor_id: "443576"
shipping_price: "0"
subtotal: "0"
total_price: "0"
line_items: {
expected_weight_in_lbs: "0"
price: "0"
quantity: 2
quantity_received: 2
sku: "6821-44557#79-st-v24"
vendor_id: "443576"
}
}
) {
complexity
request_id
purchase_order {
id
po_number
line_items {
edges {
node {
id
sku
quantity_received
quantity
quantity_rejected
warehouse_id
vendor_id
vendor_sku
}
}
}
}
}
}
Then is the response:
{
"data": {
"purchase_order_create": {
"complexity": 10,
"request_id": "6215fb73187398fe064a18cf",
"purchase_order": {
"id": "UHVyY2hhc2VPcmRlcjo5ODA1ODg=",
"po_number": "PO-CREATE-TEST-V60",
"line_items": {
"edges": [
{
"node": {
"id": "UHVyY2hhc2VPcmRlckxpbmVJdGVtOjEyODE2NTE1",
"sku": "6821-44557#79-st-v24",
"quantity_received": 0,
"quantity": 2,
"quantity_rejected": 0,
"warehouse_id": "V2FyZWhvdXNlOjc1OTY5",
"vendor_id": "VmVuZG9yOjQ0MzU3Ng==",
"vendor_sku": null
}
}
]
}
}
}
}
}
Looking forward for you response. Thank you so much.
Best Regards,
Altair
Cc: @Edwin