Giuseppe

Untitled

Oct 21st, 2020 (edited)
818
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <output>
  2. #if (${place} == "Hier")
  3.     <ticket>
  4.     <line><text align="center" length="42">Feuerwehr Wieblingen</text></line>
  5.     <line><text align="center" length="42">Tag der offenen Tür 2021</text></line>
  6.     <line><text align="center" length="42">COVID-19 Kontaktinformation</text></line>
  7.     <line></line>
  8.     <line></line>
  9.     <line><text align="left" length="42">Name*:_______________________________________</text></line>
  10.     <line></line>
  11.     <line></line>
  12.     <line><text align="left" length="42">Vorname*:_______________________________________</text></line>
  13.     <line></line>
  14.     <line></line>
  15.     <line><text align="left" length="42">Straße*:_______________________________________</text></line>
  16.     <line></line>
  17.     <line></line>
  18.     <line><text align="left" length="42">PLZ + Ort*:_______________________________________</text></line>
  19.     <line></line>
  20.     <line></line>
  21.     <line><text align="left" length="42">Telefon*:_______________________________________</text></line>
  22.     <line></line>
  23.     <line></line>
  24.     <line><text align="left" length="42">Telefon2:_______________________________________</text></line>
  25.     <line></line>
  26.     <line></line>
  27.     <line><text align="left" length="42">Gekommen:${ticket.printDate()}</text></line>
  28.     <line></line>
  29.     <line><text align="left" length="42">Gegangen:_______________________________________</text></line>
  30.     <line><text align="center" length="42">*Pflichtfelder</text></line>
  31.     <line><text align="center" length="42">Die Datenschutzerklärung</text></line>
  32.      <line><text align="center" length="42">finden Sie an der Kasse</text></line>
  33. </ticket>
  34. #end
  35. #if (${ticket.ticketType} == "NORMAL")
  36.     #foreach ($ticketline in $ticket.getLines())  <!-- wurde nach Oben geschoben-->            
  37.         <ticket>
  38.             <!--  <image>Printer.Ticket.Logo</image> -->
  39.             <!-- <line></line> -->
  40.             <line>
  41.                 <text align="center" length="42">Feuerwehr Wieblingen</text>
  42.             </line>
  43.             <line>
  44.                 <text align="center" length="42">Tag der offenen Tür</text>
  45.             </line>
  46.             <line>
  47.                 #if ($ticket.getCustomer())
  48.            
  49.                     <line>
  50.                         <text align="left" length="15">Wertmarke für:</text>
  51.                         <text>${ticket.getCustomer().printName()}</text>
  52.                     </line>
  53.                    
  54.                     #if ($ticket.getCustomer().getDiscount() > 0.0 )    
  55.                         <line>
  56.                             <text align="left" length="15">Discount:</text>
  57.                             <text>${ticket.getCustomer().printDiscount()}</text>
  58.                         </line>  
  59.                     #end  
  60.                     <text align ="right" length="5"></text>
  61.                 #end
  62.             </line>
  63.                 <line>
  64.                     <text>------------------------------------------</text>
  65.                 </line>
  66.                
  67.                 #if(!($ticketline.isProductKitchen()) || ($ticketline.getProperty("sendstatus").equals("No")))
  68.                     <line size = "1">
  69.                         #if ($ticketline.isProductCom())
  70.                             <text align ="center" length="17">*${ticketline.printName()}</text>
  71.                         #else
  72.                             <text align ="center" length="17">${ticketline.printName()}</text>
  73.                             <text align ="right" length="7">x${ticketline.printMultiply()}</text>
  74.                         #end
  75.                     </line>
  76.                     <line>
  77.                         <text>------------------------------------------</text>
  78.                     </line>
  79.                     <line>
  80.                         <text align="left" length="15">Bediener:</text>
  81.                         <text>${ticket.printUser()}</text>
  82.                     </line>
  83.             <line>
  84.                 <text align="left" length="10">Datum:</text>
  85.                 <text>${ticket.printDate()}</text>
  86.                 <text>  ${ticket.printId()}</text>
  87.             </line>
  88.                 #end        
  89.                 <!-- wurde nach Unten geschoben-->
  90.  
  91.            
  92.         </ticket>
  93.     #end
  94. #end
  95.        
  96. <!-- Kassenzettel-->
  97. <display>
  98.     <line><text align="left" length="10">Gesammt</text><text align="right" length="10">${ticket.printTotal()}</text></line>
  99.     <line><text align="center" length="20">Vielen Dank</text></line>
  100. </display>
  101. <ticket>
  102.     <image>Printer.Ticket.Logo</image>
  103.     <line></line>
  104.     <line><text align="center" length="42">Tag der offenen Tür</text></line>
  105. <!--<line><text align="center" length="42">Copyright (c) (c) 2015-2016Chromis</text></line>
  106.     <line><text align="center" length="42">Printer.Ticket</text></line>-->
  107.     <line></line>
  108.  
  109.     #if (${ticket.ticketType} == "NORMAL")
  110.         <line><text align="left" length="15">Rechnung:</text><text>${ticket.printId()}</text></line>
  111.     #end
  112.  
  113.     #if (${ticket.ticketType} == "REFUND")
  114.         <line><text align="left" length="15">Rückerstattung:</text><text>${ticket.printId()}</text></line>
  115.     #end
  116.    
  117.         <line><text align="left" length="15">Datum:</text><text>${ticket.printDate()}</text></line>
  118.         <line><text align="left" length="15">Kasse: </text><text>${ticket.getHostname()}</text></line>      
  119.  
  120.     #if ($ticket.getCustomer())
  121.     <line><text align="left" length="15">Customer:</text><text>${ticket.getCustomer().printName()}</text></line>
  122.             #if ($ticket.getCustomer().getDiscount() > 0.0 )  
  123.                    <line><text align="left" length="15">Discount:</text><text>${ticket.getCustomer().printDiscount()}</text></line>  
  124.             #end  
  125.         <line><text align="left" length="15">Account #:</text><text>${ticket.getCustomer().printTaxid()}</text></line>
  126.         <line><text align="left" length="15">Current Debt:</text><text>${ticket.getCustomer().printCurDebt()}</text></line>
  127.     #end
  128.  
  129.     #if (${tickettext.place} != ${place})
  130.         <line><text align="left" length="15">Tisch:</text><text>${place}</text></line>
  131.     #end
  132.        
  133.         <line><text align="left" length="15">Bediener:</text><text>${ticket.printUser()}</text></line>
  134.         <line></line>
  135.         <line><text align ="left" length="17">Artikel</text><text align ="right" length="8">S.Preis</text><text align ="right" length="7">Anzahl</text><text align ="right" length="10">Preis</text></line>
  136.         <line><text align="left" length="42">------------------------------------------</text></line>
  137. #foreach ($ticketline in $ticket.getLines())
  138.     <line>
  139.     #if ($ticketline.isProductCom())
  140.         <text align ="left" length="17">*${ticketline.printName()}</text>
  141.     #else
  142.         <text align ="left" length="17">${ticketline.printName()}</text>
  143.     #end
  144.         <text align ="right" length="8">${ticketline.printPriceTax()}</text>
  145.         <text align ="right" length="7">x${ticketline.printMultiply()}</text>
  146.         <text align ="right" length="10">${ticketline.printValue()}</text>
  147.     </line>
  148.  
  149.     #if ($ticketline.productAttSetInstId)
  150.         <line><text align ="left" length="42">${ticketline.productAttSetInstDesc}</text></line>
  151.     #end
  152. #end
  153.     <line><text align="left" length="42">------------------------------------------</text></line>
  154.     <line><text>Posten: </text><text align ="left" length="14">${ticket.printArticlesCount()}</text></line>
  155.     <line></line>
  156.     <line size="1"><text align ="left" length="16" bold="true">Gesammt:</text><text align ="right" length="26" bold="true">${ticket.printTotal()}</text></line>
  157.  
  158. #foreach ($paymentline in $ticket.payments)
  159.  
  160.     #if ($paymentline.name == "cash")
  161.         <line><text bold="true">Bar</text></line>
  162.                 <line><text align="left" length="22">Gegeben:</text><text align ="right" length="20">${paymentline.printPaid()}</text></line>
  163.             <line><text align="left" length="22">Zurück:</text><text align ="right" length="20">${paymentline.printChange()}</text></line>
  164.     #end
  165.            
  166.     #if ($paymentline.name == "cashrefund")
  167.             <line><text bold="true">Refund</text></line>
  168.             <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  169.     #end
  170.    
  171.         #if ($paymentline.name == "magcard")
  172.             <line size="1"><text align="center" length="42" bold="true">Kartenzahlung SumUp</text></line>
  173.             <!--<line size="1"><text>${paymentline.getCardName()}</text></line>  
  174.            <line><text>${paymentline.printCardNumber()}</text></line>
  175.            <line></line>-->  
  176.             <line size="1"><text align="left" length="10">Gesammt:</text>
  177.                 <text align ="right" length="32">${ticket.printTotal()}</text></line>
  178.            <!--  <line><text>Tranx ID  : </text><text>${paymentline.printTransactionID()}</text></line>
  179.            <line><text>Auth Code : </text><text>${paymentline.printAuthorization()}</text></line>
  180.            <line></line>-->
  181.         #end
  182.  
  183.     #if ($paymentline.name == "magcardrefund")
  184.             <line size="1"><text align="center" length="42" bold="true">CARD REFUND</text></line>
  185.             <line size="1"><text>${paymentline.getCardName()}</text></line>    
  186.             <line><text>${paymentline.printCardNumber()}</text></line>
  187.             <line></line>
  188.             <line size="1"><text align="left" length="10">AMOUNT</text>
  189.                 <text align ="right" length="32">${paymentline.printTotal()}</text></line>                        
  190.             <line><text>Tranx ID  : </text><text>${paymentline.printTransactionID()}</text></line>
  191.             <line><text>Auth Code : </text><text>${paymentline.printAuthorization()}</text></line>
  192.             <line></line>                
  193.  
  194.     #end
  195.  
  196.     #if ($paymentline.name == "cheque")
  197.         <line></line>
  198.         <line><text bold="true">Cheque</text></line>
  199.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  200.     #end
  201.  
  202.     #if ($paymentline.name == "chequerefund")
  203.         <line></line>
  204.         <line><text bold="true">Cheque Refund</text></line>
  205.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  206.     #end
  207.  
  208.     #if ($paymentline.name == "paperin")
  209.         <line></line>
  210.         <line><text bold="true">Note</text></line>
  211.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  212.     #end
  213.  
  214.         #if ($paymentline.name == "customin")
  215.         <line></line>
  216.         <line>
  217.             <text align="left" length="22" bold="true">Custom payment</text>
  218.             <text align ="right" length="20">${paymentline.printTotal()}</text>
  219.         </line>
  220.         #end
  221.  
  222.     #if ($paymentline.name == "paperout")
  223.         <line></line>
  224.         <line><text bold="true">Note Refund</text></line>
  225.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  226.     #end
  227.  
  228.     #if ($paymentline.name == "customout")
  229.         <line></line>
  230.         <line><text bold="true">Custom Refund</text></line>
  231.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  232.     #end
  233.  
  234.     #if ($paymentline.name == "free")
  235.         <line></line>
  236.         <line><text bold="true">KOSTENFREI</text></line>
  237.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  238.     #end
  239.    
  240.     #if ($paymentline.name == "debt")
  241.         <line></line>
  242.         <line><text bold="true">On Account</text></line>
  243.         <line><text align ="right" length="42">${paymentline.printTotal()}</text></line>
  244.     #end
  245. #end
  246.  
  247. #foreach ($couponline in $ticket.getCouponLines())
  248.     <line>
  249.             <text align ="left" length="42">${couponline}</text>
  250.         </line>
  251. #end
  252.  
  253. #if (${ticket.ticketType} == "REFUND")
  254.     <line></line>
  255.     <line></line>
  256.         <line><text align="left" length="30">Betrag erhalten:_______________________________________</text><text align="left" length="7">${ticket.printId()}</text></line>
  257. #end
  258.     <line></line>
  259. #if (${ticket.ticketType} == "REFUND")  <line><text align="center" length="42">Entschuldigen Sie das Ärgerniss</text></line>#end
  260. #if (${ticket.ticketType} == "NORMAL")  <line><text align="center" length="42">Vielen Dank für Ihren Einkauf</text></line>#end
  261.     <line><text align="center" length="42">Besuche uns wieder</text></line>
  262.  
  263.  
  264. </ticket>
  265.  
  266. #foreach ($paymentline in $ticket.payments)
  267.     #if ($paymentline.name == "cash")
  268.         <opendrawer/>
  269.     #end
  270.     #if ($paymentline.name == "cashrefund")
  271.         <opendrawer/>
  272.     #end
  273. #end
  274.    
  275. </output>
RAW Paste Data