my ($self) = @_;
my $profile = $self->SUPER::init_profile;
- delete @{$profile}{qw(alternate assembly bom expense_accno_id income_accno_id inventory_accno_id makemodel priceupdate stockable type)};
+ delete @{$profile}{qw(assembly bom expense_accno_id income_accno_id inventory_accno_id makemodel priceupdate stockable type)};
$profile->{"pricegroup_$_"} = '' for 1 .. scalar @{ $_[0]->all_pricegroups };
__PACKAGE__->meta->table('parts');
__PACKAGE__->meta->columns(
- alternate => { type => 'boolean', default => 'false' },
assembly => { type => 'boolean', default => 'false' },
bin_id => { type => 'integer' },
bom => { type => 'boolean', default => 'false' },
partnumber = ?,
description = ?,
makemodel = ?,
- alternate = 'f',
assembly = ?,
listprice = ?,
sellprice = ?,
--- /dev/null
+-- @tag: remove_alternate_from_parts
+-- @description: Veraltete Spalte »alternate« aus Tabelle »parts« entfernen
+-- @depends: release_3_4_1
+ALTER TABLE parts DROP COLUMN alternate;
<input name="item" type="hidden" value="[% HTML.escape(item) %]">
<input name="title" type="hidden" value="[% HTML.escape(title) %]">
<input name="makemodel" type="hidden" value="[% HTML.escape(makemodel) %]">
- <input name="alternate" type="hidden" value="[% HTML.escape(alternate) %]">
<input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]">
<input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]">
<input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]">