If you go into the UI and hit the Bill Remaining button, even if you do not enable Bill Ahead of Fulfillment, items will show up on the Invoice (albeit at 0 quantities). You can then go ahead and overwrite the quantities to whatever you wish, even if there is no item fulfillment for those lines.
However, apparently, via script you cannot replicate this behavior. So, when I try to transform a Sales Order to an Invoice, and it has already been billed once (and this line appears on that bill for 0 quantity, because it has not yet been fulfilled) and now I want it to appear on a new transaction (new Invoice) so that I may edit the quantity - I cannot get past the error:
<span style="color:'#000000'"><span style="font-family:'Courier New'">Code: INVALID_INITIALIZE_REF Details: You can not initialize invoice: invalid reference [internalid of the sales order]</span></span>
This is troublesome, because in the UI I can simply go to a URL that will do it, the item that appeared on the first invoice at 0 will appear on this one as well, and I can then edit the invoice and put quantities in for that item:https://debugger.sandbox.netsuite.com/app/accounting/transactions/custinvc.nl?id=[internal id of the sales order]&e=T&transform=salesord&billremaining=T&memdoc=0&whence=
Anybody have any idea how I can bill this item after it appeared on a previous invoice, but before it was fulfilled?Thanks!