Hi, Recently I'm getting an error trying to update an ordertype of an order. Here is my query and the answer from VBNXT: {"query":"
mutation update_order($cid: Int!, $order: Order_Input!, $orderNo: Int!) {
useCompany(no : $cid) {
order_update(value: $order, filter: {orderNo: {_eq: $orderNo}}) {
affectedRows
items {
orderNo
orderDate
}
}
}
}","operationName":"update_order","variables":{"cid":xxxxxx,"order":{"orderType":3,"customerNo":101175,"name":"Harder Sm嶩k","sellerOrBuyer":5,"information1":"RECEIPT:1 - 2740","totalDiscountPercent":0.0,"totalDiscountAmountInCurrency":0.0,"totalDiscountAmountDomestic":0.0,"orderPreferences":272},"orderNo":68352}}
Answer from VBNXT :
{"errors":[{"message":"Error: It is not possible to change order type after order has been finished.","path":["useCompany","order_update","values/0"],"extensions":{"data":{"status":15,"status_name":"valueNotAccepted"}}}],"data":{"useCompany":{"order_update":{"affectedRows":0,"items":[{"orderNo":68352,"orderDate":20241218}]}}},"extensions":{"vbnxt-trace-id":"90d80f85cd459cc3b2ac3cb2291504bd"}} Is there something wrong in the query, update/change in VBNXT I'm not aware of?
... View more