Function: expense

Result: the list of elements

Expenses

Access level: admin user

  • id — Id
  • locale_name — Name
  • account — Client
  • realdate — Date
  • cdate — Date
  • amount — Amount
  • notpayd — Not paid
  • discountamount — Discount amount
  • payments — Payments
  • discount — Discount id
  • taxamount — Tax

Set a filter by the selected client

Function: expense.setfilter

Set a filter by the selected client

Access level: admin

Set filter.

expense.filter

Drill down to User panel

Function: expense.su

Drill down to User panel

Access level: admin

Edit the selected expense

Function: expense.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 expense 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 expense function)
    • additional query parameters ...
  • Result: successful operation or error message

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

  • subaccount — Provider . Choose a provider
  • item — Service. Select a service
  • operation — Operation. Expense will be generated based on the selected operation
  • amount — Amount. Expense amount
  • taxrate — Tax rate. Tax rate. Note: tax amount is included into expense. Tax amount will be calculated as follows: AMOUNT — (AMOUNT / (100 + RATE) / 100)
  • postpaid — . (Optional parameter. To enable the option click "on".) Select the check box to provide services on credit in case of insufficient funds on client's account
  • name — Name. Enter any name you want to use, otherwise the name will be generated automatically based on the operation selected above
  • realdate — Date. Date when the client was charged for the service
  • cdate — Service activation date. Service activation date

Delete

Function: expense.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 expense function.

Result: successful operation or error message

Name

Function: expense.payment

Result: the list of elements

Payments associated with the expense

Access level: admin user

  • payment — Payment id
  • payment_number — Payment
  • amount_iso — Amount
  • invoice — Invoice id
  • invoice_number — Invoice

Edit

Function: expense.payment.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:
    • plid — parent list unique identifier (id element of expense function).
    • elid — unique identifier (payment element of expense.payment function)
  • Result: object parameters list

Create an object:

Parameters:

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

Change an object:

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

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

  • payment — Payment . Select a payment for the expense
  • amount — Amount . Amount that will be deducted from the expense

Delete

Function: expense.payment.delete

Delete

Access level: admin

Parameters:

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

Result: successful operation or error message