The basic principles, in order to design, document (invoice, receipt, quote, offer, consignment etc.) properly, using html, will find here.

Creating document’s forms achieved using the following variables that should be written only in Latin characters. Document forms can be created using html too.

General

#TRM  Enables the simple replacement of the variables without fixed length and orientation. Best for use in html forms and cash registers, text files.
#LAN   Show printer settings
#FMU   Connection with tax machine

#MEA123  Replace 123 with measurement unit’s line ID that you want to ignore and use the next
#RMU   Set decimals: variable without hash|digits ex. #RMUTIT|2,POS|2
If we add 100, at the decimals we want, then the number will be floor rounded if we add 200 will be ceiling rounded ex. #RMUTIT|2,POS|102

Dot matrix

#DOS   DOS Encoding  (Warning add once!)
#CON   Condensed characters
#LEF   Align left
#REV   Paper upwards
#CUT   Control cutting paper on thermal printers

Document

#HME   Issuance date
#PAR   Document title
#SEI   Document number prefix
#ΑRI   Document number
#APP Document number – zeroes every day
#SXE   Related documents
#SKO   Handling purpose
#TRA   Shipping method
#TOF   Loading place
#ΤΟΑ   Shipping address
#DPA  Delivery date
#WPA   Time of supply
#WPT   Time of supply to
#SEL   Page number
#ΥPΟ   Sign (when tax mechanism is used)
#ΤΙΑ   Copy title (from settings)
#XRH User name
#VOU Shipping tracking number
#SUM File set for e file creation (For tax machines using virtual printer)

Customer’s/Supplier’s data

#KWP   Customer ID
#POL   Country/City
#EPW   Company
#TKV   Zip code
#TUV   P.O. box/floor
#DIE   Address
#DOY   Tax office
#PRX   Region
#AFM   VAT
#EPA   Occupation
#TEL   Telephone
#KIN   Mobile
#ΟΝΟ   Name
#EPI   Surname
#CC1   1 custom field
#CC2   2 custom field
#CC3   3 custom field
#CC4   4 custom field
#CC5   5 custom field
#CC6   6 custom field
#SH1   1st line of notes
#SH2   1nd line of notes
#SHM  Notes

Sender’s data

#PKW   Customer ID
#PPO   Country/City
#PEP   Company
#PTK   Zip code
#PDI   Address
#PDO   Tax office
#PPR   Region
#PAF   VAT
#PPA   Occupation
#PTH   Telephone
#PKI   Mobile

Receiver’s data

#SKW   Customer ID
#SYP   Country/City
#SEP   Company
#SPA   Occupation
#STK   Zip code
#SDI   Address
#SDO   Tax office
#SPX   Region
#SAF   VAT
#STH   Telephone
#SKI   MObile

Vehicle

#ΟΧΟ   Driver’s name
#ΟΧΜ   Vehicle’s brand
#ARA   Plate
#MDL  Model
#TYP   Type
#FUE   Fuel
#POW   Power
#VNU  Chassis number
#ENN  Engine number
#VCO  Color
#LID   Date

Document’s line

#ARX   Repeat line (At the end of the line – Used for cash register connection)
#TLS   End of repeated line (Always after #ΑΡΧ variable)

#KWE   Product handle (Must be entered in the top of the line)
#KWA  Supply ID

#SD1   1 custom field (Help here)
#SD2   2 custom field
#SD3   3 custom field
#SD4   4 custom field
#SD5   5 custom field
#SD6   6 custom field
#SD7   7 custom field
#SD8   8 custom field
#SD9   9 custom field
#SD0   10 custom field
#S11   11 custom field
#S12   12 custom field
#S13   13 custom field
#S14   14 custom field
#S15   15 custom field
#S16   16 custom field
#S17   17 custom field
#S18   18 custom field
#S19   19 custom field
#S20   20 custom field

#SDA Product notes
#PES   Product description with serial number (Warning! Not with #PER variable)
#PER   Product description (Warning! Not with #PES variable)
#POS   Quantity
#MON   Measurement unit
#ΤΙΤ   Net unit price
#ΤΙΜ   Gross unit price
#FPA   VAT rate. (%)
#AFP   VAT total
#KFP   VAT ID (Line ID)
#EKP   Discount rate (%)
#EKX   Discount rate no decimals (%) depreciated
#SPR   Net total
#SYN   Gross total
#SE0   Serial numbers
#SE1   1st serial number
#SE2   2nd serial number
#SE3   3rd serial number
#SE4   4th serial number
#SE5   5th serial number

#PAD   Document line unit price after discount VAT included
#PEK   Discount value
#PFK   Document line total discount VAT included
#PFE   Net total before discount
#PHO  Item’s image link

#SEM   Transfered from previous page (Always comes after products list – Indicates the end)

Document’s line – move

#KUE   Item’s position
#KLH   Item’s expiration date
#KKY   Item’s volume
#KTE   Item’s area
#VAR   Item’s weight
#AXI   Item’s value
#KKP   Volume*Quantity
#KTP   Area*Quantity
#VAP   Weight*Quantity
#AXP   Value*Quantity
#MER   Related document/Document’s line number
#POD   2nd quantity in measurement unit
#MOD   2nd measurement unit
#POE   2nd quantity
#P2D   3rd quantity in measurement unit
#M2D   3rd measurement unit
#P2E   3rd quantity

Summaries

#SPO   Total quantity
#TEP   Net total
#TEF   Total VAT
#TIL   Gross total
#SXO   Notes
#TRP   Payment method
#KTR   Payment method ID
#KTS   Payment method ID
#PYP   Old balance
#NYP   New balance
#MET   Cash (for change calculation)
#SPE   Total pre discount
#SSE   Discount total
#FP1   VAT analysis
#FP2   VAT analysis
#FP3   VAT analysis
#FP4   VAT analysis
#FP5   VAT analysis
#FPN   VAT analysis (for HTML forms only)
Add at the top of the page the following CSS script:

#MM1   Quantity by measurement unit
#MM2   Quantity by measurement unit
#MM3   Quantity by measurement unit
#MM4   Quantity by measurement unit
#MM5   Quantity by measurement unit

Summaries-Handling

#SYO   Total volume
#SYE   Total area
#SYV   Total weight
#SYA   Total value

#M21   Quantity by 2nd measurement unit
#M22   Quantity by 2nd measurement unit
#M23   Quantity by 2nd measurement unit
#M24   Quantity by 2nd measurement unit
#M25   Quantity by 2nd measurement unit

#M31   Quantity by 3rd measurement unit
#M32   Quantity by 3rd measurement unit
#M33   Quantity by 3rd measurement unit
#M34   Quantity by 3rd measurement unit
#M35   Quantity by 3rd measurement unit

#A21   Total quantity by 2nd measurement unit
#A22   Total quantity by 2nd measurement unit
#A23   Total quantity by 2nd measurement unit
#A24   Total quantity by 2nd measurement unit
#A25   Total quantity by 2nd measurement unit

#A31   Total quantity by 3rd measurement unit
#A32   Total quantity by 3rd measurement unit
#A33   Total quantity by 3rd measurement unit
#A34   Total quantity by 3rd measurement unit
#A35   Total quantity by 3rd measurement unit

#SY1   Total volume per measurement unit
#SY2   Total volume per measurement unit
#SY3   Total volume per measurement unit
#SY4   Total volume per measurement unit
#SY5   Total volume per measurement unit

#CS1   Custom field 1
#CS2   Custom field 2

#CUS   Custom field derived from the variable “pvlhseis”.”custom”
#CU1   1st part of #CUS using separator “|”
#CU2   2nd part of #CUS using separator “|”
#CU3   3rd part of #CUS using separator “|”
#CU4   4th part of #CUS using separator “|”
#CU5   5th part of #CUS using separator “|”

Using variables

Generally after each variable the symbol  ~ defines the end.The symbol  ^ defines the end and aligns right This can be used in text forms and mainly for numbers.

Documents file name

Example #1:

If the file name is like this:
forma.3.txt

the folder “forma” created with the file “forma.txt” inside it everytime you print a document.

Example #2:
forma.1.txt
forma.2.txt
forma.3.txt
forma1.1.txt

The folders “forma” and “forma1” created with the file “forma.txt” and “forma1.txt” inside it everytime you print a document.