My Products
Help
Florian Haase
PARTNER

Adding PurchaseReceipt - Type Return to SupplierInvoice - CreditNote

by Florian Haase

Hi,

 

we dont get it work to add PurchaseReceipt of type PoReturn  to Supplier CreditNotes (Type CreditAdj)

 

{
"documentType": {
"value": "CreditAdj"
},
"supplierReference": {
"value": "50000"
},
"supplierNumber": {
"value": "50000"
},
"addPOReceiptLines": [
{
"poReceiptNumber": {
"value": "000001"
},
"poReceiptLineNumber": {
"value": 1
}
}
]
}

 

The errormessage is: 

{
  "message": "Error creating supplierInvoice. The PO Receipt Line with order number 000001 and line number 1 doesn't exist in the look-up table."
}

This works in the UI

 

Actually we would need the functionality to place return-receipts on CustomerInvoices too, but thats not possible in the UI either and so we can look at that problem here first.

 

Regards,

 

Florian 

4 REPLIES 4

by Magnus Johnsen

Hi,

 

Could you please send us the URL and method as well as a screenshot of the "add poReceipt Line" window showing the line:

2020-09-16 15_36_08-Purchase invoices.png

 

Thank you. 

Florian Haase
PARTNER

As mentioned do we try to place an PurchaseReturn on a supplierCreditNote

 

skjermbilde.PNG

Accepted solution
Magnus Johnsen
VISMA

Hi,

 

As per UI, CreditAdj, does not have the possiblity to add purchaseOrder:

2020-09-16 15_55_18-Purchase invoices.png

 

It is available for type: DebitAdj

2020-09-16 15_54_48-Purchase invoices.png

 

Please have a look at your JSON and correct the type as per your picture.

 

Thank you. 

Florian Haase
PARTNER

Yes you are right. Sorry this was a bit of confusion about the types since the UI and api not matches here. 

 

 

 

Florian