The invoice template is for book wholesaler, publisher or store. It can calculate discounts on each product as they are entered on an invoice. Besides wholesale, it also allows applying discounts to retail customers when you invoice them.
Discounts could vary by product. Some invoices may have products at 40% discounts, others at 50%, for example.
In order to implement the feature required with this invoice template, the template uses 3 custom fields (custom columns) on the invoice body.
|Field name||Field type||Note|
|Disc||Decimal (8,6)||Discount, a percentage value shown on invoice body. This custom field is also added todatabase table so that you can define default discount for each product which is loaded whenever you pick up a product.|
|UnitCost||Decimal (15,6)||The applied price for the customer.
On invoice body, the invoice template uses the following formula to calculate UnitCost:
Where "?" is a line number, ranging from 1 to 30.
|ExtRetail||Decimal (15,6)||ExtRetail is calculated using the following formula:
On the bottom of the invoice form, there are also 2 custom fields that are labeledand . These custom fields are defined in the (Invoice Header) database table, and are named and , respectively.