  // 

function PrintHeader(PO, RO)
{ 
  //    POS'
  PO.PrintCenterString("POS "+RO.NPOS+" "+RO.UserName," ");

  //   
  PO.PrintLRStringLF(RO.ReceiptType+" "+PO.AddCharLeft(RO.ReceiptNo,0,8),
                               " "+PO.AddCharLeft(RO.SessionNo,0,4)," ");
}

function PrintPosition(PO, RO)
{
  // 
}

  // 

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

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