Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a355598b

Von Tamino Steinert vor fast 2 Jahren hinzugefügt

  • ID a355598b49709e7d0e5f25549816ed40e8408796
  • Vorgänger a6ad7d45
  • Nachfolger cff6a0f2

DispositionManager: Templates design 4.0

Unterschiede anzeigen:

templates/design40_webpages/disposition_manager/_show_vendor_parts.html
[%- USE HTML -%]
[%- USE LxERP -%]
[%- USE L -%]
[%- USE T8 -%]
[%- USE P -%]
<table id="vendor_parts_table" class="tbl-list">
<caption>[% 'All parts of vendor odered by onhand' | $T8 %]</caption>
<thead>
<tr>
<th>[% 'Purchase basket' | $T8 %] </th>
<th>[% 'Partnumber' | $T8 %] </th>
<th>[% 'Description' | $T8 %] </th>
<th>[% 'Onhand' | $T8 %] </th>
<th>[% 'Ordered purchase'| $T8 %] </th>
<th>[% 'Rop' | $T8 %] </th>
<th>[% 'Order quantity' | $T8 %] </th>
<th>[% 'Vendor' | $T8 %] </th>
</tr>
</thead>
<tbody>
[% FOREACH makemodel_item = MAKEMODEL_ITEMS %]
<tr>
<td>[% L.checkbox_tag('vendor_part_ids[+]',
checked='0', value=makemodel_item.id) %]</td>
<td>[% makemodel_item.presenter.part(target = '_blank') %]
[% P.button_tag(
"kivi.DispositionManager.show_detail_dialog("
_ makemodel_item.id _ "," _ makemodel_item.partnumber _
")",
LxERP.t8('Details (one letter abbreviation)'),
title=LxERP.t8('Article details'), class="button") %]
</td>
<td>[% HTML.escape(makemodel_item.description) %]</td>
<td class="numeric">[% makemodel_item.onhand_as_number %]</td>
<td class="numeric">[% LxERP.format_amount(makemodel_item.get_open_ordered_qty, 2) %]</td>
<td class="numeric">[% makemodel_item.rop_as_number %]</td>
<td class="numeric">[% makemodel_item.order_qty_as_number %]</td>
<td>[% P.part.vendor_price_dropdown(
'vendor_ids[]', makemodel_item,
default=makemodel_item.makemodels.item(0).make,
style='width: 350px;'
) %]
</td>
</tr>
[% END %]
</tbody>
</table>
templates/design40_webpages/disposition_manager/list_parts.html
[%- USE HTML -%]
[%- USE LxERP -%]
[%- USE L -%]
[%- USE T8 -%]
[%- INCLUDE 'common/flash.html' %]
<div class="wrapper">
<form id="form">
<table class="tbl-list">
<caption>[% 'Short onhand' | $T8 %]</caption>
<thead>
<tr>
<th>
[% L.checkbox_tag('check_all', checkall='[data-checkall=1]') %]
[% 'Purchase basket' | $T8 %]
</th>
<th>[% 'Partnumber' | $T8 %] </th>
<th>[% 'Description' | $T8 %] </th>
<th>[% 'Vendor' | $T8 %] </th>
<th>[% 'Onhand' | $T8 %] </th>
<th>[% 'Rop' | $T8 %] </th>
<th>[% 'Minimum order quantity' | $T8 %] </th>
</tr>
</thead>
[% FOREACH part = PARTS %]
[% IF !part.get_open_ordered_qty %]
<tr>
<td>
[% IF part.makemodels.size %]
[% L.checkbox_tag('ids[+]', 'data-checkall'=1,
checked = '1', value=part.id) %]
[% ELSE %]
[% 'No Vendor' | $T8 %]
[% END %]
</td>
<td>[% HTML.escape(part.partnumber) %]</td>
<td>[% HTML.escape(part.description) %]</td>
<td>[% P.part.vendor_price_dropdown(
'vendor_ids[]', part,
default=part.makemodels.item(0).make,
style='width: 350px;'
) %]
</td>
<td class="numeric">[% LxERP.format_amount(part.onhandqty, 2) %]</td>
<td class="numeric">[% part.rop_as_number %]</td>
<td class="numeric">[% part.order_qty_as_number %]</td>
</tr>
[% END %]
[% END %]
</table>
</form>
</div>
templates/design40_webpages/disposition_manager/reorder_level_list/report_bottom.html
[% USE L %]
[%- L.paginate_controls(models=SELF.models) %]
templates/design40_webpages/disposition_manager/show_purchase_basket.html
[%- USE HTML -%]
[%- USE LxERP -%]
[%- USE L -%]
[%- USE T8 -%]
[%- USE P -%]
[%- INCLUDE 'common/flash.html' %]
<h1>[% title %]</h1>
<form id="purchasebasket">
<div class="wrapper" id="wrapper-1">
[% INCLUDE 'generic/toggle_wrapper.html' %]
<div class="col">
<table class="tbl-horizontal">
<caption>[% 'Vendor' | $T8 %]</caption>
<tbody>
<tr>
<td>[% P.customer_vendor.picker('vendor_id2', FORM.vendor_id2, type='vendor') %]</td>
</tr>
</tbody>
</table>
</div>
</div><!-- /.wrapper -->
<div class="wrapper">
<table id="baskettable" class="tbl-list">
<caption>[% 'Purchase basket' | $T8 %]</caption>
<thead>
<tr>
<th>
[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]
[% 'Purchase basket' | $T8 %]
</th>
<th>[% 'Partnumber' | $T8 %] </th>
<th>[% 'Description' | $T8 %] </th>
<th>[% 'Onhand' | $T8 %] </th>
<th>[% 'Rop' | $T8 %] </th>
<th>[% 'Order quantity' | $T8 %] </th>
<th>[% 'Vendor' | $T8 %] </th>
</tr>
</thead>
<tbody>
[% FOREACH basket_item = BASKET_ITEMS %]
<tr>
<td>[% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1', value=basket_item.id) %] [% HTML.escape(basket_item.part.partsgroup.partsgroup) %]
[% L.hidden_tag('partsgroup_ids[]', basket_item.part.partsgroup_id ) %]
</td>
<td> [% basket_item.part.presenter.part(target = '_blank') %]
[% P.button_tag(
"kivi.DispositionManager.show_detail_dialog("
_ basket_item.part.id _ "," _ basket_item.part.partnumber _
")",
LxERP.t8('Details (one letter abbreviation)'),
title=LxERP.t8('Article details'), class="button") %]
</td>
<td>[% HTML.escape(basket_item.part.description) %]</td>
<td class="numeric">[% basket_item.part.onhand_as_number %]</td>
<td class="numeric">[% basket_item.part.rop_as_number %]</td>
<td class="numeric">[% basket_item.qty_as_number %]</td>
<td>[% P.part.vendor_price_dropdown(
'vendor_ids[]', basket_item.part,
default=basket_item.part.makemodels.item(0).make,
style='width: 350px;'
) %]
</td>
</tr>
[% END %]
</tbody>
</table>
</div>
<div id="vendor_parts" class="wrapper"></div>
</form>
<script type="text/javascript">
<!--
$('#vendor_id2').change('set_item:CustomerVendorPicker', function(e,o) {
kivi.DispositionManager.sort_vendors();
})
-->
</script>

Auch abrufbar als: Unified diff