总部老师们好:
我们在做二次开发时,使用API的方式保存采购入库单,Json中把分录里面的税率写成0,保存后单据上的税率竟然是17.
下面是我们做的API
{"Creator":"第三方调用标识","NeedUpDateFields":[],"Model":{
"FID":"0",
"FPurchaseOrgId":{"FNumber":"NSL"},
"FStockOrgId":{"FNumber":"NSL"},
"FBILLTYPEID":{"FNumber":"RKD01_SYS"},
"FDocumentStatus":"A",
"FPURCHASERID":{"FNumber":"NCIC0S045"},
"FBillNo":"NMLY580Q-91_15",
"Fdate":"2015/8/11",
"FPURCHASEDEPTID":{"FNumber":"04.98"},
"FSupplyID":{"FNumber":"3867"},
"FSupplierId":{"FNumber":"3867"},
"FHeadSelfA0146":{"FNumber":"USD"},
"FHeadSelfA0147":"1",
"FHeadSelfA0143":{"FNumber":"3867"},
"FHeadSelfA0139":"1MLY3320150814",
"FHeadSelfA0148":{"FNumber":"L.1MLY33"},
"FHeadSelfA0155":{"FNumber":"MLY"},
"FHeadSelfA0156":"2",
"FHeadSelfA0157":"StockIn201508200003",
"FHeadSelfA0152":{"FNumber":"KD"},
"FHeadSelfA0145":"1",
"FHeadSelfA0153":"STOCKOUT_KDN_NMLY580Q20150825010503(5AJ9) - 副本.D",
"FHeadSelfA0159":"NMLY580Q-91",
"FHeadSelfA0160":"",
"FHeadSelfA0150":"2015/08/05",
"FHeadSelfA0142":{"FNumber":"01"},
"FInStockFin":{
"FLocalCurrId":{"FNumber":"RMB"},
"FExchangeTypeId":{"FNumber":"HLTX01_SYS"},
"FSettleCurrId":{"FNumber":"USD"}},
"FInStockEntry":[
{"FUnitID":{"FNumber":"03"},
"FMATERIALID":{"FNumber":"L.654001YP0B"},
"FSTOCKID":{"FNumber":"K.02"},
"FLOT":{"FNumber":"KK5064753042X935"},
"FREALQTY":"12",
"FTaxPrice":"19.05",
"FPrice":"16.28",
"FAmount":"195.36",
"FAllAmount":"228.6",
"FEntryTaxAmount":"38.87",
"FEntrySelfA0166":"5AJ91508111MLY3320150814",
"FEntrySelfA0157":"12",
"FEntrySelfA0156":"J04201508",
"FEntrySelfA0161":"17",
"FEntrySelfA0167":"2015/08/05",
"FEntrySelfA0158":"16.283803",
"FEntrySelfA0162":"195.405636",
"FEntrySelfA0168":"8302100000",
"FEntrySelfA0169":"引擎盖铰链",
"FEntrySelfA0164":"2015/08/11",
"FEntrySelfA0165":"0",
"FEntrySelfA0170":"个",
"FEntryTaxRate":"0"}]}}
会跟实体服务规则有关系吗,还是我写0的话,系统默认我没写值,就填了个默认值,我们这边的是有默认值设置的
推荐阅读