Forming expense names

From ISPWiki

Jump to: navigation, search

Expense names are formed basing on a template specified in the Item type edit form.

Format

A template has the following format:

    • @svrkind@ - name of an item type.
    • @pricelist@ - name of a service package.
    • @period@ - name of an order period.
    • @item.pid@ - item ID.
    • @item.xxxx@ wherexxxx is:
      • for built-in services - a table field that displays item's information. This is the internal name of an item. For example, the virtual hosting table will be named vhost.
        • for "Domain names" there are two additional parameters:
          • @item.tldname@ - name of a top-level domain.
          • @item.domainname@ - full name of a domain name not encoded in Punycode.
        • for "SSL certificates":
          • @item.cn@ - full name of a domain name not encoded in Punycode.
      • for custom services - internal name of a parameter
    • %if.xxxx%yyyy% - if the xxxx parameter is empty, yyyy will not be included into the resulting line.
    • @prolong.from@ - service renewal start date.
    • @prolong.to@ - service renewal end date.
    • @dateformat.xxxx@yyyy@ - allows to form fields where you can provide data. xxxx is a parameter's name, yyyy is a format for the strftime system function.
      • example: @dateformat.prolong.from@%d.%m.%Y@ for 2011-10-16 will show 16.10.2011.
  • Deafult template for virtual servers: "@svrkind@ - @pricelist@ #@item.pid@ ($if.item.ip$@item.ip@, $@item.domain@)"
Was this helpful? Yes | No
Views
Personal tools