1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::InvoiceItem;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->setup(
13 id => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
14 trans_id => { type => 'integer' },
15 parts_id => { type => 'integer' },
16 description => { type => 'text' },
17 qty => { type => 'float', precision => 4 },
18 allocated => { type => 'float', precision => 4 },
19 sellprice => { type => 'numeric', precision => 5, scale => 15 },
20 fxsellprice => { type => 'numeric', precision => 5, scale => 15 },
21 discount => { type => 'float', precision => 4 },
22 assemblyitem => { type => 'boolean', default => 'false' },
23 project_id => { type => 'integer' },
24 deliverydate => { type => 'date' },
25 serialnumber => { type => 'text' },
26 itime => { type => 'timestamp', default => 'now()' },
27 mtime => { type => 'timestamp' },
28 pricegroup_id => { type => 'integer' },
29 ordnumber => { type => 'text' },
30 transdate => { type => 'text' },
31 cusordnumber => { type => 'text' },
32 unit => { type => 'varchar', length => 20 },
33 base_qty => { type => 'float', precision => 4 },
34 subtotal => { type => 'boolean', default => 'false' },
35 longdescription => { type => 'text' },
36 marge_total => { type => 'numeric', precision => 5, scale => 15 },
37 marge_percent => { type => 'numeric', precision => 5, scale => 15 },
38 lastcost => { type => 'numeric', precision => 5, scale => 15 },
39 price_factor_id => { type => 'integer' },
40 price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
41 marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
44 primary_key_columns => [ 'id' ],
46 allow_inline_column_values => 1,
50 class => 'SL::DB::Part',
51 key_columns => { parts_id => 'id' },