pindesk / openbravoposru

Automatically exported from code.google.com/p/openbravoposru
0 stars 0 forks source link

Сменные отчёты (X и Z) по кассирам #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Добавил в наш проект сменный отчёт по 
кассирам, его шаблон для ресурсов Printer.CloseCash 
и Printer.PartialCash:

        <line>
            <text bold="true">Отчёт по кассирам</text>
        </line>
        <line>
            <text align="left" length="25">Имя</text>
            <text align="center" length="7">Кол-во</text>
            <text align="right" length="10">Сумма</text>        
        </line>
        <line>
            <text>------------------------------------------</text>
        </line>
        #foreach ($line in $payments.getCashiersLines())
        <line>
            <text align="left" length="25">${line.printCashierName()}</text>
            <text align="center" length="7">${line.printCashierUnits()}</text>
            <text align="right" length="10">${line.printCashierValue()}</text>
        </line> 
        #end
        <line>
            <text>------------------------------------------</text>
        </line>         
        <line/>
        <line size="1">
            <text align="left" length="22" bold="true">Итого</text>
            <text align="center" length="10" bold="true">${payments.printProductSalesTotalUnits()}</text>
            <text align="right" length="10" bold="true">${payments.printProductSalesTotal()}</text>
        </line>
        <line/>        

Вся логика залита в r7956578b35c6

Original issue reported on code.google.com by svinin...@gmail.com on 25 Jun 2012 at 5:05

Attachments: