Skip to content

Instantly share code, notes, and snippets.

@CubeYogi
Created November 24, 2020 06:18
Show Gist options
  • Save CubeYogi/405172b24f9999060fd246e1e198ad96 to your computer and use it in GitHub Desktop.
Save CubeYogi/405172b24f9999060fd246e1e198ad96 to your computer and use it in GitHub Desktop.
//Declaring total amount
total_amount = 0;
//Getting subform entry
subform_entry = input.<name ofsubform>;
for each entry in subform_entry
{
//Calculating total
total_amount=total_amount + entry.<field of price>;
}
//Updating total amount
input.<total field> = total_amount;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment