//#          #
//dsc02=1dsc03=1dsc05=1dsc06=1scr09=1bar03=5bar04=100scr10=3scr43=0scr26=1scr32=1scr36=1scr39=1mac01=-mac02=-mac03= 
function PrintHeader(PO, RO)  
{                             
  PO.PrintLRStringLF("POS "+RO.NPOS,RO.UserName," ");
  PO.PrintLRStringLF(RO.ReceiptType+" "+PO.AddCharLeft(RO.ReceiptNo,0,8), 
                               " "+PO.AddCharLeft(RO.SessionNo,0,4)," ");
  PO.PrintLRStringLF("-","-","-");
}                             
                              
function PrintPosition(PO, RO)
{                             
  if (RO.Pos.Storno == 1)                
    PO.PrintCenterString(""," ");  
  PO.PrintLRStringLF(RO.Pos.Number+". "+RO.Pos.WareText+" "+PO.FormatQuantity(RO.Pos.Quantity)+"* "+PO.FormatCurrency(RO.Pos.Price),PO.FormatCurrency(RO.Pos.SummForD)," ");
  if (RO.Pos.Storno == 0)     
  {                           


  }                           
}                             
                              
function PrintFooter(PO, RO)  
{                             
  PO.PrintLRStringLF("-","-","-");

  PO.PrintLRStringLF("",PO.FormatCurrency(RO.SummForD)," ");
  if (RO.TotalDiscSumm != 0)                                                                   
    if (RO.TotalDiscSumm < 0)                                                                  
    {                                                                                          
      PO.PrintLRString("  ",PO.FormatCurrency(-RO.TotalDiscSumm)," ");     
      PO.PrintLRString("+"+PO.FormatPercent(RO.TotalDiscValue)+"%",                            
                         PO.FormatCurrency(-RO.TotalDiscSumm)," ");                           
    }                                                                                          
    else                                                                                       
    {                                                                                          
      PO.PrintLRString("  ",PO.FormatCurrency(RO.TotalDiscSumm)," ");      
      PO.PrintLRString("-"+PO.FormatPercent(RO.TotalDiscValue)+"%",                            
                          PO.FormatCurrency(RO.TotalDiscSumm)," ");                           
    }                                                                                          

  PO.PrintLRStringLF("-","-","-"); 

}
