| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 | <div class="row ">    <div class="col-md-3" ng-repeat="pos in posList">        <table class="table table-striped">            <tr>                <th>{{pos}}</th>                <th></th>                <th class="normal">Datum</th>                <th class="normal">Anz. Art.</th>                <th class="normal text-right">Gesamt-Preis</th>                <th class="normal text-right">Gegeben<br/>Rückgeld</th>            </tr>            <tr ng-repeat="invoice in filterInvoices(pos) | orderBy:'-invoice_date' | limitTo: 5" >                <td><button type="button" class="btn" data-toggle="modal" data-target="#invoiceModal" ng-click="loadInvoice(invoice.invoice_number)"><i class="glyphicon glyphicon-pencil"></i></button></td>                <td>                    <button type="button" class="btn btn-warning" ng-click="printInvoice(invoice.invoice_number)" ng-show="invoice.printed==0"><i class="glyphicon glyphicon-print"></i></button>                    <button type="button" class="btn btn-success" ng-click="printInvoice(invoice.invoice_number)" ng-show="invoice.printed==1"><i class="glyphicon glyphicon-check"></i></button>                </td>                <td class="normal">{{invoice.invoice_date|datum}}</td>                <td class="text-right">{{invoice.line_count}}</td>                <td class="text-right">{{invoice.total|euro}}</td>                <td class="normal text-right">{{invoice.paid|euro}}<br/>{{(invoice.paid-invoice.total)|euro}}</td>            </tr>            <tr>                <td></td>                <td></td>                <th class="normal">Kassenstand</th>                <td></td>                <th class="text-right">{{total(pos)|euro}}</th>                <td class="text-right"></td>            </tr>        </table>        <br/><br/>    </div></div><div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="inactiveLabel" id="invoiceModal">    <div class="modal-dialog modal-lg" role="document">        <div class="modal-content">            <div class="modal-header">                <h4 class="modal-title" id="inactiveLabel">Rechnung bearbeiten</h4>            </div>            <div class="modal-body">        <table class="table table-striped">            <tr class="warning">                <th class="col-md-1">Gesamt</th>                <td class="col-md-2">                    {{currentInvoice.details.length}} Artikel                </td>                <th class="col-md-1 text-right big">                    {{invoiceTotal()|euro}} €                </th>            </tr>            <tr>                <td><i class="glyphicon glyphicon-download-alt"></i></td>                <td>                    Von Kunde erhalten (/)                </td>                <td class="text-right">                    <input id="paid" class="form-control text-right" type="text" ng-model="currentInvoice.paid" ng-keypress="keyPressPaid($event)" data-price/>                </td>            </tr>            <tr ng-show="currentInvoice.valid">                <td><i class="glyphicon glyphicon-log-out"></i></td>                <th>                    Rückgeld                </th>                <td class="text-right">                    {{currentChange()|euro}} €                </td>            </tr>            <tr>                <th>Pos</th>                <th>Artikel</th>                <th class="text-right">Preis</th>            </tr>            <tr ng-repeat="b in currentInvoice.details ">                <td>                    {{b.line_number}}                </td>                <td>                    <input class="form-control item monospace" type="text" required item ng-model="b.item" ng-keypress="keyPressItem($event, $index)"/>                </td>                <td class="text-right">                    <input class="form-control text-right price" type="text" required ng-model="b.price"  ng-keypress="keyPressPrice($event, $index)" data-price />                </td>            </tr>        </table>                                            </div>            <div class="modal-footer">                <button type="button" class="btn btn-danger" ng-click="checkOut()">Änderungen speichern</button>            </div>        </div>    </div></div>
 |