Calculate Total CBM from child table

Hi

I want to calculate cubic meter from a child table, tried to look but no lack

Hi @izooolit,

Please apply server script like:
DocType Event: Before Save

tc = set(d.table_field_name for d in doc.get("table_name", []))
doc.total_cbm = sum(tc)

Then check it.

You can also set total using client/custom script.

Thank You!

Hi, Grateful that you have reply as it is my fist time to post a question here!
I will check and let you know,

By the way do you have experience Logistics or Forwarding ERPNext implementation?

Ed