Does anyone know how to override the amount in PO? without a conflict?

I want to add a feature to set amount and then it automatically sets the rate of the item. Thank you

I suggest adding another field set the calculation. This addition is necessary because you can’t alter the Total/Amount field easily. The Total/Amount field is connected to many calculations such as taxes and shipping costs. If you still want to make changes, you’ll have to override many methods related to “total” or “amount” in your custom app. This process requires finding and overriding those methods. However, if you just want to keep track of changes, you can use a custom field instead.

2 Likes

Thank you for your suggestion, @NCP . I hope that in the next update of ERPNext, there will be an option to manually enter the amount, which would then automatically update the rates using the formula: Amount / Quantity = Rate. Just hoping this could be considered. Thanks!

Hmm :thinking:

You can add a custom field like “Direct Amount,” and when you enter the “Direct Amount,” it will set the rate based on the calculation. It will also calculate the amount automatically. This way, you can configure it as needed.

1 Like