0

我使用 Netsuite SuiteTalk 网络服务 3-4 个月以来我觉得使用它很舒服。现在,我有一些问题,我想使用 SuiteTalk 在 netsuite 中创建销售订单/发票,但我无法做到这一点,因为每次我收到信用额度错误,即客户发票金额超过他们的信用额度。没关系,但只要我也使用相同的网络服务请求发送付款。

如果有人或 Netsuite 人员可以帮助我在创建发票时绕过信用额度,我将不胜感激。

请看一下suitetalk c# 代码。

    Invoice inv = new Invoice();
    inv.entity = new RecordRef() { internalId = 25, type = RecordType.customer, typeSpecified = true };
    inv.tranDate = new DateTime(2018,9,18);
    inv.memo = "Test Memo";

    inv.department = new RecordRef() { internalId = 10, type = RecordType.department, typeSpecified = true };
    inv.location = new RecordRef() { internalId = 16, type = RecordType.location, typeSpecified = true };


     InvoiceItemList itemList = new InvoiceItemList();

     InvoiceItem[] items = new InvoiceItem[1];

     // invoice items
     InvoiceItem item = new InvoiceItem();
     item.item = new RecordRef() { internalId = 12510 };
     item.rate = 2.65;
     item.amount = 265.00;                    
     item.quantity = 100;

     items[0] = item;                

     itemList.item = items;
     inv.itemList = itemList;


     inv.amountPaid = 180;
     inv.amountPaidSpecified = true;

     inv.onCreditHold = "true";

     WriteResponse writeRes = ns.Service.add(inv);
4

2 回答 2

0

尝试以下解决方案

  1. 转到 -> 设置 -> 会计 -> 会计首选项
  2. 在常规选项卡帐户应收款部分
  3. 请参阅客户信用额度处理字段。根据您的情况选择合适的值。

在此处输入图像描述

  1. 忽略- 选择此方法以允许输入销售订单和发票,而不会对达到或超过其信用额度的客户发出警告。
  2. 仅警告– 选择此方法可在输入的销售订单或发票使客户达到或超过其信用额度时生成警告。出现警告后,您可以选择进入或取消交易。
  3. 强制保留- 选择此方法可阻止输入使客户达到或超过其信用额度的销售订单或发票。此方法还阻止将商品添加到信用额度或高于其信用额度的客户的现有订单中。
于 2018-10-03T15:47:53.097 回答
0

我找到了最好的解决方案,为了在创建发票时避免信用额度,我们可以将付款创建为 PaymentItem,然后我们需要添加发票。

于 2018-10-09T04:02:07.660 回答