Language:


Editing Customer Details (My Account) - Invoices

The "Invoices" page is a separate sub-node built in to the "My Account App" Node that Customers can use to see a list of their Invoices. As it is a sub-node built in to the "My Account App" Node, it will be displayed in the My Account Area (i.e. in the <div id="my_account">). The name of the sub-node is hard-coded to be "/invoices".

If you want Customers to be able to view their Invoices, you must provide a button or menu item that will take users to the "Invoices" page. Specify /My_Account_App_Web_structure_name/invoices (e.g. /myaccount/invoices) as the anchor (using the Link to URL field if you are providing a menu item):

Please refer to step 7 on the Editing Customer Details (My Account) page for more details about adding a menu to the "My Account App" Node.

When a Customer goes to the /invoices sub-node, their Invoices from the first period in the Reporting Periods setting will be displayed in the My Account Area (i.e. in the <div id="my_account">):

In this illustration, the following attributes are assigned automatically by Standard ERP (i.e. you will not be able to change these attributes, but you will be able to apply styling to them in your .css file):
  • <h1> (used for the "Invoices" (Web Text 25807) heading)

  • <div id="invoice_list" "class="listsearch"> (contains the period fields, the date format guide, the [Submit] (Web Text 20067) button and the Invoice listing)

  • <form id="invoices"> (inside the previous <div>, contains the period fields, the date format guide and the [Submit] button)

  • <ul class="invoicestable"> (inside the previous <form>, contains the period fields, the date format field and the [Submit] button)

  • <div id="invdateformat"> (contains the date format guide, taken from the Company Date and Numeric Format setting. By default, the Web Texts for the date format guide assume the Leading Zero before Day, Leading Zero before Month and Century check boxes are ticked and the Date Separator is -. Change the appropriate Web Text (listed towards the end of this page) if these assumptions are not correct. The fields displaying the report period will obey these options)

  • <input class="button"> (used for the [Submit] button)

  • <div class="iv_send"> (contains the 'Choose an invoice' (Web Text 25814) drop-down menu, the Email (Web Text 25607) field and the [Send as email] (Web Text 25813) button)

  • <div class="send_iv_nr"> (contains the 'Choose an invoice' drop-down menu)

  • <div class="send_iv_mail"> (contains the Email field)

  • <div class="send_iv_button"> (contains the [Send as email] button)

  • <table class="invoicestable2"> (contains the Invoice listing)

  • <th class="iv_no"> (contains the "No." (Web Text 25804) column heading)

  • <th class="iv_date"> (contains the "Date" (Web Text 25805) column heading)

  • <th class="iv_sum"> (contains the "Sum" (Web Text 25806) column heading)

  • <th class="iv_outstandin g"> (contains the "Outstanding" (Web Text 25799) column heading)

  • <th class="iv_status"> (contains the "Status" (Web Text 25808) column heading)

  • <td class="iv_no"> (contains the data in the "No." column)

  • <td class="iv_date"> (contains the data in the "Date" column) (this column lists Invoice Dates)

  • <td class="iv_sum"> (contains the data in the "Sum" column)

  • <td class="iv_outstanding"> (contains the data in the "Outstanding" column)

  • <td class="iv_status"> (contains the data in the "Status" column)

  • <td class="iv_pay"> (contains the "Pay" link)
The Customer can change the period and can also click or tap on an Invoice Number if they need to see an individual Invoice. A PDF version of the Invoice will be opened in a new browser tab. This will be created using the usual Form Template that you have assigned to the Invoice Form using the 'Define Form' function.

An Invoice will not be included in the list if it has not been marked as OK or if it has been invalidated.

The 'Choose an invoice' (Web Text 25814) drop-down menu, the Email (Web Text 25607) field and the [Send as email] (Web Text 25813) button will be included in the My Account Area if the Letter Tag field on the 'Invoice' card of the Webshop Email setting is not blank and if at least one Invoice is listed. If a Customer wants to be sent an Invoice by email, they should select the Invoice Number from the drop-down menu, enter an email address in the Email field and press the [Send as email] button. To configure this feature, use the Webshop Email setting as described on the 'Checkout - Email Confirmations' page with this exception:

  • If you will base emails on a Customer Letter, the Name in the Customer Letter must be "invoice-resend". You do not need to enter "invoice-resend" in the Letter Tag field on the 'Invoice' card of the Webshop Email setting, but as already mentioned this field must contain an entry for this feature to be included in the /invoices sub-node.
When a Customer presses the [Send as email] button, the page will be re-drawn to include the message "Invoice was sent successfully" (Web Text 25825) or "Failed to send Invoice" (Web Text 25826), depending on the outcome:

"Invoice was sent successfully" (Web Text 25825) will be in <div class="iv_sent_msg"> while "Failed to send Invoice" (Web Text 25826) will be in <div class="iv_sent_msg error">.

For mails to be sent, you must subscribe to the Email and Conferences and External Email modules and you must have configured the Email SMTP Server setting. Please refer here for full details about the mailing facilities in Standard ERP.

If you need Customers to be able to pay Invoices from the /invoices sub-node, you must be able to accept payments by PayPal, Paysera or Paymark.

As shown in the illustration above,there will be a "Pay" (Web Text 31416) link next to each open Invoice. This link will take the Customer to a /pay sub-node where they can choose the payment method that they wish to use:

In this illustration, the following attributes are assigned automatically by Standard ERP (i.e. you will not be able to change these attributes, but you will be able to apply styling to them in your .css file):
  • <h1> (used for the "Pay Invoice" (Web Text 25824) heading)

  • <div class="checkout_select_paymethod"> (contains the "Please select your method of payment:" (Web Text 25322) heading, the payment options and the [Pay] (Web Text 25516) button)

  • <input class="button"> (used for the [Pay] button)
After the customer selects an option, they will be taken to the relevant payment provider's website where they can pay.

You can use the following options to change the appearance of the "Invoices" page:

  • By default, the browser page displaying the /invoices sub-node will be based on the Page specified in the Structure record for the "My Account App" Node. Specify a Template Page on the 'Invoices' card in the My Account Settings setting if you would like it to be based on a different Page.

  • Using the Template Element field on the 'Invoices' card in the My Account Settings setting, you can specify that a header and/or footer will be added to the beginning and end of the <div id="my_account">. Please refer to step 7 ix on the Editing Customer Details (My Account) page for an illustrated example.

  • If you do not want the "Invoices" <h1> heading (Web Text 25807) to appear, select the Template elements override built-in headings option in the My Account Settings setting. This option applies to the /changepassword and /orders sub-nodes as well as /invoices.
You can use the Web Texts setting to change the following texts:

Sub-NodeDefault TextWeb Text Code
My Account App/invoicesSubmit [button] 20067
My Account App/invoicesInvoices [<h1> heading] 25807
My Account App/invoicesFrom [field label] 25802
My Account App/invoicesTo [field label] 25803
My Account App/invoicesChoose an invoice25814
My Account App/invoicesEmail25607
My Account App/invoicesSend as email25813
My Account App/invoicesInvoice was sent successfully25825
My Account App/invoicesFailed to send Invoice25826
My Account App/invoicesNo. [column heading] 25804
My Account App/invoicesDate [column heading] 25805
My Account App/invoicesSum [column heading] 25806
My Account App/invoicesOutstanding [column heading] 25799
My Account App/invoicesStatus [column heading] 25808
My Account App/invoicesMM-DD-YYYY25650
My Account App/invoicesDD-MM-YYYY25651
My Account App/invoicesYYYY-MM-DD25652
My Account App/invoicesMM-YYYY-DD25653
My Account App/invoicesDD-YYYY-MM25654
My Account App/invoicesYYYY-DD-MM25655
My Account App/invoicesPaid25810
My Account App/invoicesOver due25811
My Account App/invoicesOpen25812
My Account App/invoicesPay31416
My Account App/invoicesFile not found25000
My Account App/invoices/payPay Invoice [<h1> heading, the space and the Invoice No. will be added automatically]25824
My Account App/invoices/payPlease select your method of payment:25322
My Account App/invoices/payPay with PayPal25524
My Account App/invoices/payPaysera25538
My Account App/invoices/payPay with Paymark25543
My Account App/invoices/payPay [button] 25516

---

Allowing Contacts to Use Your Website:

Go back to: