Revision 03d66bba
Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
22 | 22 |
|
23 | 23 |
use SL::Helper::CreatePDF qw(:all); |
24 | 24 |
use SL::Helper::PrintOptions; |
25 |
use SL::Helper::ShippedQty; |
|
25 | 26 |
|
26 | 27 |
use SL::Controller::Helper::GetModels; |
27 | 28 |
|
... | ... | |
1466 | 1467 |
$item->active_discount_source($price_source->discount_from_source($item->active_discount_source)); |
1467 | 1468 |
} |
1468 | 1469 |
|
1470 |
if (any { $self->type eq $_ } (sales_order_type(), purchase_order_type())) { |
|
1471 |
# calculate shipped qtys here to prevent calling calculate for every item via the items method |
|
1472 |
SL::Helper::ShippedQty->new->calculate($self->order)->write_to_objects; |
|
1473 |
} |
|
1474 |
|
|
1469 | 1475 |
if ($self->order->number && $::instance_conf->get_webdav) { |
1470 | 1476 |
my $webdav = SL::Webdav->new( |
1471 | 1477 |
type => $self->type, |
templates/webpages/order/tabs/_row.html | ||
---|---|---|
48 | 48 |
[%- END -%] |
49 | 49 |
[%- L.button_tag("kivi.Order.show_longdescription_dialog(this)", LxERP.t8("L")) %] |
50 | 50 |
</td> |
51 |
[%- IF (TYPE == "sales_order" || TYPE == "purchase_order") -%] |
|
52 |
<td nowrap> |
|
53 |
[%- L.div_tag(LxERP.format_amount(ITEM.shipped_qty, 2, 0) _ ' ' _ ITEM.unit, name="shipped_qty", class="numeric") %] |
|
54 |
</td> |
|
55 |
[%- END -%] |
|
51 | 56 |
<td nowrap> |
52 | 57 |
[%- L.input_tag("order.orderitems[].qty_as_number", |
53 | 58 |
ITEM.qty_as_number, |
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
212 | 212 |
<th id="partnumber_header_id" class="listheading" nowrap width="15"><a href='#' onClick='javascript:kivi.Order.reorder_items("partnumber")'> [%- 'Partnumber' | $T8 %]</a></th> |
213 | 213 |
<th id="partclass_header_id" class="listheading" nowrap width="2">[%- 'Type' | $T8 %]</th> |
214 | 214 |
<th id="description_header_id" class="listheading" nowrap ><a href='#' onClick='javascript:kivi.Order.reorder_items("description")'>[%- 'Description' | $T8 %]</a></th> |
215 |
[%- IF (SELF.type == "sales_order" || SELF.type == "purchase_order") -%] |
|
216 |
<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> |
|
217 |
[%- END -%] |
|
215 | 218 |
<th id="qty_header_id" class="listheading" nowrap width="5" ><a href='#' onClick='javascript:kivi.Order.reorder_items("qty")'> [%- 'Qty' | $T8 %]</a></th> |
216 | 219 |
<th class="listheading" nowrap width="5" >[%- 'Price Factor' | $T8 %] </th> |
217 | 220 |
<th class="listheading" nowrap width="5" >[%- 'Unit' | $T8 %] </th> |
Auch abrufbar als: Unified diff
Auftrags-Controller: gelieferte Menge in Auftragsposition anzeigen.