Invoices

Make sure that use of Invoices is enabled when using Invoice shortcodes.

scm_invoice_data

[scm_invoice_data member_id="postid" header='A, S, D, or T' before="pre-html" after="post-html"]

Lists unpaid Invoices of a Member, given by its post-ID. Unpaid Invoices are those Invoices for which the Date of payment field is empty.

The format in which the Invoice data is presented depends on the ‘header’ parameter.

Parameters

  • member_id
    The post ID of the Member.
  • header (default: A)
    Header that is displayed for an Invoice:

    • Option ‘A’ displays the amount first, followed by service and  due date
    • Option ‘S’ displays the service first, followed by amount and due date
    • Option ‘D’ displays the due date first, followed by amount and service
    • Option ‘T’ displays the ID (“title”) first, followed by amount, service, and due date
  • before (default: empty)
    HTML code that is displayed before displaying the ranking. Typically used in (child) themes only.
  • after (default: empty)
    HTML code that is displayed after displaying the ranking. Typically used in (child) themes only.