Subversion Repositories SmartDukaan

Rev

Rev 32603 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32603 Rev 32912
Line 108... Line 108...
108
 
108
 
109
        <div class="col-lg-12">
109
        <div class="col-lg-12">
110
            <table id="open-invoices" class="table table-striped table-advance table-hover">
110
            <table id="open-invoices" class="table table-striped table-advance table-hover">
111
                <thead>
111
                <thead>
112
                <tr>
112
                <tr>
113
                    <th>Date</th>
-
 
114
                    <th>Supplier</th>
-
 
115
                    <th>Warehouse</th>
-
 
116
                    <th>Invoice Id</th>
113
                    <th>Invoice Id</th>
-
 
114
                    <th>Supplier</th>
117
                    <th>Invoice Number</th>
115
                    <th>Invoice Number</th>
-
 
116
                    <th>Invoice Date</th>
118
                    <th>Num Items</th>
117
                    <th>Num Items</th>
119
                    <th>Total Value</th>
118
                    <th>Total Value</th>
-
 
119
                    <th>Warehouse</th>
120
                    <th>Invoice Date</th>
120
                    <th>Rcv. Date</th>
121
                    <th>Received By</th>
121
                    <th>Rcv. By</th>
122
 
-
 
123
                    <th> Status</th>
122
                    <th>Req Status</th>
124
                    <th> Invoice</th>
123
                    <th>Actions</th>
125
 
-
 
126
                </tr>
124
                </tr>
127
                </thead>
125
                </thead>
128
 
126
 
129
                <tbody>
127
                <tbody>
130
 
128
 
131
 
129
 
132
                    #foreach($supplierInvoice in $supplierInvoices)
130
                    #foreach($supplierInvoice in $supplierInvoices)
133
                    <tr>
-
 
134
                        <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
-
 
135
                        <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
-
 
136
                        <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
131
                    <tr id="$supplierInvoice.getId()">
137
                        <td>$supplierInvoice.getId()</td>
132
                        <td>$supplierInvoice.getId()</td>
-
 
133
                        <td>$supplierMap.get($supplierInvoice.getSupplierId()).getName()</td>
138
                        <td>
134
                        <td>
139
                            <a onclick="getInvoiceItems($supplierInvoice.getId())">$supplierInvoice.getInvoiceNumber() </a>
135
                            <a onclick="getInvoiceItems($supplierInvoice.getId())">$supplierInvoice.getInvoiceNumber() </a>
140
                        </td>
136
                        </td>
-
 
137
                        <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>
141
                        <td>$supplierInvoice.getNumItems()</td>
138
                        <td>$supplierInvoice.getNumItems()</td>
142
                        <td>$supplierInvoice.getTotalValue()</td>
139
                        <td>$supplierInvoice.getTotalValue()</td>
-
 
140
                        <td>$warehouseMap.get($supplierInvoice.getWarehouseId()) </td>
143
                        <td>$supplierInvoice.getInvoiceDate().format($dateTimeFormatter)</td>
141
                        <td>$supplierInvoice.getCreateDate().format($dateTimeFormatter)</td>
144
                        <td>$supplierInvoice.getReceivedFrom()</td>
142
                        <td>$supplierInvoice.getReceivedFrom()</td>
145
                        #if($grnRequestMap.get($supplierInvoice.getId()))
143
                        #if($grnRequestMap.get($supplierInvoice.getId()))
146
                            <td>$grnRequestMap.get($supplierInvoice.getId()).getStatus() </td>
144
                            <td>$grnRequestMap.get($supplierInvoice.getId()).getStatus() </td>
147
                        #else
145
                        #else
148
                            <td> -</td>
146
                            <td> -</td>
149
                        #end
147
                        #end
150
                        <td>
148
                        <td>
151
                            <a href="${rc.contextPath}/download-attachment?documentId=$supplierInvoice.getInvoiceDocId()"
149
                            <a href="${rc.contextPath}/download-attachment?documentId=$supplierInvoice.getInvoiceDocId()"
152
                               class="download">Download Doc</a>
150
                               class="download">Download</a><br>
-
 
151
                            #if($isL2)
-
 
152
                                <a onclick="removeInvoice($supplierInvoice.getId())" href="javascript:void(0)">Remove Invoice</a><br>
-
 
153
                                #if($grnRequestMap.get($supplierInvoice.getId()))
-
 
154
                                    <a onclick="removeGrnRequest($supplierInvoice.getId())" href="javascript:void(0)">
-
 
155
                                        Remove Request
-
 
156
                                    </a>
-
 
157
                                #end
-
 
158
                            #end
153
                        </td>
159
                        </td>
154
 
160
 
155
                    </tr>
161
                    </tr>
156
                    #end
162
                    #end
157
 
163