Closed jayatCC closed 1 year ago
PETOSS-278
Thanks for raising an issue, a ticket has been created to track your request
It turns out that my code was faulty here - I wasn't passing the right type for current_record in the object and it was always False.
Hi,
I have an app that needs to sync pay items across Xero and another system. When I need to add a new earnings rate, I am seeing a bug or there is a different way to achieve what I want.
Using a specific example, I have 3 (Active) earnings rates and I am trying to add a new one using the create_pay_item() function in payroll_au_api. If I include 4 items with one of the items containing a blank earnings_rate_id, I am getting a Validation error (although an earnings_rate_id is assigned to the new item) that says that it can't find the earnings_rateid ({'Message': 'Earnings rate not found - e2c8c122-20b2-456c-8d49-9ec4951b9dff'}_). If I include only the new item, it is creating it but making the other 3 as Inactive. This behavior is reproducible in the API explorer as well.
How can I add a new earnings_rate without making the existing earnings_rates inactive?
Thanks, Jayaram