2024 Aug 06 4:39 PM - edited 2024 Aug 06 7:18 PM
Hi, I am creating purchase request drafts using the Drafts endpoint in the Service Layer. However, when I try to convert them into a purchase request document using the DraftsService_SaveDraftToDocument endpoint, they remain as drafts and do not convert.
Json for draft 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 request -",
"SummeryType": "dNoSummary",
"ApplyCurrentVATRatesForDownPaymentsToDraw": "tNO",
"RequriedDate": "2024-07-29",
"RequesterEmail": "test@example.com",
"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"
}
]
}
Send from draft to purchase requisition with DraftsService_SaveDraftToDocument endpoint
{
"Document": {
"DocDueDate": "2024-08-29",
"DocEntry": "6975"
}
}
but still appears in drafts
User | Count |
---|---|
98 | |
9 | |
7 | |
5 | |
4 | |
4 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.