Revision 36b8f1ec
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/DB/MetaSetup/Invoice.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('ar'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
amount => { type => 'numeric', precision => 15, scale => 5 }, |
|
12 |
amount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
|
|
13 | 13 |
cp_id => { type => 'integer' }, |
14 | 14 |
currency_id => { type => 'integer', not_null => 1 }, |
15 | 15 |
cusordnumber => { type => 'text' }, |
... | ... | |
37 | 37 |
marge_percent => { type => 'numeric', precision => 15, scale => 5 }, |
38 | 38 |
marge_total => { type => 'numeric', precision => 15, scale => 5 }, |
39 | 39 |
mtime => { type => 'timestamp' }, |
40 |
netamount => { type => 'numeric', precision => 15, scale => 5 }, |
|
40 |
netamount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
|
|
41 | 41 |
notes => { type => 'text' }, |
42 | 42 |
orddate => { type => 'date' }, |
43 | 43 |
ordnumber => { type => 'text' }, |
44 |
paid => { type => 'numeric', precision => 15, scale => 5 }, |
|
44 |
paid => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
|
|
45 | 45 |
payment_id => { type => 'integer' }, |
46 | 46 |
quodate => { type => 'date' }, |
47 | 47 |
quonumber => { type => 'text' }, |
Auch abrufbar als: Unified diff
Rechnungen: amount, netamount, paid NOT NULL DEFAULT 0