自3-4个月以来,我一直在使用Netsuite SuiteTalk Web服务,我感到很舒服。现在,我遇到了一些问题,我想使用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);
答案 0 :(得分:0)
尝试以下解决方案
答案 1 :(得分:0)
我找到了最佳的解决方案,为了避免在创建发票时出现信用额度限制,我们可以将Payment创建为PaymentItem,然后我们需要添加发票。