My Products
Help
RMaarssen
CONTRIBUTOR *

Problems uploading receipt payment: supplierInvoice

by RMaarssen

Hi,

 

I want to add a receipt line using the API: supplierInvoice.

Using the UI, I have 150 items. I select the line:

 

2020-10-16_08-45-23.jpg2020-10-16_08-46-18.jpg

I then adjust the quantity to 4 pieces. Works perfectly.

 

Using the API i can use:

"addPOReceiptLines": [{"poReceiptNumber": {"value": "000002"},"poReceiptLineNumber": {"value": 1}}]

But then all the 150 items are used, i cannot adjust anything, because all functionality is done by the API.

 

Can you help me how i should do this using the API ?

 

Thanks

4 REPLIES 4

by Yıldırım (Updated ‎16-10-2020 15:09 by Yıldırım VISMA )

Hello, 

 

This can be done by sending additional PUT request to the Supplier Invoice where POReceiptLines have been linked to. 


You can first make a GET request to the specific invoice in order to obtain desired Invoice LineNumber then LineNumber should be used as a pointer for the update operation.

 

... 
{
    "invoiceLines": [
        {
            "operation": "Update",
            "lineNumber": {
                "value": 1
            },
            "transactionDescription": {
                "value": "qty update"
            },
            "quantity": {
                "value": 10
            }
        }
    ]
}
...

 

 

RMaarssen
CONTRIBUTOR *

by RMaarssen

Ok, well i will give it a try.

 

But i am also missing the line after i adjusted the invoice from 150 to 4 items. I need a line of 146 items. Where is it ?

2020-10-16_09-20-26.jpg

by Yıldırım

We'll check this out and get back to you.

Accepted solution
Yıldırım
VISMA

by Yıldırım (Updated ‎19-10-2020 10:30 by Yıldırım VISMA )

Hello, 

 

the behaviour as Financials ERP follows, once PR Line has been added to a specific supplier invoice and QTY amount modified (e.g. added QTY less than the total QTY of Purchase Receipt) then the same lineNbr no longer selectable in the same invoice > Add Purchase Receipt Line lookup table. 


Once that invoice is released, user should create a new invoice then the remaining amount of the relevant Purchase Receipt Line (QTY not yet invoiced) will be available in the Add Purchase Receipt Line lookup table and Invoicing Details would have been updated accordingly. 

QTY_not_yet_invoiced.png