Revision 03d66bba
Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
|
||
use SL::Helper::CreatePDF qw(:all);
|
||
use SL::Helper::PrintOptions;
|
||
use SL::Helper::ShippedQty;
|
||
|
||
use SL::Controller::Helper::GetModels;
|
||
|
||
... | ... | |
$item->active_discount_source($price_source->discount_from_source($item->active_discount_source));
|
||
}
|
||
|
||
if (any { $self->type eq $_ } (sales_order_type(), purchase_order_type())) {
|
||
# calculate shipped qtys here to prevent calling calculate for every item via the items method
|
||
SL::Helper::ShippedQty->new->calculate($self->order)->write_to_objects;
|
||
}
|
||
|
||
if ($self->order->number && $::instance_conf->get_webdav) {
|
||
my $webdav = SL::Webdav->new(
|
||
type => $self->type,
|
templates/webpages/order/tabs/_row.html | ||
---|---|---|
[%- END -%]
|
||
[%- L.button_tag("kivi.Order.show_longdescription_dialog(this)", LxERP.t8("L")) %]
|
||
</td>
|
||
[%- IF (TYPE == "sales_order" || TYPE == "purchase_order") -%]
|
||
<td nowrap>
|
||
[%- L.div_tag(LxERP.format_amount(ITEM.shipped_qty, 2, 0) _ ' ' _ ITEM.unit, name="shipped_qty", class="numeric") %]
|
||
</td>
|
||
[%- END -%]
|
||
<td nowrap>
|
||
[%- L.input_tag("order.orderitems[].qty_as_number",
|
||
ITEM.qty_as_number,
|
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
<th id="partnumber_header_id" class="listheading" nowrap width="15"><a href='#' onClick='javascript:kivi.Order.reorder_items("partnumber")'> [%- 'Partnumber' | $T8 %]</a></th>
|
||
<th id="partclass_header_id" class="listheading" nowrap width="2">[%- 'Type' | $T8 %]</th>
|
||
<th id="description_header_id" class="listheading" nowrap ><a href='#' onClick='javascript:kivi.Order.reorder_items("description")'>[%- 'Description' | $T8 %]</a></th>
|
||
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%]
|
||
<th id="shipped_qty_header_id" class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.Order.reorder_items("shipped_qty")'>[%- 'Delivered' | $T8 %]</a></th>
|
||
[%- END -%]
|
||
<th id="qty_header_id" class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.Order.reorder_items("qty")'> [%- 'Qty' | $T8 %]</a></th>
|
||
<th class="listheading" nowrap width="5" >[%- 'Price Factor' | $T8 %] </th>
|
||
<th class="listheading" nowrap width="5" >[%- 'Unit' | $T8 %] </th>
|
Auch abrufbar als: Unified diff
Auftrags-Controller: gelieferte Menge in Auftragsposition anzeigen.