各位老师:
我在系统中配置的凭证保存接口,让客户调用(PHP),再传入的分录中科目如果没有核算项目的时候,我的FDetailID字段传入0. 成功生成cloud凭证。现在我们调用接口的分录科目是按照客户核算的,我在后台直接找到了一个正确的FDetailID的值100003,调用json如下(一条分录的):
'GL_VOUCHER__FEntity' => array( //分录要传两段
array(
'FDetailID' => 100003,
'FCURRENCYID' => array(
'FNumber' => 'PRE001',
),
'FEXCHANGERATETYPE' => array(
'FNumber' => 'HLTX01_SYS',
),
'FEXCHANGERATE' => 1,
'FAMOUNTFOR' => 1,
'FAmount' => 1,
'FDC' => 1,
'FCREDIT' => 0,
'FDEBIT' => 1,
'FEXPLANATION' => '摘要',
'FACCOUNTID' => array(
'FNumber' => '1001',
),
'F_ASD_FlowNO' => '100001',
'F_ASD_OrderBNO' => '100001',
),
报错提示如下:
Result: {
ResponseStatus: {
Message: "第1行分录:核算维度信息不完整![客户]为必录项,请重新录入! 第2行分录:核算维度信息不完整![客户]为必录项,请重新录入! ",
StackTrace: " at Kingdee.BOS.Web.Bill.BillWebService.ShowErrMessage(String msg, String title, MessageBoxType msgType) at Kingdee.K3.FIN.GL.Business.PlugIn.VoucherEdit.BeforeSave(BeforeSaveEventArgs e) at Kingdee.BOS.Core.Bill.PlugIn.BillModelPlugInProxy.FireBeforeSave(BeforeSaveEventArgs e) at Kingdee.BOS.Model.Bill.BillModel.Save(OperateOption option) at Kingdee.BOS.Business.Bill.OperationService.Save.Execute() at Kingdee.BOS.Web.Bill.BillWebService.ExcuteOperation(DynamicServiceModel model, String opNumber, Object request)",
IsSuccess: false
}
}
请问这是哪里的问题呢?我该如何去传那个FDetailID那个字段。如果一个科目是多核算维度,那么我该怎么传那个字段。 感谢
推荐阅读