JSMA entries
Overview
The JSMA entries provides functionality for finding, creating and deleting entries (financial bookings)
What can JSMA entries do for me?
You can use the jsma entries to access and manipulate entries in the database
Index
Usage
writing data
Here is an example on how to write data to a JSMA entries:
... entries.create(date, user, orderUuid, value, currency, account, contraAccount, group, description) ...
reading data
Here is an example on how to read data from a JSMA entries:
... entries.findAll([startDate], [endDate]) ...
Methods
The JSMA file entries the following methods:
entries.create(date, user, orderUuid, value, currency, account, contraAccount, group, description)
With this function you can create an entry
Example
... entries.create(date, user, orderUuid, value, currency, account, contraAccount, group, description) ...
Parameter date (required)
Parameter user (required)
Parameter orderUuid (required)
Parameter value (required)
Parameter currency (required)
Parameter account (required)
Parameter contraAccount (required)
Parameter group (required)
Parameter description (required)
entries.delete(entry)
With this function you can delete an entry
Example
... entries.delete(entry) ...
Parameter entry (required)
entries.findAll([startDate], [endDate])
With this function you can find all entries between startDate and endDate
Example
... entries.findAll([startDate], [endDate]) ...
Parameter startDate (optional)
Parameter endDate (optional)
entries.findByGroup(group)
Finds all entries belonging to a given group
Example
... entries.findByGroup(group) ...
Parameter group (required)
entries.findByOrderUuid(uuid)
Searching for the entry with the given uuid
Example
... entries.findByOrderUuid(uuid) ...