@import url(https://volle-kraft-voraus.de/pub/skins/sinorca/basic.css); @import url(https://volle-kraft-voraus.de/pub/skins/sinorca/layout.css); @import url(https://volle-kraft-voraus.de/pub/skins/sinorca/sinorca.css);
The following variable names can be used in the RML templates and are replaced by Kraft.
Please refer to the Google Template documentation to learn more about the templates.
Tag | Description |
---|---|
DATE | Formatted date |
DOCTYPE | The document type |
ADDRESS | Completely formatted client address |
DOCID | The document id |
PROJECTLABEL | The project label |
SALUT | The salutation |
GOODBYE | The goodbye label |
PRETEXT | The entry text |
POSTTEXT | The end text |
BRUTTOSUM | Brutto sum |
NETTOSUM | Netto sum |
Tag | Description |
---|---|
CLIENT_NAME | Client real name |
CLIENT_ORGANISATION | Client Organization |
CLIENT_URL | Client Url |
CLIENT_EMAIL | Client preferred email |
CLIENT_PHONE | Client work phone number |
CLIENT_FAX | Client fax |
CLIENT_CELL | Client cellphone number |
the following data is taken from the client address marked as prefered in the KDE addressbook:
Tag | Description |
---|---|
CLIENT_POSTBOX | Client Postbox |
CLIENT_EXTENDED | Client Address Extended |
CLIENT_STREET | Client Address Street |
CLIENT_LOCALITY | Client Locality |
CLIENT_REGION | Client Region |
There is a loopable POSITIONS list which contains one entry for each item of the document.
See this example how to use it in the document template
{{#POSITIONS}} <tr> <td><para style="{{POS_KIND}}text">{{POS_NUMBER}}.</para></td> <td> {{POS_TEXT}} </td> <td><para style="{{POS_KIND}}text">{{POS_AMOUNT}} </para></td> <td><para style="{{POS_KIND}}text">{{POS_UNIT}} </para></td> <td><para style="{{POS_KIND}}rtext">{{POS_UNITPRICE}}</para></td> <td><para style="{{POS_KIND}}rtext">{{POS_TOTAL}}</para></td> </tr> {{/POSITIONS}}
Tag | Description |
---|---|
POS_NUMBER | Item Number |
POS_TEXT | Item Text |
POS_AMOUNT | Item amount |
POS_UNITPRICE | Price of one unit |
POS_TOTAL | Total sum of the item |
POS_KIND | Item kind, out of alternative, demand or normal (UNSURE, FIXME) |
The dictionary SPECIAL_POS is set with the value COUNT if the item list contains not normal items (alternative or demand items), see:
{{#SPECIAL_POS}} <para style="text"> Please note: This offer contains {{COUNT}} alternative or demand positions, printed in italic font. These do not add to the overall sum. </para> {{/SPECIAL_POS}}
Note that the dictionary acts as a conditional here instead as a loop. Refer to the documentation of the Google CTemplate for details.
There are conditionals for full and reduced tax. Both need to appear in the document to show the correct tax sum. Kraft enables the correct one.
Conditional SECTION_REDUCED_TAX:
Tag | Description |
---|---|
REDUCED_TAX_SUM | The tax sum |
REDUCED_TAX | The tax percentage, ie. 7% |
REDUCED_TAX_LABEL | A label, in this case reduced VAT or a translation |
Conditional SECTION_REDUCED_TAX:
Tag | Description |
---|---|
FULL_TAX_SUM | The tax sum |
FULL_TAX | The tax percentage, ie. 19% |
FULL_TAX_LABEL | A label, in this case VAT or a translation |
Tax Conditional usage example, please add all to your document:
{{#SECTION_REDUCED_TAX}} <tr> <td><para style="text">+{{REDUCED_TAX}}% VAT</para></td> <td><para style="rtext">{{REDUCED_TAX_SUM}}</para></td> </tr> {{/SECTION_REDUCED_TAX}} {{#SECTION_FULL_TAX}} <tr> <td><para style="text">+{{FULL_TAX}}% VAT</para></td> <td><para style="rtext">{{FULL_TAX_SUM}}</para></td> </tr> {{/SECTION_FULL_TAX}}
The following values are picked from the address that is marked as my own address in the KDE addressbook.
Note that the address data is again taken from the work address.
Please refer to the Client Address values, all defined client values are also there for the own address. Note that the prefix CLIENT must be replaced with MY, for example MY_PHONE for my telephone number.