0
Convert SO to Invoice
Has anyone manage to create Sales Invoice from Sales Order?
Nothing extreme, just standard fields.
Tables: Customers, Order, Order Line Items linked to Inventoy Items -> Invoice, Invoice Line Items.
I can't understand the loop function for line items.
Thanks
2 replies
-
Hi, this works by creating an invoice.
Then loop over the order items where the link to the order is the current one.
Then create invoice items and link them the new created invoice.
e.g.:
let myId := _id;
let c := create invoice
for i in select 'Order Line Items' where Order = _id
let ilt := create 'Invoice Line Items'
ilt.invoice := c._id
Let me know if this helps or join our webinar:
https://zoom.us/webinar/register/WN_zoSk2qyNSz6vLRFF1zlakg
Best regards, Alex
-
follow
Content aside
- 6 yrs agoLast active
- 2Replies
- 1663Views