Extensions API, Namespace, Formats, Versions

Documentazione •
In questo articolo

Banana namespace

The whole API (Application Program Interface) made available for Banana is under the namespace "Banana".
There are different objects and methods that belong to the namespace Banana, that can be accessed by the javascript at run time:

String Data Type

String Data Type are String that contains text for different purposes. 
Banana Accounting Extensions make a lot of use of String Data Types. 
For example Data.row.value("columnNameXML) return a String that may contains a different value based on the column type.
It is up to the developer to know what kind of Data Type the String contains and use the content appropriately.

Date

Date values are in ISO 8601 format "YYYY-MM-DD".

Decimal

Decimal values have a  '.' (dot) as decimal separator and don't have a group separator. For example: "12345.67".
Decimal values are rounded according to the accounting settings.

Text

Text values can contain any character supported by UTF-8.

Time

Time values are in ISO 8601 format "HH:MM:SS". The formats "HH:MM" and "HH:MM:SS.ZZZ" are also accepted.

API Version

List of API Version made available by Banana Accounting.

In the script you can set the attribute @api to notify the required minimum version.

Banana Accounting VersionAPI Version
7.0.61.0
8.0.7 or more recent1.0
9.0.0 or more recent1.0
Plus1.2.4
Plus Insider1.2.5

 

Aiutaci a migliorare la documentazione

Sono benvenuti suggerimenti per come migliorare questa pagina.

Informaci quale tema necessita di una spiegazione migliore o come chiarire meglio un argomento.

Condividi questo articolo: Twitter | Facebook | LinkedIn | Email