Hello, I'm trying to create item receipt for purch...
# general
v
Hello, I'm trying to create item receipt for purchase order and invoice using rest api, any help on how to do that please?
d
function transformPurchaseOrder() { const fromRecord = 'purchaseorder'; const fromId = 26; const toRecord = 'itemreceipt'; const trecord = record.transform({ fromType: fromRecord, fromId: fromId, toType: toRecord, }); }
@voron chad record.transform can transform PO to Item receipt or salesOrder to Invoice etc :)