Download
Description | Size | Download |
---|---|---|
The template works with both the Microsoft Store edition and the desktop edition of the app. Make sure you have installed one of them. How to use:
| 444 KB | Download |
License: Private Use (not for distribution or resale). See our Terms of Use.
Detail
If your business applies discounts frequently, it is better to list the discount at the bottom of the form. This simple, customized template demonstrates the steps required to add a Discount (Amount) field.
This tutorial is based on the Simple Invoice Template: Moving Item# Column (c4049).
Before beginning, first make sure you have backed up both the Excel template file and the Access database file (Or the SQL Server database if you are running our invoicing app with a SQL Server database).
The process of adding the discount field consists of two steps: modifying the Excel template and updating the database.
Modify the Excel template
- Open the template.
- Click the Design Mode button on the ribbon tab.
- Right-click the row heading of the first tax row at the bottom of the form. In this example, it is R35.
- Choose Insert from the shortcut menu. This inserts a new row above the first tax row.
- Enter "DISCOUNT (AMOUNT)" below the "SUBTOTAL" label, i.e., $J$35.
- Click to select the cell where the discount amount value should be entered. In this example, you click $K$35.
- Enter the cell name "oknDiscountAmount" into the name box on the formula bar. All cell names that work with Invoice Manager for Excel should start with the "okn" prefix, except "Print_Area" and "Print_Titltes".
- Right-click the cell named "oknDiscountAmount" and choose Format Cells from the shortcut menu.
- On the Format Cells dialog box, go to the "Protection" page.
- Clear the "Locked" property.
- Click "OK" to close the dialog box.
- Click to select the cell next to the label "SUBTOTAL", i.e., the cell named "oknSubtotal" at $K$34.
- Modify its formula to be:
=SUM(oknLineTotal_1:oknLineTotal_12) - oknDiscountAmount
- To deduct the discount amount from the taxable amount, modify the first tax formula to be:
=ROUND(IF(oknTaxType=0,0, oknTax1Rate*(oknLineTotalTaxable - oknDiscountAmount+IF(oknTaxTotalIncludingShippingCost=0,0,oknShippingCost))),2)
- Modify the second tax formula to be:
=ROUND(IF(oknTaxType<>2,0,oknTax2Rate*(oknLineTotalTaxable - oknDiscountAmount+IF(oknTaxTotalIncludingShippingCost=0,0,oknShippingCost)+IF(oknTax2IsAppliedToTax1=0,0,oknTax1))),2)
- Click the "Design Mode" button again to exit design mode.
- Save the template.
Update the database
- Open the template.
- Click "Invoices" on the ribbon tab.
- Click "Custom Fields".
- Make sure the "Database Table" field shows "Invoice Header".
- Click "Add Field".
- Enter field information as below:
- Field name: DiscountAmount
Note that The field name should match the cell name defined in the template. In this example, we defined the cell name as "oknDiscountAmount" and thus the field name should be "DiscountAmount". It is this name that creates the relationship between an Excel cell and a database field. In other words, the name maps the cell name to a database field.
- Field type: Decimal
- Precision: 10
- Scale: 2
- Field name: DiscountAmount
- Click "OK" to close the "Add New Custom Field" dialog box.
- Click "Close" to close the "Custom Field Manager" dialog box.
That it! Now you have a simple template that has a Discount field at the bottom of the sheet. Feel free to download and test it to see if it meets your requirements.
Format and Specification
Template# | c4051 |
Belongs to | |
Format (XLS or XLSX) | .xlsx |
Columns | 4 |
Lines | 12 |
Line Height (Points) | 18.00 |
Print Area | $D$2:$K$47 |
Papaer Orientation | Portrait |
Default Margins (Points) | |
Left | 22.68 |
Right | 22.68 |
Top | 45.35 |
Bottom | 45.35 |
Price | Free |