Advertisement
Kushtrim

printTestFiscal

Sep 22nd, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.79 KB | None | 0 0
  1. private void printTestFiscal() {  
  2.     char  OpenFiscal = 0x30;
  3.         char  AddProduct = 0x31;
  4.         char  Total = 0x35;
  5.         char  CloseFiscal = 0x38;
  6.       /*The sequence of actions is as follows:
  7.          * 1) OpenFiscal()
  8.          * 2) AddProduct()
  9.          * 3) CalculateTotal()
  10.          * 4) CloseFiscal()*/
  11.          
  12.             createAndSendPacket(OpenFiscal, "1,0000,12");
  13.            
  14.             char tab = 0x09;
  15.             //String produkti1 = "KitKat" + tab + "A" + 3 + "*" + 7;
  16.             String product2 = "Chocolate bar ‘Milka’" + tab + "B" + 1.20 + "*" + 2;
  17.             createAndSendPacket(AddProduct, product2);
  18.            
  19.          
  20.            
  21.             String payment = tab + "P" + 150;
  22.             String payment2 = tab + "P5.50";
  23.             createAndSendPacket(Total,payment2 );
  24.            
  25.            
  26.            
  27.             createAndSendPacket(CloseFiscal, "");
  28.            
  29.            
  30.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement