//#ÈÍÔÎÐÌÀÖÈß Â ÝÒÎÉ È ÑËÅÄÓÞÙÅÉ ÑÒÐÎÊÅ ÍÅÎÁÕÎÄÈÌÀ ÄËß ÊÎÐÐÅÊÒÍÎÉ ÐÀÁÎÒÛ ÌÀÑÒÅÐÀ# //bar03=5¦bar04=100¦dsc02=1¦dsc03=1¦dsc05=1¦dsc06=1¦scr09=1¦scr10=1¦scr43=2¦scr25=1¦dsc29=1¦scr26=1¦scr28=1¦scr38=Ñêèäêè¦dsc55=1¦scr39=1¦scr66=1¦scr67=Óñëóãè¦scr68=1¦mac01==¦mac02=-¦mac03= ¦mac04=—¦ function printHeader(print) { print.printCenterString("ÊÀÑÑÎÂÛÉ ×ÅÊ"," "); print.printLRStringLF("ÐÌ ¹"+frontol.codeWorkplace,frontol.currentUser.name," "); print.printLRStringLF(" ¹"+print.addCharLeft(frontol.currentDocument.number,0,8), "Ñìåíà ¹"+print.addCharLeft(frontol.currentDocument.sessionNumber,0,4)," "); print.printLRStringLF("=","=","="); } function printPosition(print) { if (frontol.currentDocument.position.storno == 1) print.printCenterString("ÑÒÎÐÍÎ"," "); print.printString(frontol.currentDocument.position.number+". "+frontol.currentDocument.position.ware.text); if (frontol.currentDocument.position.storno == 0) { print.printLRStringLF(" "+(frontol.currentDocument.position.fracSale?print.formatQuantity(frontol.currentDocument.position.quantity):frontol.currentDocument.position.quantity)+"*"+ print.formatCurrency(frontol.currentDocument.position.price), print.formatCurrency(frontol.currentDocument.position.sum)," "); if (frontol.currentDocument.position.number != frontol.currentDocument.position.count) print.printLRStringLF("-","-","-"); } } function printFooter(print) { { print.printStringWordWrap("Ïîçèöèé: "+frontol.currentDocument.position.count); print.printLRStringLF("=","=","="); if(frontol.currentDocument.cardValues != "") print.printStringWordWrap("Êàðòà: "+frontol.currentDocument.cardValues); if (frontol.currentDocument.sum != frontol.currentDocument.sumWithDiscs ) print.printCenterString("Ñêèäêè"," "); print.printStringWordWrap("Îïëàòà"); for(frontol.currentDocument.payment.index = 1; frontol.currentDocument.payment.index <= frontol.currentDocument.payment.count; frontol.currentDocument.payment.index++) { if(frontol.currentDocument.payment.sumInBaseCurrency > 0) print.printLRString(" "+frontol.currentDocument.payment.type.text, "="+print.formatCurrency(frontol.currentDocument.payment.sumInBaseCurrency)," "); else { print.printStringWordWrap("Ñäà÷à"); print.printLRString(" "+frontol.currentDocument.payment.type.text, "="+print.formatCurrency(-frontol.currentDocument.payment.sumInBaseCurrency)," "); } } print.printLRStringLF("-","-","-"); for(frontol.currentDocument.servicePrintInfo.index = 1; frontol.currentDocument.servicePrintInfo.index <= frontol.currentDocument.servicePrintInfo.count; frontol.currentDocument.servicePrintInfo.index++) if (frontol.currentDocument.servicePrintInfo.printGroup.code == print.printGroup.code) { print.printLRStringLF("—","—","—"); print.printCenterString("Óñëóãè", " "); print.printString(frontol.currentDocument.servicePrintInfo.info); } } }