Changes

Jump to: navigation, search

Invoice Module Variables

1,138 bytes added, 21:56, 20 March 2009
no edit summary
The following variables can be used when creating a [[Web Page View Field|Web Page View]] to generate an Invoice using the [[Invoice UTA|Invoicing Module]]:
==Invoice Items==Invoice Items refers to the Level 2 or Level 3 items to be billed.  On the '''Application Configuration''' page you must first provide the field names of the associated Level 2 or 3 fields so they can be listed as part of the individual line items on the invoice. This is done in the ''Invoice Item Field Mapping'' section. The fields are:
*Item Detail:
*Item Tax:
*Item Tax 2:
 
For example, the associated fields on the Level 2 or Level 3 entities could be named:
*Item Tax: ~tax~
*Item Tax 2: ~tax2~
 
 
If you wish the Invoice Items to include fields other than the standard fields (which are Item Detail, Quantity, Amount, Tax1 and Tax2):
* Create a [[Custom Field Type (111): Store Values – System Variables|Store Value - System Variables]] field in the “Invoice Item Custom Fields” section of Application Configuration which refers to the field name of the Level 2 or 3 field (example: @Produce Code@).
** Hint: You can use the same name for this field (ie: Create a field called ''Product Code'' which stores a System Variable called ''@Product Code@'')
* On the Web Page View you can refer to the field name from the “Invoice Item Custom Field” section between $’s. (Example: $Product Code$)
 
 
==Invoice Totals==
 
 
 
The following is a example that would be used on the Web Page View to create a table listing all the items for the invoice, as well as the SubTotal, Total GST, PST and Invoice Total:
<pre>
<table>
<form name=frmsubact>
<tr>
<td>Item Description</td>
</tr>
<form name=frmsubact>
[#(?object=items)
#]
</form> 
<tr>
<td><b>Sub-Total:</b></td>
<td>@invtotal@</td>
</tr>
</form>
</table>
</pre>
The code between the '''[#(?object=items)''' and closing '''#]''' will be repeated for each line item to be included on the invoice.
0
edits

Navigation menu