Hello everyone,
We’ve added a custom field called “Selling Rate” in the Stock Entry doctype. Our goal is to use this field as the Basic Rate when generating the e-waybill — essentially replacing the default basic_rate with our new selling_rate field.
Has anyone implemented something similar or can guide us on the best approach to override the existing logic so that the e-waybill picks up Selling Rate instead of Basic Rate?
Any suggestions, examples, or best practices would be greatly appreciated.
Thank you!
You can check the Class and find out the method which is using for E-Waybill generation and the condition as-well. Then Simply in the hooks you can override the doctype class and mention your custom logic were ever required.
taxable_amount field in Item Table is used for GST and e-waybill values.You can directly update the field for your use case.
What is the use case with using the selling rate for stock entry?
Stock entry is usually used only for internal transfers, and it should be okay to use basic rate or valuation rate for these scenarios. This is not required to be done at selling rate.
Please do share some references if this is required at selling rate.
When transferring stock to engineers, the company maintains a strict policy of non-disclosure regarding the actual purchase prices of these items. This measure is intended to safeguard commercial confidentiality and prevent any potential conflicts or complications arising from cost disclosure
For the purposes of e-Waybill generation, using cost is sufficient.
As a workaround for your scenario, you could stop sending e-Waybills, and mention just the e-Waybill number on challans (without any price information - cost or inflated). This is sufficient for compliance AFAIK.