Update child table data through python

How to update child table data when record already exists through python?

Can you provide a use-case?

Suppose I’m updating an item through python script, and this item has tax rule of VAT @ 4%.
But after adding once to Sales and Tax Charges it is causing error because this tax rule is already present.
So, how can I change VAT 4% to 5%?

Add an additional tax rule?

I want to remove 4% and add 5%…

In South Africa, there was a recent change to VAT from 14% to 15%. In order to be able to capture old data, I simply have 2 tax rules… one for 14% and one for 15%. This does not cause any system overhead, but allows you flexibility.
You can set the most used one as the default

Ok… thanks…