Function: doctmpl

Result: the list of elements

Document templates

Access level: admin

  • id — Id
  • name — Name
  • doctype — Type
  • templatetype — Layout
  • locale — Document language

Reset to default template settings

Function: doctmpl.restoredefault

Access level: admin

The function is simultaneously used to view object's parameters, to change an object, and create new one.

View object's parameters:

  • Parameters:
    • elid — unique identifier (id element of doctmpl function)
  • Result: object parameters list

Create an object:

  • Parameters:
    • sok — the parameter must not be empty, generally "ok".
    • additional query parameters ...
  • Result: successful operation or error message

Change an object:

  • Parameters:
    • sok — the parameter must not be empty, generally "ok".
    • elid — unique identifier (id element of doctmpl function)
    • additional query parameters ...
  • Result: successful operation or error message

The list object's parameters or additional query parameters (see above):

  • doctmpl — Template. A template can be used as pre-constructed document when creating various documents in the billing panel

Edit the selected document template

Function: doctmpl.edit

Access level: admin

The function is simultaneously used to view object's parameters, to change an object, and create new one.

View object's parameters:

  • Parameters:
    • elid — unique identifier (id element of doctmpl function)
  • Result: object parameters list

Create an object:

  • Parameters:
    • sok — the parameter must not be empty, generally "ok".
    • additional query parameters ...
  • Result: successful operation or error message

Change an object:

  • Parameters:
    • sok — the parameter must not be empty, generally "ok".
    • elid — unique identifier (id element of doctmpl function)
    • additional query parameters ...
  • Result: successful operation or error message

The list object's parameters or additional query parameters (see above):

  • name — Name. Enter a template name
  • doctype — Document type. A document type will be used to filter a list of documents when selecting a print template
  • language — Language. Language of the document text
  • doctmpl — Template . A template can be used as pre-constructed document when creating various documents in the billing panel
  • content — Text. Type in the text of the document template in XSLT or EJS format

Delete

Function: doctmpl.delete

Delete

Access level: admin

Parameters:

  • elid — one or more object's unique identifiers comma-delimited with space ", ". The unique identifiers is the id element of doctmpl function.

Result: successful operation or error message