Frappe controller hooks. to do a calculation for an amount in sales order lines.