采购订单导入时会出现错误,大神们能不能看看是什么原因。
下面是导入的JSON:
{"Creator":"三方调用者标识","NeedUpDateFields":["FBillTypeID","FBillNo","FDate","FProviderAddress","FBusinessType","F_dev_SrcBillNo","FPurchaseOrgId","FPurchaseDeptId","FPurchaserId","FSupplierId","PUR_PurchaseOrder__FPOOrderFinance","FExchangeTypeId","FExchangeRate","FSettleCurrId","FPayConditionId","FSettleModeId","PUR_PurchaseOrder__FIinstallment","FYFDATE","FYFRATIO","FinsPayAdvanceRate","FISPREPAYMENT","FInsPayAdvanceAmount","FACTUALAMOUNT","FYFAMOUNT","PUR_PurchaseOrder__FPOOrderEntry","FMaterialId","FUnitID","FQty","FStockQty","FPriceUnitQty","FBaseUnitQty","FDeliveryMaxQty","FBaseDeliveryMaxQty","FBASESTOCKRETQTY","FSTOCKRETQTY","FRequireOrgId","FReceiveOrgId","FEntrySettleOrgId","FTaxPrice","FPrice","FEntryTaxAmount","FEntryTaxRate","FEntryAmount","FAllAmount"],"Model":{"FID":0,"FBillTypeID":{"FNumber":"CGDD01_SYS"},"FProviderAddress":"JHD-2016-06-23-181","FBusinessType":"CG","F_dev_SrcBillNo":"JHD-2016-06-23-181","FDate":"\/Date(1483260054000+0800)\/","FPurchaseOrgId":{"FNUMBER":"100"},"FPurchaseDeptId":{"FNUMBER":"Joby-汽配"},"FPurchaserId":{"FNUMBER":"何燕婷"},"FSupplierId":{"FNUMBER":"4125"},"PUR_PurchaseOrder__FPOOrderFinance":{"FExchangeTypeId":{"FNUMBER":"HLTX01_SYS"},"FExchangeRate":6.7862,"FSettleCurrId":{"FNUMBER":"PRE001"},"FPayConditionId":{"FNUMBER":"001"},"FSettleModeId":{"FNUMBER":""}},"PUR_PurchaseOrder__FIinstallment":{"FYFDATE":"\/Date(1467302400000+0800)\/","FYFRATIO":0,"FinsPayAdvanceRate":0,"FISPREPAYMENT":false,"FInsPayAdvanceAmount":0.00,"FYFAMOUNT":280.000000},"PUR_PurchaseOrder__FPOOrderEntry":{"FMaterialId":{"FNUMBER":"BT774X001"},"FUnitID":{"FNumber":"PCS"},"FQty":20.00,"FStockQty":20.00,"FPriceUnitQty":20.00,"FBaseUnitQty":20.00,"FDeliveryMaxQty":20.00,"FBaseDeliveryMaxQty":20.00,"FBASESTOCKRETQTY":20.00,"FSTOCKRETQTY":20.00,"FRequireOrgId":{"FNumber":"100"},"FReceiveOrgId":{"FNumber":"100"},"FEntrySettleOrgId":{"FNumber":"100"},"FTaxPrice":14.000000,"FPrice":14.000000,"FEntryTaxAmount":0,"FEntryTaxRate":0,"FEntryAmount":280.000000,"FAllAmount":280.000000}}}
下面是返回的错误信息:
{
"Result": {
"ResponseStatus": {
"ErrorCode": "500",
"IsSuccess": false,
"Errors": [
{
"Message": "第1行分录,库存数量必须大于0"
}
]
}
}
}
推荐阅读