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