How do I write a custom code that:1.
Calculates the Product of two fields in the same document (Stock Entry
Detail). Let’s say we are trying to calculate the Net Weight of an Item
times the quantity. Let’s call it the Total Item Weight
Calculates the sum of the the same field (Total Item Weight) for all
items in a particular Stock Entry document to return the Total Weight of
all items in that Stock Entry…
It would have been simple if the UOM was KG, but the UOM is Nos.
Is this right? It’s not working. I didn’t use the cur_frm.cscript.custom_field2 = cur_frm.cscript.custom_field1; bit at the end because field qty is not a custom field and is a standard field. Not sure if that’s right though.