My Products
Help
Quan Pham
PARTNER

Issue creating a supplier payment with branch

by Quan Pham (Updated ‎21-02-2023 13:25 by Quan Pham PARTNER )

Hi,

 

We're having trouble creating supplier payments with branch. It only works if we set default cash account on the supplier. It has to be the same cash account as the supplier payment or else it won't work. We're getting a error message that says: "Cash account cannot be empty".

 

Would you like to see if it would be possible to make it work even if we don't set default cash account?

QuanPham_0-1676982137444.png

 

 

Please see our json below.

 

{
"type": {
"value": "Payment"
},
"applicationDate": {
"value": "2023-02-21T12:10:06.244Z"
},
"paymentRef": {
"value": "Nettan reglering"
},
"supplier": {
"value": "SupplierInvoice.Supplier"
},
"paymentMethod": {
"value": "SupplierInvoice.PaymentMethod"
},
"cashAccount": {
"value": "SupplierInvoice.CashAccount"
},
"currency": {
"value": "EUR"
},
"paymentAmount": {
"value": 1000
},
"branch": {
"value": "22"
},
"paymentLines": [{
"operation": "Insert",
"documentType": {
"value": "Invoice"
},
"refNbr": {
"value": "SupplierInvoice.ReferenceNumber"
},
"amountPaid": {
"value": 1000
},
"crossRate": {
"value": 10
}
}
]
}

3 REPLIES 3
Yıldırım
VISMA

by Yıldırım

Hello Quan, 

 

since you're sending "Branch" Value, could you check the payment method settings and allowed cash accounts under that based on branches ? 

 

Payment methods.jpg

 

 

Quan Pham
PARTNER

by Quan Pham

Hi,

 

Please see below, the cash account is allowed for the branch.

 

QuanPham_1-1678455942234.png

 

 

Yıldırım
VISMA

by Yıldırım

Hello, you can try sending the payload without cash account to see what default value it gets.