OpenInvoices

Description
Displays a list of the current customer's open invoices from ACCPAC A/R tables.

Appearance

Attributes
NameValue
InvoiceLink Specifies an invoice number hyperlink. If blank, the invoice number will not be linked. See remarks for more information.
CustomerNumber Invoices for this ACCPAC customer number are displayed.
ShowCheckbox If "True", a checkbox will appear with every invoice number. The checkbox form element name is "checkedinvoice" and the cheked value is the invoice number. See remarks for more information.

Example
<%@ Register TagPrefix="uc1" TagName="OpenInvoices" Src="~/UserControls/OpenInvoices.ascx" %>
<uc1:OpenInvoices id="OpenInvoices1" ShowCheckbox="True" InvoiceLink="ShowInvoiceDetail.aspx?Invoice={0}" runat="server"></uc1:OpenInvoices>

Remarks
To link the invoice number to another page (to show the invoice details for example), set the InvoiceLink attribute to a format string, for example: "ViewInvoice.aspx?InvoiceNumber={0}". The placeholder "(0}" is replaced with the invoice number when the link is rendered.

If the "ShowCheckbox" attribute is checked, a checkbox element is rendered for each invoice. The name of the checkbox is "checkedinvoice".

When the form is posted, the array of checked invoice numbers can be obtained by calling
String[] arrInvoices = getParameterValues("checkedinvoice");