Custom templates to use with InvoicePlane with a hack to generate the templates in a set currency.
This means that you'll still feed in the cost/price values in USD.
Known issues :
- No caching of exchange rates.
- Therefore each time the template script is run, for the invoice generated, it fetches and uses the latest exchange rate provided by the api.
- All other previously created custom fields' data is lost after creating and saving new custom fields. BACKUP database.
- BACKUP database
- Add the below listed custom fields via settings
- Place the copy over the assets and application folders
Select these templates in the invoice or quote settings under system settings. Default templates are prefixed with "InvoicePlane". These are prefixed with "Billing Template" or "Quote Template".
Edit/Update "Currency" custom field with the currency code you wish to have the generated templates use.
Currency positioned in section Custom Fields
PAN positioned in section Taxes Information
Bank Name positioned in section Custom Fields
Bank Branch State positioned in section Custom Fields
Bank Branch City positioned in section Custom Fields
Bank Branch Name positioned in section Custom Fields
Account Number positioned in section Custom Fields
IFSC positioned in section Custom Fields
BIC/Swift Code positioned in section Custom Fields
Currency to be sent in positioned in section Custom Fields
This will help list all the content of an array (in this case, $invoice)
<!-- TEST -->
<pre><?php
print_r($invoice);
?></pre>
<!-- /TEST -->