- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Issue creating a supplier payment with branch
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?
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
}
}
]
}
Hello Quan,
since you're sending "Branch" Value, could you check the payment method settings and allowed cash accounts under that based on branches ?
Hello, you can try sending the payload without cash account to see what default value it gets.
