7 [%- INCLUDE 'common/flash.html' %]
13 [% P.customer_vendor.picker('vendor_id', '', type='vendor') %]
17 <form id="purchasebasket" style="margin:1em;">
19 <table id="baskettable" width="100%">
21 <tr class="listheading">
23 [% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]
24 [% 'Purchase basket' | $T8 %]
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>
34 <tbody id="basket_items">
35 [% FOREACH basket_item = BASKET_ITEMS %]
39 [% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1', value=basket_item.id) %]
40 [% L.hidden_tag('basket_ids[+]', basket_item.id) %]
42 <td> [% basket_item.part.presenter.part(target = '_blank') %]
44 "kivi.DispositionManager.show_detail_dialog("
45 _ basket_item.part.id _ "," _ basket_item.part.partnumber _
47 LxERP.t8('Details (one letter abbreviation)'),
48 title=LxERP.t8('Article details'), class="button") %]
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,
67 <div id="vendor_parts"></div>