【问题标题】:Cannot Update Amount when Initialize Vendor Payment (Suitetalk)初始化供应商付款时无法更新金额 (Suitetalk)
【发布时间】:2015-11-16 15:41:56
【问题描述】:

我有Create a Vendor Payment 的代码,用于Vendor Bill,如下所示:

InitializeRecord ir = new InitializeRecord();
ir.type = InitializeType.vendorPayment;
InitializeRef iref = new InitializeRef();
iref.typeSpecified = true;
iref.type = InitializeRefType.vendorBill;
iref.internalId = vendorBillId;
ir.reference = iref;

Login();
ReadResponse getInitResp = _service.initialize(ir);

if (getInitResp.status.isSuccess)
{
    Record rec = getInitResp.record;
    ((VendorPayment)rec).total = (double)amount; //I don't want to pall all, just pay a half or just an amount less than the total
    ((VendorPayment)rec).totalSpecified = true;
    WriteResponse writeRes = _service.add(rec);
    return writeRes.status;
}

可以创建付款但总额不适用,付款是支付供应商账单总额的所有金额。

我不知道我在这里错过了什么。

【问题讨论】:

  • 你的意思是说你想在账单中支付部分金额,但是上面的代码支付了账单金额的100%?
  • 我建议使用调试器单步调试代码

标签: c# netsuite


【解决方案1】:

在将付款应用到账单时,您不能更改主体级别金额字段。您必须更改 apply 行项目记录上的 amount 行级别字段。我不确定 Suitetalk 中的语法,但是应该可以。

【讨论】:

  • 是的@Prasun,我只想支付部分账单,我们可以这样做吗?
  • 是的,就像我说的,如果您能够更改行级金额字段
猜你喜欢
  • 2017-07-28
  • 2015-02-26
  • 2015-10-11
  • 2013-01-05
  • 2013-07-23
  • 2018-05-26
  • 2012-04-30
  • 2015-02-28
  • 2014-04-26
相关资源
最近更新 更多