电商b2c订单的webapi,难啊!
1人赞赏了该文章
430次浏览
编辑于2017年07月20日 20:54:43
{
\"Creator\": \"\",
\"NeedUpDateFields\": [
],
\"NeedReturnFields\": [
],
\"IsDeleteEntry\": \"True\",
\"SubSystemId\": \"\",
\"IsVerifyBaseDataField\": \"false\",
\"Model\": {
\"FID\": \"0\",
\"FNetOrderSource\": {
\"FNumber\": \"888\"
},
\"FShopSaleOrgId\": {
\"FNumber\": \"SH00-BB\"
},
\"FNetOrderDate\": \"2017-07-2020: 36: 58\",
\"FMemberName\": \"爱家的人771181\",
\"FUserTel\": \"\",
\"FReceivePerson\": \"刘兵\",
\"FMobilePhone\": \"18939771181\",
\"FTelePhone\": \"021-58645767\",
\"FFullAddress\": \"上海上海市浦东新区高桥镇凌桥镇凌高路67弄7号602\",
\"FPostCode\": \"200137\",
\"FUserRemarks\": \"\",
\"FDeliveryRemark\": \"\",
\"FSettlementCurrency\": {
\"FNumber\": \"PRE001\"
},
\"FPayMode\": \"1\",
\"FPaymentStatus\": \"Y\",
\"FDiscountFee\": 0.0,
\"FTotalFare\": 0.0,
\"FISInvoice\": false,
\"FInvoiceType\": \"1\",
\"FInvoiceTitle\": \"\",
\"FExchangeTypeId\": {
\"FNumber\": \"HLTX01_SYS\"
},
\"FExchangeRate\": 1.0,
\"FUserLogistics\": {
\"FNumber\": \"\"
},
\"FReceiverAddress\": {
\"FFullAddress\": \"上海上海市浦东新区高桥镇凌桥镇凌高路67弄7号602\"
},
\"FBaseCurrency\": {
\"FNumber\": \"PRE001\"
},
\"FNetOrderStatus\": \"TRADE_SELLER_SEND_GOODS\",
\"FIsExecuteVipRule\": false,
\"FIsFalse\": false,
\"FIsHandModifyAddress\": true,
\"FDataUniqueFlag\": \"\",
\"FIsValidateFlag\": false,
\"FDataUniqueFlagTime\": \"1900-01-01\",
\"FInvoiceRequirement\": \"NotReturn\",
\"FTaxpayerIdent\": \"\",
\"FRegisteredAddress\": \"\",
\"FRegisteredPhone\": \"\",
\"FDepositBank\": \"\",
\"FBankAccount\": \"\",
\"FInvoiceContent\": \"\",
\"FLogisticsCompany\": {
\"FNumber\": \"\"
},
\"FSendStockType\": \"\",
\"FInvoiceInfoId\": {
\"FInvoiceTitle\": \"\"
},
\"FXslb\": {
\"FNumber\": \"ds\"
},
\"FOrderDetailEntry\": [
{
\"FEntryID\": null,
\"FIsPresent\": false,
\"FMaterialId\": {
\"FNumber\": \"9787567112032\"
},
\"FSaleUnit\": {
\"FNumber\": \"ben\"
},
\"FQty\": 1.0,
\"FDiscountRate\": 0.0,
\"FTaxPrice\": 10.0,
\"FTaxRate\": 13.00,
\"FStockOrgId\": {
\"FNumber\": \"SH00-BB\"
},
\"FStockId\": {
\"FNumber\": \"CK001\"
},
\"FRecordStatus\": \"TRADE_SELLER_SEND_GOODS\",
\"FISCNSHIP\": false,
\"FSHIPTYPE\": \"\",
\"FIVJoinQty\": 0.0,
\"FSTORECODE\": null,
\"FBaseIVJoinQty\": 0.0,
\"FBaseJoinStockOutQty\": 0.0
}
]
}
}
这个json是通过前台,填写测试数据生成的。生成的单据和前台直接新增保存的单据两边不一至。主要是物料id不一至。
该账套启用了物料分配属性。本来应该取的是"SHOO-BB"下的物料id。现在取了"SHOO"
\"Creator\": \"\",
\"NeedUpDateFields\": [
],
\"NeedReturnFields\": [
],
\"IsDeleteEntry\": \"True\",
\"SubSystemId\": \"\",
\"IsVerifyBaseDataField\": \"false\",
\"Model\": {
\"FID\": \"0\",
\"FNetOrderSource\": {
\"FNumber\": \"888\"
},
\"FShopSaleOrgId\": {
\"FNumber\": \"SH00-BB\"
},
\"FNetOrderDate\": \"2017-07-2020: 36: 58\",
\"FMemberName\": \"爱家的人771181\",
\"FUserTel\": \"\",
\"FReceivePerson\": \"刘兵\",
\"FMobilePhone\": \"18939771181\",
\"FTelePhone\": \"021-58645767\",
\"FFullAddress\": \"上海上海市浦东新区高桥镇凌桥镇凌高路67弄7号602\",
\"FPostCode\": \"200137\",
\"FUserRemarks\": \"\",
\"FDeliveryRemark\": \"\",
\"FSettlementCurrency\": {
\"FNumber\": \"PRE001\"
},
\"FPayMode\": \"1\",
\"FPaymentStatus\": \"Y\",
\"FDiscountFee\": 0.0,
\"FTotalFare\": 0.0,
\"FISInvoice\": false,
\"FInvoiceType\": \"1\",
\"FInvoiceTitle\": \"\",
\"FExchangeTypeId\": {
\"FNumber\": \"HLTX01_SYS\"
},
\"FExchangeRate\": 1.0,
\"FUserLogistics\": {
\"FNumber\": \"\"
},
\"FReceiverAddress\": {
\"FFullAddress\": \"上海上海市浦东新区高桥镇凌桥镇凌高路67弄7号602\"
},
\"FBaseCurrency\": {
\"FNumber\": \"PRE001\"
},
\"FNetOrderStatus\": \"TRADE_SELLER_SEND_GOODS\",
\"FIsExecuteVipRule\": false,
\"FIsFalse\": false,
\"FIsHandModifyAddress\": true,
\"FDataUniqueFlag\": \"\",
\"FIsValidateFlag\": false,
\"FDataUniqueFlagTime\": \"1900-01-01\",
\"FInvoiceRequirement\": \"NotReturn\",
\"FTaxpayerIdent\": \"\",
\"FRegisteredAddress\": \"\",
\"FRegisteredPhone\": \"\",
\"FDepositBank\": \"\",
\"FBankAccount\": \"\",
\"FInvoiceContent\": \"\",
\"FLogisticsCompany\": {
\"FNumber\": \"\"
},
\"FSendStockType\": \"\",
\"FInvoiceInfoId\": {
\"FInvoiceTitle\": \"\"
},
\"FXslb\": {
\"FNumber\": \"ds\"
},
\"FOrderDetailEntry\": [
{
\"FEntryID\": null,
\"FIsPresent\": false,
\"FMaterialId\": {
\"FNumber\": \"9787567112032\"
},
\"FSaleUnit\": {
\"FNumber\": \"ben\"
},
\"FQty\": 1.0,
\"FDiscountRate\": 0.0,
\"FTaxPrice\": 10.0,
\"FTaxRate\": 13.00,
\"FStockOrgId\": {
\"FNumber\": \"SH00-BB\"
},
\"FStockId\": {
\"FNumber\": \"CK001\"
},
\"FRecordStatus\": \"TRADE_SELLER_SEND_GOODS\",
\"FISCNSHIP\": false,
\"FSHIPTYPE\": \"\",
\"FIVJoinQty\": 0.0,
\"FSTORECODE\": null,
\"FBaseIVJoinQty\": 0.0,
\"FBaseJoinStockOutQty\": 0.0
}
]
}
}
这个json是通过前台,填写测试数据生成的。生成的单据和前台直接新增保存的单据两边不一至。主要是物料id不一至。
该账套启用了物料分配属性。本来应该取的是"SHOO-BB"下的物料id。现在取了"SHOO"
推荐阅读