Hi, everybody, I want to add a custome field for GST(Goods & Service Tax) Number just below my business address. So that every invoice I create will have my GST number by default. Can anyone help me on that?. I would remind you I am not a person with php knowledge.
thank you.
Mahesh Palamuttath
Kerala, India
mahesh@opensio.co.in
Hi @Mahesh_Palamuttath
Here are the resources needed to customize Invoice templates:
- You can find the built-in templates under
application/views/invoice_templates
- You can find examples for customizations in the user guide https://wiki.invoiceplane.com/en/1.5/templates/customize-templates
- Let’s say your custom field is called ‘GST’, try this PHP code snippet as an addition to the invoice template file:
<?php if ($custom_fields['user']['GST']) {
echo htmlsc($custom_fields['user']['GST']) . '<br>';
} ?>
1 Like
I want to display GST: 123456, when I added the code It only displays the number. I need prefix as GST: