//--- The content of a file is in the form of the raw key;value pairs.
//--- Decimal delimiter is a point (not comma).
//--- Strings are not quoted.
//--- Date and DateTime data type are in the ISO format (YYYY-MM-DDTHH:mm:ss)
//--- The file's encoding has to comply with the setting in .config file (default is CP1250).
//--- Data which is in one to many (1 : n) accordance with invoice header are indexed in the 
//--- simple way of dot and index number as a suffix to the name of the data field (key in KV pair).


//--- Basic data about the buyer (absolutely obligatory)
IdBrojKupac;03132331   			//Identification number of the Buyer.
                       			//For an individual who does not need to be identified (in retail sales)
					//state the sign "-" (minus).
                       			//In this case, all other data about the buyer are not obligatory anymore.
ImeKupac;DDD Solutions d.o.o.          	//Name of buyer
AdresaKupac;Oktobarske revolucije 130  	//Address
GradKupac;Podgorica                    	//Town

//--- Basic data about invoice (absolutely obligatory)
RacBrRacuna;RN-2021/0159	//Internal invoice number
DatVrijemIzdRac;2021-05-08T20:09:00 //Issuing date and time
UkupIznosPDV;11.80 		//Total VAT amount
UkupCijena;67.99   		//Total price (Total amount of invoice)
VrstaRacuna;NONCASH   		//Invoice type. Possible values are CASH, NONCASH.
 				//If you have a cash invoice, you have to register the amount of cash in the cash register
				//before you can fiscalize the first invoice in the day.
				//The value is related to the type of payment also.

//--- Basic data about the invoice items (absolutely obligatory). Don't forget to index. It begins with zero.
NazivStav.0;Name of item one  	//Name of items
KolStav.0;9.0000        	//Quantity (max 4 decimals)
PDVStopa.0;21.00		//VAT rate (expressed in percents without the percent sign)
JedCijBezPDV.0;3.16     	//Unit price without VAT - it's obligatory for wholesale/distribution invoices
//JedCijSaPDV.0;4.00		//Unit price with VAT - used in retails invoices, in most cases when the VrstaRacuna (Invoce type)
				//set to CASH. Obligatory in the case that JedCijBezPDV (UPB) isn't inserted.
				//If JedCijBezPDV is present, the field JedCijSaPDV is not obligatory anymore and if it is present, 
				//it is ignored. (so, please put in only one of that two prices).

//--- Example of second item data
NazivStav.1;Name of item two
KolStav.1;5.0000
JedCijBezPDV.1;5.55
PDVStopa.1;21.00

//---------------- With obligatory upper key;value pairs, the majority of domestic invoices could be fiscalized
//-----------------but you have to check the second and the third group also.

//--- Now it's time for not 100% obligatory data. 
//--- If you don't put it in, the system alone will send to the Tax authority the most likely/relevant data, with values as you can see below.
//--- All below key;value pairs are commented. 
//--- Uncomment and set the proper value if the system default is not ok for your needs.


//--- About the location of the buyer (about domestic and foreign invoices)
//DrzavaKupac;MNE	   //Country of buyer. The system expects domestic invoices. Must be set to the correct value for foreign invoices.
//ValutaKod;EUR		   //The domestic invoice is expected in most cases, so the system sets EUR as default.
//RazmjenaKurs;1	   //Exchange rate (in the case of foreign invoice issued in other currency)
			   //Data for fiscalization has to be in EUR for foreign invoices also.
			   //Only DrzavaKupac, ValutaKod, and RazmjenaKurs is set additionally in the case of foreign invoice

//--- Invoce header
//VrstaIdKupac;TIN     	   //Type of ID, posible values are TIN, ID, PASS, VAT, TAX, SOC
			   //TIN is ok for a big majority of cases.
			   //Other values are for buyer, physical persons when must be identified by law
//RokPlacanja;DATE()+15    //You must set payment deadline, else the system will send the date, 15 days after issuing date.
//PocetakIsporuke;DATE()   //Start of Delivery (default today)
//KrajIsporuke;DATE()      //End of Delivery (default today)

//--- Special cases. As the author of the invoice, you have to know the legal requirements of this cases.
//IsObrnutoZarac;FALSE	   //Reverse charge? The system sets False because the most common invoices don't have it. 
			   //Special law possibilities about VAT(PDV). See documentation by Tax Authority.
//UmanjOsnCij;TRUE         //Rebate reduce the base price?
			   //The value is true in most cases. False is used only in rare special circumstances determined by law.

//--- About invoice items
//JM.1;kom 		//Unit of measure. If you don't set the unit of measurement, the system will automatically send the value "piece."
//Rabat.1;0.00		//Rebate (expressed in percents without the percent sign). Default is zero.


//--- About payments (note they are indexed because more than one payment method is possible)
//VrstaPlac.0;ACCOUNT   //Payment method. By default, the system sets values ACCOUNT or BANKNOTE, depends on VrstaRacuna (NONCASH, CASH). 
			//ACCOUNT when VrstaRacuna set to NONCASH, BANKNOTE when VrstaRAcuna set to CASH.
//Iznos;67.99           //Amount paid by concrete payment method. If the Payment method (VrstaPlac) not set and the system sets
			//the most common payment method (VrstaPlac), the value is set to the value of total price (UkupCijena).

//--------------------- if you checked the defaults in the upper group of keys and set the correct value where needed,
//--------------------- you can fiscalize the significant majority of invoices

//---In the third group, there are data fields (keys) that must be present in some special situations only.
//---There are a few most important/common cases. For all other possible keys, see the documentation in the Excel file.
//---Please see also the documentation from the Tax authority for setting the correct values for your special needs.

//---If issuing DateTime is older than 10 minutes, you must tell one of the reasons why the fiscalization is late
TipNakDostave;SERVICE     //Type of the subsequent delivery. It should be included only when there is a real reason.
			  //Uncommented in this sample because it is not necessary to change the issue date every time you try.
			  //The possible values are:NOINTERNET, BOUNDBOOK, SERVICE, TECHNICALERROR, BUSINESSNEEDS.
			  //See the technical documentation from Tax Authority for more detailed informations.

//IzuzOdPlacPDV.0;VAT_CL17  //Exempt from VAT. Possible values are VAT_CL17, VAT_CL20, VAT_CL26 to VAT_CL30.
			  //In Montenegro VAT rates are 21%, 7% and 0%
			  //Rate 0% is different from VAT exemptions. 
			  //So, VAT rates have to be set in field PDVStopa and exemptions to IzuzevOdPlacPDV.
			  //Note that it's indexed by index of items, because it is a part if items data. 

//--- If an excise is present on the invoice 
//IznosAkcize.0;100.00	  //Amount of excise. The amount will be calculated (added) in the Price before VAT (on every item). 
			  //If the amount is maybe already included in the unite price, 
			  //then the excise should not be separately included.
			  //Note that it's indexed by an index of items because it is a part of items data.

//--- Corrections (corrective invoice)
//--- In the corrective invoice, you can correct the already fiscalized invoice.
//--- Corrections could be made with positive or negative values of a quantity.
//--- You can increase or decrease the individual items, or you can invert the whole invoice (and then issue a new invoice).
//--- In all cases, the correction must have the reference to the original invoice, made by below three key;value pairs. 
//VrstaKorRac;CORRECTIVE   //Correction type. Possible values are CORRECTIVE, DEBIT, CREDIT.
//DatVrijemIzdKorRac;date  //Issuing date and time of original invoice (invoice which is corrected)
//RefIKOF;IKOF		   //IKOF value of original invoice (invoice which is corrected)

//--- For all other possible data fields, see the excel document.







