使用 SuiteTalk Webservice 在 Netsuite 中创建发票或销售订单时如何绕过信用额度?
How can bypass the credit limit while creating invoice or saleorder in Netsuite using SuiteTalk Webservice?
我使用 Netsuite SuiteTalk Web 服务已经有 3-4 个月了,我觉得使用它很舒服。现在,我有问题想使用 SuiteTalk 在 netsuite 中创建 saleorder/invoice,但我无法这样做,因为每次我都会收到信用额度错误,即客户发票金额超过他们的信用额度。它是 O.K,但只要我也使用相同的网络服务请求发送付款。
如果有人或 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);
尝试以下解决方案
- 转到 -> 设置 -> 会计 -> 会计首选项
- 在“常规”选项卡的“应收帐款”部分
- 查看客户信用限额处理字段。根据您的情况选择合适的值。
- 忽略 – Select 此方法允许输入销售订单和发票,而不对达到或超过信用额度的客户发出警告。
- 仅警告 – Select 当输入的销售订单或发票使客户达到或超过其信用额度时,此方法会生成警告。警告出现后,您可以选择进入或取消交易。
- 强制暂停 – Select 此方法用于阻止输入使客户达到或超过其信用额度的销售订单或发票。此方法还会阻止向处于或超过信用额度的客户的现有订单添加商品。
我找到了最好的解决方案,为了在创建发票时避免信用额度,我们可以将付款创建为 PaymentItem,然后我们需要在发票中添加。
我使用 Netsuite SuiteTalk Web 服务已经有 3-4 个月了,我觉得使用它很舒服。现在,我有问题想使用 SuiteTalk 在 netsuite 中创建 saleorder/invoice,但我无法这样做,因为每次我都会收到信用额度错误,即客户发票金额超过他们的信用额度。它是 O.K,但只要我也使用相同的网络服务请求发送付款。
如果有人或 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);
尝试以下解决方案
- 转到 -> 设置 -> 会计 -> 会计首选项
- 在“常规”选项卡的“应收帐款”部分
- 查看客户信用限额处理字段。根据您的情况选择合适的值。
- 忽略 – Select 此方法允许输入销售订单和发票,而不对达到或超过信用额度的客户发出警告。
- 仅警告 – Select 当输入的销售订单或发票使客户达到或超过其信用额度时,此方法会生成警告。警告出现后,您可以选择进入或取消交易。
- 强制暂停 – Select 此方法用于阻止输入使客户达到或超过其信用额度的销售订单或发票。此方法还会阻止向处于或超过信用额度的客户的现有订单添加商品。
我找到了最好的解决方案,为了在创建发票时避免信用额度,我们可以将付款创建为 PaymentItem,然后我们需要在发票中添加。