Revision 2d9aec57
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
868 | 868 |
my $vendor = SL::DB::Manager::Vendor->find_by(id => $makemodel->{make}) || die "Can't find vendor from make"; |
869 | 869 |
|
870 | 870 |
my $id = $makemodels_map->{$makemodel->{id}} ? $makemodels_map->{$makemodel->{id}}->id : undef; |
871 |
my $mm = SL::DB::MakeModel->new( # parts_id => $self->part->id, # will be assigned by row add_makemodels |
|
872 |
id => $id, |
|
873 |
make => $makemodel->{make}, |
|
874 |
model => $makemodel->{model} || '', |
|
871 |
my $mm = SL::DB::MakeModel->new( # parts_id => $self->part->id, # will be assigned by row add_makemodels
|
|
872 |
id => $id,
|
|
873 |
make => $makemodel->{make},
|
|
874 |
model => $makemodel->{model} || '',
|
|
875 | 875 |
part_description => $makemodel->{part_description}, |
876 |
lastcost => $::form->parse_amount(\%::myconfig, $makemodel->{lastcost_as_number}), |
|
877 |
sortorder => $position, |
|
876 |
lastcost => $::form->parse_amount(\%::myconfig, $makemodel->{lastcost_as_number}),
|
|
877 |
sortorder => $position,
|
|
878 | 878 |
); |
879 | 879 |
if ($makemodels_map->{$mm->id} && !$makemodels_map->{$mm->id}->lastupdate && $makemodels_map->{$mm->id}->lastcost == 0 && $mm->lastcost == 0) { |
880 | 880 |
# lastupdate isn't set, original lastcost is 0 and new lastcost is 0 |
templates/webpages/part/_makemodel.html | ||
---|---|---|
14 | 14 |
<th class="listheading">[% 'position' | $T8 %]</th> |
15 | 15 |
<th class="listheading" style='text-align:center' nowrap width="1"><img src="image/updown.png" alt="[%- LxERP.t8('reorder item') %]"></th> |
16 | 16 |
<th class="listheading" style='width:12em'>[% 'Vendor Number' | $T8 %]</th> |
17 |
<th class="listheading">[% 'Vendor' | $T8 %]</th> |
|
18 |
<th class="listheading">[% 'Model' | $T8 %]</th> |
|
17 |
<th class="listheading">[% 'Vendor' | $T8 %]</th>
|
|
18 |
<th class="listheading">[% 'Model' | $T8 %]</th>
|
|
19 | 19 |
<th class="listheading">[% 'Part Description' | $T8 %]</th> |
20 |
<th class="listheading">[% 'Last Cost' | $T8 %]</th> |
|
21 |
<th class="listheading">[% 'Updated' | $T8 %]</th> |
|
20 |
<th class="listheading">[% 'Last Cost' | $T8 %]</th>
|
|
21 |
<th class="listheading">[% 'Updated' | $T8 %]</th>
|
|
22 | 22 |
</tr> |
23 | 23 |
</thead> |
24 | 24 |
<tbody id="makemodel_rows"> |
templates/webpages/part/_makemodel_row.html | ||
---|---|---|
20 | 20 |
<td>[% L.input_tag('makemodels[].model' , makemodel.model , size=30 ) %]</td> |
21 | 21 |
<td>[% L.input_tag('makemodels[].part_description' , makemodel.part_description , size=30 ) %]</td> |
22 | 22 |
<td>[% L.input_tag('makemodels[].lastcost_as_number' , makemodel.lastcost_as_number , size=15 , class="reformat_number numeric") %]</td> |
23 |
<td>[% L.hidden_tag('makemodels[].lastupdate' , makemodel.lastupdate.to_kivitendo) %][% makemodel.lastupdate.to_kivitendo | html %]</td>
|
|
23 |
<td>[% L.hidden_tag('makemodels[].lastupdate' , makemodel.lastupdate.to_kivitendo) %][% makemodel.lastupdate.to_kivitendo | html %]</td> |
|
24 | 24 |
</tr> |
Auch abrufbar als: Unified diff
Kosmetik: Ausrichtung