Revision 0b20f337
Von Bernd Bleßmann vor etwa 8 Jahren hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
864 | 864 |
|
865 | 865 |
$item->assign_attributes(%$attr); |
866 | 866 |
$item->longdescription($item->part->notes) if $is_new && !defined $attr->{longdescription}; |
867 |
$item->project_id($record->globalproject_id) if $is_new && !defined $attr->{project_id}; |
|
867 | 868 |
# item fields that currently can't be set in in row but are needed: |
868 | 869 |
$item->lastcost($item->part->lastcost) if $is_new; |
869 | 870 |
|
... | ... | |
921 | 922 |
$new_attr{active_discount_source} = $discount_src; |
922 | 923 |
|
923 | 924 |
$new_attr{longdescription} = $part->notes if ! defined $attr->{longdescription}; |
925 |
$new_attr{project_id} = $record->globalproject_id; |
|
924 | 926 |
|
925 | 927 |
# add_custom_variables adds cvars to an orderitem with no cvars for saving, but |
926 | 928 |
# they cannot be retrieved via custom_variables until the order/orderitem is |
templates/webpages/order/tabs/_second_row.html | ||
---|---|---|
7 | 7 |
<tr> |
8 | 8 |
<th>[%- 'Serial No.' | $T8 %]</th> |
9 | 9 |
<td>[%- L.input_tag("order.orderitems[].serialnumber", ITEM.serialnumber, size = 15) %]</td> |
10 |
<th>[%- 'Project' | $T8 %]</th> |
|
11 |
<td>[% L.project_picker("order.orderitems[].project_id", ITEM.project_id, size = 15) %]</td> |
|
10 | 12 |
<th>[%- 'Reqdate' | $T8 %]</th> |
11 | 13 |
<td>[% L.date_tag("order.orderitems[].reqdate", ITEM.reqdate) %]</td> |
12 | 14 |
<th>[%- 'Subtotal' | $T8 %]</th> |
Auch abrufbar als: Unified diff
Auftrags-Controller: Projektnummer in zweiter Zeile