how to change a document from draft to purchase request in service layer

2 months ago 20

Hi, I americium creating acquisition petition drafts utilizing the Drafts endpoint successful the Service Layer. However, erstwhile I effort to person them into a acquisition petition papers utilizing the DraftsService_SaveDraftToDocument endpoint, they stay arsenic drafts and bash not convert.

Json for draught creation

{ "DocType": "dDocument_Items", "RequesterName": "Samuel", "DocCurrency": "$", "DocRate": 1, "Comments": "test", "DocDate": "2024-07-29", "DocDueDate": "2024-08-29", "TaxDate": "2024-07-29", "DocumentStatus": "bost_Open", "Requester": "manager", "Confirmed": "tYES", "DocObjectCode": "oPurchaseRequest", "JournalMemo": "Purchase petition -", "SummeryType": "dNoSummary", "ApplyCurrentVATRatesForDownPaymentsToDraw": "tNO", "RequriedDate": "2024-07-29", "RequesterEmail": "[email protected]", "Series": 62, "DocumentLines": [ { "ItemCode": "SE01A-01C", "ItemDescription": "BASTIDOR", "Quantity": 2, "Currency": "", "WarehouseCode": "BOPCC", "AccountCode": "14050501", "CostingCode": "1", "ProjectCode": "109177", "CorrectionInvoiceItem": "ciis_ShouldBe", "MeasureUnit": "UNIT", "UnitsOfMeasurment": 1, "TaxPercentagePerRow": 19, "LineStatus": "bost_Open", "LineType": "dlt_Regular", "CostingCode2": "109177", "RequiredDate": "2024-07-29" } ] }

Christian111_0-1722958606156.png

Send from draught to acquisition requisition with DraftsService_SaveDraftToDocument endpoint

{ "Document": { "DocDueDate": "2024-08-29", "DocEntry": "6975" } }

Christian111_1-1722958673325.png

but inactive appears successful drafts

Christian111_0-1722958839766.png

Read Entire Article