]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/disposition_manager/show_purchase_basket.html
date error in mapping
[mfinanz.git] / templates / webpages / disposition_manager / show_purchase_basket.html
1 [%- USE HTML -%]
2 [%- USE LxERP -%]
3 [%- USE L -%]
4 [%- USE T8 -%]
5 [%- USE P -%]
6
7 [%- INCLUDE 'common/flash.html' %]
8 <h1>[% title %]</h1>
9
10 <div>
11   <p>
12     [% 'Vendor' | $T8 %]:
13     [% P.customer_vendor.picker('vendor_id', '', type='vendor') %]
14   </p>
15 </div>
16
17 <form id="purchasebasket" style="margin:1em;">
18 <div>
19   <table id="baskettable" width="100%">
20     <thead>
21      <tr class="listheading">
22        <th>
23          [% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]
24          [% 'Purchase basket' | $T8 %]
25        </th>
26        <th>[% 'Partnumber'                                      | $T8 %] </th>
27        <th>[% 'Description'                                     | $T8 %] </th>
28        <th>[% 'Onhand'                                          | $T8 %] </th>
29        <th>[% 'Rop'                                             | $T8 %] </th>
30        <th>[% 'Order quantity'                                  | $T8 %] </th>
31        <th>[% 'Vendor'                                          | $T8 %] </th>
32      </tr>
33     </thead>
34     <tbody id="basket_items">
35     [% FOREACH basket_item = BASKET_ITEMS %]
36
37       <tr class="listrow">
38         <td>
39           [% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1',  value=basket_item.id) %]
40           [% L.hidden_tag('basket_ids[+]', basket_item.id) %]
41         </td>
42         <td> [% basket_item.part.presenter.part(target = '_blank') %]
43           [% P.button_tag(
44                "kivi.DispositionManager.show_detail_dialog("
45                  _  basket_item.part.id _ "," _ basket_item.part.partnumber _
46                ")",
47                LxERP.t8('Details (one letter abbreviation)'),
48                title=LxERP.t8('Article details'), class="button") %]
49         </td>
50         <td>[% HTML.escape(basket_item.part.description) %]</td>
51         <td class="numeric">[% basket_item.part.onhand_as_number %]</td>
52         <td class="numeric">[% basket_item.part.rop_as_number %]</td>
53         <td class="numeric">[% basket_item.qty_as_number %]</td>
54         <td>[% P.part.vendor_price_dropdown(
55                  'vendor_ids[]', basket_item.part,
56                  default=basket_item.part.makemodels.item(0).make,
57                  style='width: 350px;'
58                  ) %]
59         </td>
60       </tr>
61     [% END %]
62     </tbody>
63   </table>
64 </div>
65 <hr>
66
67 <div id="vendor_parts"></div>
68 </form>
69 <hr>