{"ok":true,"commandType":"transfer-delivery-order-to-existing-sales-invoice","module":"Linked Documents","mode":"write","summary":"Transfer delivery order into an existing sales invoice.","payloadSchema":{"targetDocNo":"required existing sales invoice document number","sourceDocNo":"required source delivery order document number","lines":"optional selected source rows by sourceDtlKey or sourceLineNo; omit to transfer all selected/outstanding rows supported by AutoCount","invoiceDocNo":"alias for targetDocNo","docNo":"alias for targetDocNo","fromDocNo":"alias for sourceDocNo","transferQtyMode":"optional transfer quantity mode such as all or outstanding where AutoCount supports it","saveAsDraft":"optional boolean; true saves the edited existing invoice as an AutoCount draft where the account book allows it"},"examplePayload":{"targetDocNo":"I-000001","sourceDocNo":"DO-000001","lines":[{"sourceLineNo":1}],"saveAsDraft":true},"examples":[],"payloadEnums":{},"requiredPayloadFields":[],"conditionalPayloadRules":{},"notes":"Uses AutoCount partial transfer logic against the existing invoice. Blocks on debtor mismatch, e-Invoice edit guard, or unsupported SDK path; it does not delete or rebuild the invoice. Appends delivery order rows into an existing sales invoice through AutoCount partial transfer. With saveAsDraft=true, the edited invoice is saved through the SDK Save(true) draft save path. The connector blocks if debtor codes differ, if e-Invoice edit guard applies, or if the SDK PartialTransfer path is not exposed. It does not delete or rebuild existing invoice lines.","nativePayload":{"supported":false,"sections":[{"name":"Master","fields":[]},{"name":"Details","fields":[]},{"name":"KnockOffDetails","fields":[]},{"name":"TransferDetails","fields":[]},{"name":"PaymentDetails","fields":[]},{"name":"Options","fields":[]}]}}