Acumatica 采购订单收据 API 找不到采购订单编号
Acumatica Purchase Order Receipt API Can not find PO Order Nbr
我正在尝试使用采购订单上的明细行项目创建采购收据。当我使用 API 执行此操作时,我收到一条错误消息,提示无法在系统中找到采购订单。如果我不引用 PO,我可以很好地添加行项目,但是一旦我引用 PO,就会出现 API 错误。采购订单编号有效且项目在采购订单上。
我可以在 Acumatica 中手动执行此操作,没有任何问题,而且采购订单实际上可用,就像所说的那样,手动执行此操作没有问题。
这是我提出的简单 JSON 请求。
{
"CreateBill": {"value": true},
"VendorID": {"value": "ARTISTICCARP"},
"Details": [
{
"InventoryID": {"value":"VND1807 4x6"},
"ReceiptQty": {"value": 1},
"POOrderNbr": {"value": "001131" },
"POLineNbr": {"value": 1},
"POOrderType": {"value": "Goods for IN"}
}
]
}
这是我收到的错误:
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "OrderNbr=Order Nbr. '001131' cannot be found in the system.",
"exceptionType": "PX.Data.PXException",
"stackTrace": " at PX.Objects.DefaultEndpointImpl.PurchaseReceiptDetail_Insert(PXGraph graph, EntityImpl entity, EntityImpl targetEntity)"
}
试试这个:
{
"CreateBill": {"value": true},
"VendorRef": {"value": "FROM_API"},
"VendorID": {"value": "ARTISTICCARP"},
"Details": [
{
"InventoryID": {"value":"VND1807 4x6"},
"ReceiptQty": {"value": 1},
"POOrderNbr": {"value": "001131" },
"POLineNbr": {"value": 1},
"POOrderType": {"value": "Normal"}
}]
}
您输入了错误的订单类型,这就是它找不到采购订单的原因。如果 CreateBill = true,您还需要供应商参考。
我正在尝试使用采购订单上的明细行项目创建采购收据。当我使用 API 执行此操作时,我收到一条错误消息,提示无法在系统中找到采购订单。如果我不引用 PO,我可以很好地添加行项目,但是一旦我引用 PO,就会出现 API 错误。采购订单编号有效且项目在采购订单上。
我可以在 Acumatica 中手动执行此操作,没有任何问题,而且采购订单实际上可用,就像所说的那样,手动执行此操作没有问题。
这是我提出的简单 JSON 请求。
{
"CreateBill": {"value": true},
"VendorID": {"value": "ARTISTICCARP"},
"Details": [
{
"InventoryID": {"value":"VND1807 4x6"},
"ReceiptQty": {"value": 1},
"POOrderNbr": {"value": "001131" },
"POLineNbr": {"value": 1},
"POOrderType": {"value": "Goods for IN"}
}
]
}
这是我收到的错误:
"innerException": {
"message": "An error has occurred.",
"exceptionMessage": "OrderNbr=Order Nbr. '001131' cannot be found in the system.",
"exceptionType": "PX.Data.PXException",
"stackTrace": " at PX.Objects.DefaultEndpointImpl.PurchaseReceiptDetail_Insert(PXGraph graph, EntityImpl entity, EntityImpl targetEntity)"
}
试试这个:
{
"CreateBill": {"value": true},
"VendorRef": {"value": "FROM_API"},
"VendorID": {"value": "ARTISTICCARP"},
"Details": [
{
"InventoryID": {"value":"VND1807 4x6"},
"ReceiptQty": {"value": 1},
"POOrderNbr": {"value": "001131" },
"POLineNbr": {"value": 1},
"POOrderType": {"value": "Normal"}
}]
}
您输入了错误的订单类型,这就是它找不到采购订单的原因。如果 CreateBill = true,您还需要供应商参考。