Hello All,
I want to do some calculations on ERPNext/Frappe. Something very similar to Mathematical Formulas, Input two values, and third value will be calculated by the system.
to_be_calculated = {(ab / cd) + (ef / gh)} * 50
I’m very newbie in writing codes, trying to write but fails every time. What I’m trying to do is: creating 4 new docfield, which is int/float(I tried both), where ab, cd, ef, gh is user input. And, to_be_calculated is the value which has to be calculated, so another docfield for this, is Read Only. I’m adding these docfields in Item Master Itself.
But, nothing working. Can someone write sample script, to achieve somewhat similar, so that I can learn and use it.