- amount => { type => 'numeric', precision => 5, scale => 15 },
+ amount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
+ billing_address_id => { type => 'integer' },
cp_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
cusordnumber => { type => 'text' },
customer_id => { type => 'integer' },
datepaid => { type => 'date' },
delivery_customer_id => { type => 'integer' },
cp_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
cusordnumber => { type => 'text' },
customer_id => { type => 'integer' },
datepaid => { type => 'date' },
delivery_customer_id => { type => 'integer' },
delivery_vendor_id => { type => 'integer' },
deliverydate => { type => 'date' },
department_id => { type => 'integer' },
delivery_vendor_id => { type => 'integer' },
deliverydate => { type => 'date' },
department_id => { type => 'integer' },
invoice => { type => 'boolean', default => 'false' },
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
invoice => { type => 'boolean', default => 'false' },
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
- marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- marge_total => { type => 'numeric', precision => 5, scale => 15 },
+ marge_percent => { type => 'numeric', precision => 15, scale => 5 },
+ marge_total => { type => 'numeric', precision => 15, scale => 5 },
- netamount => { type => 'numeric', precision => 5, scale => 15 },
+ netamount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
notes => { type => 'text' },
orddate => { type => 'date' },
ordnumber => { type => 'text' },
notes => { type => 'text' },
orddate => { type => 'date' },
ordnumber => { type => 'text' },
- paid => { type => 'numeric', precision => 5, scale => 15 },
+ paid => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
payment_id => { type => 'integer' },
quodate => { type => 'date' },
quonumber => { type => 'text' },
payment_id => { type => 'integer' },
quodate => { type => 'date' },
quonumber => { type => 'text' },
shipvia => { type => 'text' },
storno => { type => 'boolean', default => 'false' },
storno_id => { type => 'integer' },
shipvia => { type => 'text' },
storno => { type => 'boolean', default => 'false' },
storno_id => { type => 'integer' },
- taxzone_id => { type => 'integer' },
- terms => { type => 'integer', default => '0' },
+ taxzone_id => { type => 'integer', not_null => 1 },
transaction_description => { type => 'text' },
transdate => { type => 'date', default => 'now' },
type => { type => 'text' },
transaction_description => { type => 'text' },
transdate => { type => 'date', default => 'now' },
type => { type => 'text' },
contact => {
class => 'SL::DB::Contact',
key_columns => { cp_id => 'cp_id' },
contact => {
class => 'SL::DB::Contact',
key_columns => { cp_id => 'cp_id' },
department => {
class => 'SL::DB::Department',
key_columns => { department_id => 'id' },
department => {
class => 'SL::DB::Department',
key_columns => { department_id => 'id' },
class => 'SL::DB::Invoice',
key_columns => { storno_id => 'id' },
},
class => 'SL::DB::Invoice',
key_columns => { storno_id => 'id' },
},