columns => [
id => { type => 'integer', not_null => 1, sequence => 'id' },
- name => { type => 'varchar', length => 75, not_null => 1 },
+ name => { type => 'text', not_null => 1 },
department_1 => { type => 'varchar', length => 75 },
department_2 => { type => 'varchar', length => 75 },
street => { type => 'varchar', length => 75 },
zipcode => { type => 'varchar', length => 10 },
city => { type => 'varchar', length => 75 },
country => { type => 'varchar', length => 75 },
- contact => { type => 'varchar', length => 75 },
+ contact => { type => 'text' },
phone => { type => 'varchar', length => 30 },
fax => { type => 'varchar', length => 30 },
homepage => { type => 'text' },
bcc => { type => 'text' },
business_id => { type => 'integer' },
taxnumber => { type => 'text' },
- account_number => { type => 'varchar', length => 15 },
- bank_code => { type => 'varchar', length => 10 },
+ account_number => { type => 'text' },
+ bank_code => { type => 'text' },
bank => { type => 'text' },
language => { type => 'varchar', length => 5 },
datevexport => { type => 'integer' },
payment_id => { type => 'integer' },
taxzone_id => { type => 'integer', default => '0', not_null => 1 },
greeting => { type => 'text' },
- ustid => { type => 'varchar', length => 14 },
- direct_debit => { type => 'boolean', default => 'false' },
+ ustid => { type => 'text' },
iban => { type => 'varchar', length => 100 },
bic => { type => 'varchar', length => 100 },
+ direct_debit => { type => 'boolean', default => 'false' },
],
primary_key_columns => [ 'id' ],
fxloss_accno_id => { type => 'integer' },
invnumber => { type => 'text' },
sonumber => { type => 'text' },
- yearend => { type => 'varchar', length => 5 },
weightunit => { type => 'varchar', length => 5 },
businessnumber => { type => 'text' },
version => { type => 'varchar', length => 8 },
dunning_ar => { type => 'integer' },
pdonumber => { type => 'text' },
sdonumber => { type => 'text' },
+ ar_paid_accno_id => { type => 'integer' },
id => { type => 'serial', not_null => 1 },
],
is_sales => { type => 'boolean' },
itime => { type => 'timestamp', default => 'now()' },
mtime => { type => 'timestamp' },
- notes_bottom => { type => 'text' },
taxzone_id => { type => 'integer' },
taxincluded => { type => 'boolean' },
terms => { type => 'integer' },
storno_id => { type => 'integer' },
marge_total => { type => 'numeric', precision => 5, scale => 15 },
marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- notes_bottom => { type => 'text' },
donumber => { type => 'text' },
],
table => 'makemodel',
columns => [
- parts_id => { type => 'integer' },
- model => { type => 'text' },
- itime => { type => 'timestamp', default => 'now()' },
- mtime => { type => 'timestamp' },
- make => { type => 'integer' },
- id => { type => 'serial', not_null => 1 },
+ parts_id => { type => 'integer' },
+ model => { type => 'text' },
+ itime => { type => 'timestamp', default => 'now()' },
+ mtime => { type => 'timestamp' },
+ lastcost => { type => 'numeric', precision => 5, scale => 15 },
+ lastupdate => { type => 'date' },
+ sortorder => { type => 'integer' },
+ make => { type => 'integer' },
+ id => { type => 'serial', not_null => 1 },
],
primary_key_columns => [ 'id' ],
transaction_description => { type => 'text' },
marge_total => { type => 'numeric', precision => 5, scale => 15 },
marge_percent => { type => 'numeric', precision => 5, scale => 15 },
- notes_bottom => { type => 'text' },
- project_manager_id => { type => 'integer' },
],
primary_key_columns => [ 'id' ],
key_columns => { globalproject_id => 'id' },
},
- project_manager => {
- class => 'SL::DB::Employee',
- key_columns => { project_manager_id => 'id' },
- },
-
salesman => {
class => 'SL::DB::Employee',
key_columns => { salesman_id => 'id' },
globalproject_id => { type => 'integer' },
transaction_description => { type => 'text' },
storno_id => { type => 'integer' },
- notes_bottom => { type => 'text' },
],
primary_key_columns => [ 'id' ],
executed => { type => 'boolean', default => 'false' },
closed => { type => 'boolean', default => 'false' },
itime => { type => 'timestamp', default => 'now()' },
+ vc => { type => 'varchar', length => 10 },
],
primary_key_columns => [ 'id' ],
columns => [
id => { type => 'integer', not_null => 1, sequence => 'id' },
sepa_export_id => { type => 'integer', not_null => 1 },
- ap_id => { type => 'integer', not_null => 1 },
+ ap_id => { type => 'integer' },
chart_id => { type => 'integer', not_null => 1 },
amount => { type => 'numeric', precision => 5, scale => 25 },
reference => { type => 'varchar', length => 35 },
execution_date => { type => 'date' },
our_iban => { type => 'varchar', length => 100 },
our_bic => { type => 'varchar', length => 100 },
- vendor_iban => { type => 'varchar', length => 100 },
- vendor_bic => { type => 'varchar', length => 100 },
+ vc_iban => { type => 'varchar', length => 100 },
+ vc_bic => { type => 'varchar', length => 100 },
end_to_end_id => { type => 'varchar', length => 35 },
+ ar_id => { type => 'integer' },
],
primary_key_columns => [ 'id' ],
key_columns => { ap_id => 'id' },
},
+ ar => {
+ class => 'SL::DB::Invoice',
+ key_columns => { ar_id => 'id' },
+ },
+
chart => {
class => 'SL::DB::Chart',
key_columns => { chart_id => 'id' },
mtime => { type => 'timestamp' },
module => { type => 'text' },
shipto_id => { type => 'integer', not_null => 1, sequence => 'id' },
+ shiptocp_gender => { type => 'text' },
],
primary_key_columns => [ 'shipto_id' ],
print <<EOT;
<link rel="stylesheet" href="css/jquery.autocomplete.css" type="text/css" />
<meta name="robots" content="noindex,nofollow" />
- <script type="text/javascript" src="js/highlight_input.js"></script>
<link rel="stylesheet" type="text/css" href="css/tabcontent.css" />
<script type="text/javascript" src="js/tabcontent.js">