class => 'SL::DB::Assembly',
column_map => { id => 'id' },
},
- partsgroup => {
- type => 'one to one',
- class => 'SL::DB::PartsGroup',
- column_map => { partsgroup_id => 'id' },
- },
- price_factor => {
- type => 'one to one',
- class => 'SL::DB::PriceFactor',
- column_map => { price_factor_id => 'id' },
- },
prices => {
type => 'one to many',
class => 'SL::DB::Price',
sub _before_save_set_partnumber {
my ($self) = @_;
- $self->create_trans_number if $self->partnumber eq '';
+ $self->create_trans_number if !$self->partnumber;
return 1;
}
SL::DB::InvoiceItem
SL::DB::OrderItem
SL::DB::Inventory
- SL::DB::RMAItem
);
for my $class (@relations) {