应收单,应付单单价错误
金蝶云社区-421392028
421392028
0人赞赏了该文章 1,186次浏览 未经作者许可,禁止转载编辑于2017年01月20日 15:04:06

应收单,应付单的单价(FPrice)错误。
通过webAPI输入数据到应付单,应收单的单价是正确的(
0.12886362),但从k3输出的结果,单价是错误的(0.12884615)。

例如应付单:

输入json: { "Creator":"SCM", "NeedUpDateFields":[""], "Model":{"FID":0, "FBillTypeID":{"FNumber":"YFD01_SYS"}, "FBillNo":"RCV2017010005", "FSUPPLIERID":{"FNumber":"F00002"}, "FCURRENCYID":{"FNumber":"PRE001"}, "FDATE":"2017-01-18", "F_employee":{"FNumber":"03088"}, "FSETTLEORGID":{"FNumber":"004"}, "FPAYORGID":{"FNumber":"004"}, "FPURCHASEORGID":{"FNumber":"004"}, "FPURCHASEDEPTID":{"FNumber":"0403"}, "AP_Payable__FsubHeadFinc":{"FExchangeRate":"1.0000"}, "FEntityDetail":[ {"FEntryID":0, "FMATERIALID":{"FNumber":"MAKK2520T1R0M"}, "F_customer":{"FNumber":"33.02.00012"}, "FPRICEUNITID":{"FNumber":"6667a763086c20427a0a1e703edbcf8e513e"}, "FPriceQty":"130", "FBASICUNITQTY":"130", "FPrice":"0.12886362", "FEntryTaxRate":17.0, "FEntryDiscountRate":0, "FNoTaxAmountFor_D":"16.75" } ]}}




输出json:{"Result":{"Result":{"APPROVERID_Id":0,"AP_PAYABLEPLAN":[{"FWRITTENOFFAMOUNTFOR":0,"Seq":1,"FPAYABLEENTRYID":0,"PAYAMOUNTFOR":19.6,"PAYAMOUNT":19.6,"FMATERIALSEQ":0,"RELATEHADPAYAMOUNT_P":0,"FAPPLYAMOUNT":0,"FMATERIALID_P":null,"WRITTENOFFSTATUS_P":"A","FPURCHASEORDERID":0,"NOTWRITTENOFFAMOUNTFOR_P":0,"FPAYRATE":100,"Id":101911,"FPAYREAPPLYAMT":0,"FMATERIALID_P_Id":0,"FPURCHASEORDERNO":" ","ENDDATE":"2017-01-18T00:00:00"}],
"BillTypeID":{"Name":[{"Value":"标准应付单","Key":2052}],"MultiLanguageText":[{"Name":"标准应付单","PkId":"254dc210f27f4b7eacf53ff347ee880c","LocaleId":2052}],"Number":"YFD01_SYS","Id":"a83c007f22414b399b0ee9b9aafc75f9"},"REMARK":" ","ISPRICEEXCLUDETAX":true,"CancellerId_Id":0,"PURCHASEDEPTID_Id":104659,"CreateDate":"2017-01-20T10:40:23.01","ModifyDate":"2017-01-20T10:40:22","BillTypeID_Id":"a83c007f22414b399b0ee9b9aafc75f9","PURCHASEORGID_Id":103392,
"F_Employee":null,"FOWNERTYPE":"","NOTWRITTENOFFAMOUNTFOR":0,"SUPPLIERID":{"Name":[{"Value":"深圳市法本电子有限公司","Key":2052}],"MultiLanguageText":[{"Name":"深圳市法本电子有限公司","PkId":100171,"LocaleId":2052}],"SupplierLocation":[],"CorrespondOrgId_Id":0,"SupplierFinance":[{"PayCurrencyId_Id":1,"InvoiceType":"1","FTaxType_Id":"9e855eb97bec43e7b50c3e0e0bf51210","PayCondition":null,"PayCondition_Id":0,"Id":100171,"PayCurrencyId":{"Name":[{"Value":"人民币","Key":2052}],
"MultiLanguageText":[{"Name":"人民币","PkId":2,"LocaleId":2052}],"Number":"PRE001","Id":1,"msterID":1},"FTaxType":{"Name":[{"Value":"一般纳税人","Key":2052},{"Value":"一般納稅人","Key":3076}],"MultiLanguageText":[{"Name":"一般纳税人","PkId":"7841e26e9e5a4fe6a83e7cdbe0c24175","LocaleId":2052},{"Name":"一般納稅人","PkId":"2942b840514242b299738f8b9bbe2095","LocaleId":3076}],"Number":"SFL02_SYS","Id":"9e855eb97bec43e7b50c3e0e0bf51210"}}],
"Number":"F00002","SupplierBase":[{"DeptId_Id":0,"FStaffId":null,"DeptId":null,"Id":100171,"FStaffId_Id":0}],"Id":108976,"CorrespondOrgId":null,"SupplierBusiness":[{"FreezeLimit":" ","SettleTypeId_Id":0,"SettleTypeId":null,"Id":100171}],"msterID":105586},"APPROVERID":null,"SETTLEORGID":{"Name":[{"Value":"法本电子科技(香港)有限公司","Key":2052}],"MultiLanguageText":[{"Name":"法本电子科技(香港)有限公司","PkId":100005,"LocaleId":2052}],
"Number":"004","Id":103392},"CancelStatus":"A","WRITTENOFFSTATUS":"A","PURCHASERID":null,"DOCUMENTSTATUS":"A","ISINIT":false,"BillNo":"RCV2017010005","FALLAMOUNTFOR":19.6,"AP_PAYABLEENTRY":[{"FBUYIVINIBASICQTY":0,"WWINTYPE":" ","FALLAMOUNTFOR_D":19.6,"FStockUnitId":{"RoundType":"1","Name":[{"Value":"Pcs","Key":2052}],"MultiLanguageText":[{"Name":"Pcs","PkId":10136,"LocaleId":2052}],"Number":"Pcs","Precision":0,"Id":10101,
"UNITCONVERTRATE":[{"ConvertType":"0","Id":10118}],"msterID":10101},"EntryTaxRate":17,"MATERIALID":{"Name":[{"Value":"Inductor","Key":2052}],"MultiLanguageText":[{"Name":"Inductor","PkId":103015,"LocaleId":2052,"Specification":"Metal Core Wire-wound Chip Power Inductors,H=1.0mm,L*W=2.5*2.0MM,1.0uH,+/-20%,"}],"UseOrgId_Id":103392,"Number":"MAKK2520T1R0M","MaterialAuxPty":[],"Specification":[{"Value":"Metal Core Wire-wound Chip Power Inductors,H=1.0mm,L*W=2.5*2.0MM,1.0uH,+/-20%,","Key":2052}],
"MaterialBase":[{"ErpClsID":"1","CategoryID":{"Name":[{"Value":"原材料","Key":2052}],"MultiLanguageText":[{"Name":"原材料","PkId":243,"LocaleId":2052}],"Number":"CHLB01_SYS","Id":237,"msterID":237},"TaxType":{"Name":[{"Value":"标准税率","Key":2052}],"MultiLanguageText":[{"Name":"标准税率","PkId":"1ac1f2dd4a584f838c73c939d1496e43","LocaleId":2052}],"Number":"WLDSFL01_SYS","Id":"63489f1e86944c989c58d97893a2aec2"},"BaseUnitId":{"Name":[{"Value":"Pcs","Key":2052}],
"MultiLanguageText":[{"Name":"Pcs","PkId":10136,"LocaleId":2052}],"Number":"Pcs","Id":10101,"msterID":10101},"CategoryID_Id":237,"Id":103017,"TaxType_Id":"63489f1e86944c989c58d97893a2aec2","BaseUnitId_Id":10101}],"Id":109183,"MaterialPurchase":[{"PurchasePriceUnitId":{"Name":[{"Value":"Pcs","Key":2052}],"MultiLanguageText":[{"Name":"Pcs","PkId":10136,"LocaleId":2052}],"Number":"Pcs","Id":10101,"msterID":10101},"Id":103017,"PurchasePriceUnitId_Id":10101}],
"UseOrgId":{"Name":[{"Value":"法本电子科技(香港)有限公司","Key":2052}],"MultiLanguageText":[{"Name":"法本电子科技(香港)有限公司","PkId":100005,"LocaleId":2052}],"Number":"004","Id":103392},"MaterialStock":[{"IsExpParToFlot":false,"StoreUnitID":{"Name":[{"Value":"Pcs","Key":2052}],"MultiLanguageText":[{"Name":"Pcs","PkId":10136,"LocaleId":2052}],"Number":"Pcs","Id":10101,"msterID":10101},"IsBatchManage":false,"StoreUnitID_Id":10101,"Id":103017}],"msterID":103876},"PRICEUNITID":{"RoundType":"1","Name":[{"Value":"Pcs","Key":2052}],"MultiLanguageText":[{"Name":"Pcs","PkId":10136,"LocaleId":2052}],"Number":"Pcs","Precision":0,"Id":10101,"UNITCONVERTRATE":[{"ConvertType":"0","Id":10118}],"msterID":10101},"FHOOKSTATUS":"A","TaxPrice":0.15075,"NOTAXAMOUNT":16.75,"PriceQty":130,"EntryDiscountRate":0,"INSTOCKID":[],"BizID":0,"BaseJoinQty":0,"PAYABLETAX":[],"BizBillTypeId":null,"BizFormId":null,"SourceBillNo":" ","FORDERNUMBER":" ","OPENAMOUNTFOR_D":0,"FPAYMENTAMOUNT":0,"SpecialQTY":0,"FPROCESSID":null,"PriceCoefficient":1,"BizBillNo":" ","FStockQty":130,"HadMatchAmountFor":0,"FSEQNUMBER":" ","MaterialDesc":[{"Value":"Inductor","Key":2052}],"PRICEUNITID_Id":10101,"SpecialAmountFor":0,"FMOENTRYSEQ":0,"FOPENQTY":0,"Comment":" ","BASICUNITID":{"RoundType":"1","Name":[{"Value":"Pcs","Key":2052}],"MultiLanguageText":[{"Name":"Pcs","PkId":10136,"LocaleId":2052}],"Number":"Pcs","Precision":0,"Id":10101,"UNITCONVERTRATE":[{"ConvertType":"0","Id":10118}],"msterID":10101},"FIVINIALLAMOUNTFOR":0,"FAUXPROPID_Id":0,"BASICUNITQTY":130,"BASICUNITID_Id":10101,"FTaxCombination_Id":0,"FCOSTID_Id":0,"PriceWithTax":0.12884615,"MultiLanguageText":[{"PkId":104138,"LocaleId":2052,"MaterialDesc":"Inductor"}],"F_customer_Id":0,"FBUYIVINIQTY":0,"DISCOUNTAMOUNT":0,"FMONUMBER":" ","BizEntryId":0,"Id":104316,"FCOSTID":null,"FALLOCATESTATUS":"A","StockBaseQty":130,"FASSETID":null,"IsFree":false,"FOPNO":" ","BUYIVQTY":0,"BUYIVBASICQTY":0,"TEMPTAXRATE":17,"FCOSTDEPARTMENTID_Id":0,"FTAXAMOUNTFOR_D":2.85,"FDISCOUNTAMOUNTFOR":0,"BizFormId_Id":" ","FFPRODEPARTMENTID":null,
"ORDERENTRYSEQ":0,"FOrderEntryID":0,"F_customer":null,"FSOURCETYPE":" ","StockBaseNum":1,"MATERIALID_Id":109183,"FPrice":0.12884615,"FCOSTDEPARTMENTID":null,"FLOT_Text":" ","ISOUTSTOCK":false,"FAUXPROPID":null,"FIVALLAMOUNTFOR":0,"FTAXAMOUNT_D":2.85,"INCLUDECOST":false,"Seq":1,"FLOT":null,"ALLAMOUNT":19.6,"FLOT_Id":0,"FOPERNUMBER":0,"BizBillTypeId_Id":" ","FEntityDetail_Link":[],"FFPRODEPARTMENTID_Id":0,"FNoTaxAmountFor_D":16.75,"FASSETID_Id":0,"SettleTran":" ","OPENSTATUS_D":"A","FTaxCombination":null,"MatchNotTaxAmtFor":0,"FPROCESSID_Id":0,"OUTSTOCKID":[],"FStockUnitId_Id":10101,"PriceBaseDen":1}],"CancellerId":null,"ISTAXINCOST":false,"SourceBillType":" ","PayConditon":null,"FISBYIV":false,"ModifierId_Id":16394,"PURCHASEDEPTID":{"Name":[{"Value":"PT流程与IT部","Key":2052}],"MultiLanguageText":[{"Name":"PT流程与IT部","PkId":100211,"LocaleId":2052}],"Number":"0403","Id":104659,"msterID":104659},"PURCHASERGROUPID_Id":0,"FOWNERID_Id":0,"ISTAX":false,"FACCOUNTSYSTEM_Id":0,"CreatorId_Id":16394,"Id":101915,"SETTLEORGID_Id":103392,"PayConditon_Id":0,"ByVerify":false,"FMatchMethodID":0,"FPAYORGID_Id":103392,"F_CHECKNO":" ","FOWNERID":null,"ISGENHSADJ":false,"FPAYORGID":{"Name":[{"Value":"法本电子科技(香港)有限公司","Key":2052}],"MultiLanguageText":[{"Name":"法本电子科技(香港)有限公司","PkId":100005,"LocaleId":2052}],"Number":"004","Id":103392},"F_Employee_Id":0,"SUPPLIERID_Id":108976,"CancelDate":null,"PURCHASEORGID":{"Name":[{"Value":"法本电子科技(香港)有限公司","Key":2052}],"MultiLanguageText":[{"Name":"法本电子科技(香港)有限公司","PkId":100005,"LocaleId":2052}],"Number":"004","Id":103392},"CreatorId":{"Name":"Administrator","UserAccount":" ","Id":16394},"PURCHASERID_Id":0,"FBUSINESSTYPE":"CG","INSTOCKBUSTYPE":" ","PURCHASERGROUPID":null,"MRBBUSTYPE":" ","AP_PAYABLEFIN":[{"FSettleTypeID_Id":0,"NoTaxAmountFor":16.75,"FExchangeRate":1,"TaxAmount":2.85,"EXCHANGETYPE_Id":2,"ACCNTTIMEJUDGETIME":"2017-01-18T00:00:00","MAINBOOKSTDCURRID_Id":2,"Id":101914,"FSettleTypeID":null,"TaxAmountFor":2.85,"MAINBOOKSTDCURRID":{"RoundType":"1","Sysmbol":"HK$","Name":[{"Value":"港币","Key":2052}],"MultiLanguageText":[{"Name":"港币","PkId":5,"LocaleId":2052}],"Number":"PRE002","FormatOrder":"1","AmountDigits":2,"PriceDigits":8,"Id":2,"IsShowCSymbol":true,"msterID":2},"NoTaxAmount":16.75,"FALLAMOUNT":19.6,"EXCHANGETYPE":{"Name":[{"Value":"即期汇率","Key":2052}],"MultiLanguageText":[{"Name":"即期汇率","PkId":3,"LocaleId":2052}],"Number":"HLTX02_SYS","ReverseDigits":4,"Digits":4,"Id":2,"msterID":0}}],"ModifierId":{"Name":"Administrator","UserAccount":" ","Id":16394},"FACCOUNTSYSTEM":null,"RelateHadPayAmount":0,"FENDDATE_H":"2017-01-18T00:00:00","CURRENCYID":{"RoundType":"1","Sysmbol":"¥","Name":[{"Value":"人民币","Key":2052}],"MultiLanguageText":[{"Name":"人民币","PkId":2,"LocaleId":2052}],"Number":"PRE001","FormatOrder":"1","AmountDigits":2,"PriceDigits":8,"Id":1,"IsShowCSymbol":true,"msterID":1},"APPROVEDATE":null,"AP_PAYABLESUPPLIER":[{"ChargeId_Id":108976,"ORDERID":{"Name":[{"Value":"深圳市法本电子有限公司","Key":2052}],"MultiLanguageText":[{"Name":"深圳市法本电子有限公司","PkId":100171,"LocaleId":2052}],"SupplierLocation":[],"CorrespondOrgId_Id":0,"SupplierFinance":[{"PayCurrencyId_Id":1,"InvoiceType":"1","FTaxType_Id":"9e855eb97bec43e7b50c3e0e0bf51210","PayCondition":null,"PayCondition_Id":0,"Id":100171,"PayCurrencyId":{"Name":[{"Value":"人民币","Key":2052}],"MultiLanguageText":[{"Name":"人民币","PkId":2,"LocaleId":2052}],"Number":"PRE001","Id":1,"msterID":1},"FTaxType":{"Name":[{"Value":"一般纳税人","Key":2052},{"Value":"一般納稅人","Key":3076}],"MultiLanguageText":[{"Name":"一般纳税人","PkId":"7841e26e9e5a4fe6a83e7cdbe0c24175","LocaleId":2052},{"Name":"一般納稅人","PkId":"2942b840514242b299738f8b9bbe2095","LocaleId":3076}],"Number":"SFL02_SYS","Id":"9e855eb97bec43e7b50c3e0e0bf51210"}}],"Number":"F00002","SupplierBase":[{"DeptId_Id":0,"FStaffId":null,"DeptId":null,"Id":100171,"FStaffId_Id":0}],"Id":108976,"CorrespondOrgId":null,"SupplierBusiness":[{"FreezeLimit":" ","SettleTypeId_Id":0,"SettleTypeId":null,"Id":100171}],"msterID":105586},"ORDERID_Id":108976,"TRANSFERID":{"Name":[{"Value":"深圳市法本电子有限公司","Key":2052}],"MultiLanguageText":[{"Name":"深圳市法本电子有限公司","PkId":100171,"LocaleId":2052}],"SupplierLocation":[],"CorrespondOrgId_Id":0,"SupplierFinance":[{"PayCurrencyId_Id":1,"InvoiceType":"1","FTaxType_Id":"9e855eb97bec43e7b50c3e0e0bf51210","PayCondition":null,"PayCondition_Id":0,"Id":100171,"PayCurrencyId":{"Name":[{"Value":"人民币","Key":2052}],"MultiLanguageText":[{"Name":"人民币","PkId":2,"LocaleId":2052}],"Number":"PRE001","Id":1,"msterID":1},"FTaxType":{"Name":[{"Value":"一般纳税人","Key":2052},{"Value":"一般納稅人","Key":3076}],"MultiLanguageText":[{"Name":"一般纳税人","PkId":"7841e26e9e5a4fe6a83e7cdbe0c24175","LocaleId":2052},{"Name":"一般納稅人","PkId":"2942b840514242b299738f8b9bbe2095","LocaleId":3076}],"Number":"SFL02_SYS","Id":"9e855eb97bec43e7b50c3e0e0bf51210"}}],"Number":"F00002","SupplierBase":[{"DeptId_Id":0,"FStaffId":null,"DeptId":null,"Id":100171,"FStaffId_Id":0}],"Id":108976,"CorrespondOrgId":null,"SupplierBusiness":[{"FreezeLimit":" ","SettleTypeId_Id":0,"SettleTypeId":null,"Id":100171}],"msterID":105586},"ChargeId":{"Name":[{"Value":"深圳市法本电子有限公司","Key":2052}],"MultiLanguageText":[{"Name":"深圳市法本电子有限公司","PkId":100171,"LocaleId":2052}],"SupplierLocation":[],"CorrespondOrgId_Id":0,"SupplierFinance":[{"PayCurrencyId_Id":1,"InvoiceType":"1","FTaxType_Id":"9e855eb97bec43e7b50c3e0e0bf51210","PayCondition":null,"PayCondition_Id":0,"Id":100171,"PayCurrencyId":{"Name":[{"Value":"人民币","Key":2052}],"MultiLanguageText":[{"Name":"人民币","PkId":2,"LocaleId":2052}],"Number":"PRE001","Id":1,"msterID":1},"FTaxType":{"Name":[{"Value":"一般纳税人","Key":2052},{"Value":"一般納稅人","Key":3076}],"MultiLanguageText":[{"Name":"一般纳税人","PkId":"7841e26e9e5a4fe6a83e7cdbe0c24175","LocaleId":2052},{"Name":"一般納稅人","PkId":"2942b840514242b299738f8b9bbe2095","LocaleId":3076}],"Number":"SFL02_SYS","Id":"9e855eb97bec43e7b50c3e0e0bf51210"}}],"Number":"F00002","SupplierBase":[{"DeptId_Id":0,"FStaffId":null,"DeptId":null,"Id":100171,"FStaffId_Id":0}],"Id":108976,"CorrespondOrgId":null,"SupplierBusiness":[{"FreezeLimit":" ","SettleTypeId_Id":0,"SettleTypeId":null,"Id":100171}],"msterID":105586},"Id":101914,"TRANSFERID_Id":108976}],"CURRENCYID_Id":1,"OPENSTATUS":"A","DATE":"2017-01-18T00:00:00"},"ResponseStatus":null}}

图片: