2. Create a Decimal-type custom field called
for the Invoices. This field will dynamically reflect the percentage of the invoice total that has been billed.
3. Create a new Retainer Invoice template with the document title
"Installment Payment". Then, copy the template ID (You can get the ID from the URL of the webpage) and substitute it in line 19 of the custom button script. This ensures that all the retainers sent for collecting installment amounts are correctly labeled.
(1) Custom Button to create Retainer Invoices:
Go to Settings -> Sales -> Invoices -> Custom Buttons -> Click +New -> Populate the details as mentioned below:
1. Name - Give a suitable name (e.g., Send Installment Invoices).
2. Visibility - Select the option that aligns with your preference for granting users access to the custom button.
3. Location - Choose "Details Page Menu".
Once done, add the script from this
GitHub link -> Click "Edit Arguments" > Input the Param name as
"Percentage" and Param type as
"String" -> Save.
Note: Input only "Percentage" as the Param name.