I’ve created a doctype and added a child doctype in that. Now, I want to do some calculation based on the child doctype field values. I’m attaching a screenshot of the child doctype.
@bahaou I want to calculate the amount of a product (Service Product) which depends on Number of Days in a month and Period of Deployment. So, the product is a Security Guard Service which is deployed in a company. So, I want to calculate the the amount based on the days and for that I’ve created a doctype where the user can select the company and month and I’ve added a service doctype which is a child table. So, user can add multiple rows of services for example Security Guard, Cleaner, Cook etc. and based on their working days user can calculate the final amount.
@mohitchechani Thanks, it is working for me. I want to set the amount field value while entering the period of deployment. But right now the calculation is happening after saving the form which is also ok for me. So, thankyou for this solution.