Forum Discussion
Thanks Mate,
It is case-sensitive. Now I managed to post it with OnADayOfTheMonth. What I want is to set the due date that I provided. So which predefined term can be used to set the Due Date?
With this term, the due date is always set to the last day of the month.
Did you provide a date?
"Terms": {
"PaymentIsDue": "OnADayOfTheMonth",
"DueDate": "2024-10-15T00:00:00"
},
- Sidath15 days agoContributing User
Yes mate,
The due date is the 02nd of August. but it still picks the last day of the month of the invoice date. it does not use the due date. Refer to the below screenshot.
"Terms": {
"PaymentIsDue": "OnADayOfTheMonth",
"DueDate": "2024-08-02T00:00:00"
},- Mike_James15 days agoUltimate Partner
Hi Sidath , you need to provide the balanceduedays for that payment term, eg 20, then the due date will be calculated.
See https://developer.myob.com/api/myob-business-api/v2/sale/invoice/invoice_item/ for more details. Each line has subtext which can be seen by clicking the label. Payment terms will be the same for service invoices.
- Sidath15 days agoContributing User
Hi Mike_James ,
Thanks for the reply,
This is the data I'm sending. The invoice date is 2024-07-19 and the BalanceDueDate is 2. But still in MYOB due date calculated was wrong. It got the last date of the month on the invoice date and added the BalanceDueDate to it.
Actual invoice due date should be 2024-07-21
{
"Number": "INV00299",
"Date": "2024-07-19T00:00:00",
"Customer": {
"DisplayID": "8012"
},
"BalanceDueAmount": 209.7,
"Status": "Open",
"ShipToAddress": "10 Grey Street Traralgon",
"Terms": {
"PaymentIsDue": "OnADayOfTheMonth",
"BalanceDueDate": 2
},Appreciate your help.