Revision 56803dc2
Von Moritz Bunkus vor mehr als 8 Jahren hinzugefügt
SL/Controller/CsvImport/Part.pm | ||
---|---|---|
480 | 480 |
my ($self) = @_; |
481 | 481 |
|
482 | 482 |
my $profile = $self->SUPER::init_profile; |
483 |
delete @{$profile}{qw(alternate assembly bom expense_accno_id income_accno_id inventory_accno_id makemodel priceupdate stockable type)};
|
|
483 |
delete @{$profile}{qw(assembly bom expense_accno_id income_accno_id inventory_accno_id makemodel priceupdate stockable type)}; |
|
484 | 484 |
|
485 | 485 |
$profile->{"pricegroup_$_"} = '' for 1 .. scalar @{ $_[0]->all_pricegroups }; |
486 | 486 |
|
SL/DB/MetaSetup/Part.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('parts'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
alternate => { type => 'boolean', default => 'false' }, |
|
13 | 12 |
assembly => { type => 'boolean', default => 'false' }, |
14 | 13 |
bin_id => { type => 'integer' }, |
15 | 14 |
bom => { type => 'boolean', default => 'false' }, |
SL/IC.pm | ||
---|---|---|
327 | 327 |
partnumber = ?, |
328 | 328 |
description = ?, |
329 | 329 |
makemodel = ?, |
330 |
alternate = 'f', |
|
331 | 330 |
assembly = ?, |
332 | 331 |
listprice = ?, |
333 | 332 |
sellprice = ?, |
sql/Pg-upgrade2/remove_alternate_from_parts.sql | ||
---|---|---|
1 |
-- @tag: remove_alternate_from_parts |
|
2 |
-- @description: Veraltete Spalte »alternate« aus Tabelle »parts« entfernen |
|
3 |
-- @depends: release_3_4_1 |
|
4 |
ALTER TABLE parts DROP COLUMN alternate; |
templates/webpages/ic/form_header.html | ||
---|---|---|
12 | 12 |
<input name="item" type="hidden" value="[% HTML.escape(item) %]"> |
13 | 13 |
<input name="title" type="hidden" value="[% HTML.escape(title) %]"> |
14 | 14 |
<input name="makemodel" type="hidden" value="[% HTML.escape(makemodel) %]"> |
15 |
<input name="alternate" type="hidden" value="[% HTML.escape(alternate) %]"> |
|
16 | 15 |
<input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]"> |
17 | 16 |
<input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]"> |
18 | 17 |
<input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]"> |
Auch abrufbar als: Unified diff
nicht benutzte Spalte parts.alternate entfernen