Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
Warning: mysql_query() expects parameter 2 to be resource, null given in /srv/www/htdocs/vicidial/domedan_leaderboard.php on line 506 Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in /srv/www/htdocs/vicidial/domedan_leaderboard.php on line 507 Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/vicidial/domedan_leaderboard.php on line 601 Warning: asort() expects parameter 1 to be array, null given in /srv/www/htdocs/vicidial/domedan_leaderboard.php on line 647 Warning: array_reverse() expects parameter 1 to be array, null given in /srv/www/htdocs/vicidial/domedan_leaderboard.php on line 650 Warning: Invalid argument supplied for foreach() in /srv/www/htdocs/vicidial/domedan_leaderboard.php on line 669 Warning: array_sum
DomeDan wrote:Its not really a copy/paste run script, one query joins a table that are not part of vicidial, you should edit it a little.
CREATE TABLE `invoice_types` (
`invoice_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'connection to invoices',
`ledger` varchar(30) COLLATE utf8_unicode_ci NOT NULL COMMENT 'what ledger',
`ledger_state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 = active, 0 = inactive',
`manage_invoices` tinyint(1) NOT NULL DEFAULT '1' COMMENT 'should the system create invoices etc for this ledger, 0 = inactive, 1 = active, 2 = value for special management',
`bank_client_id` varchar(4) COLLATE utf8_unicode_ci NOT NULL COMMENT 'client id this ledger got at the bank',
`bank_account` varchar(20) COLLATE utf8_unicode_ci NOT NULL COMMENT 'bank account to ledger',
`ledger_name` varchar(60) COLLATE utf8_unicode_ci NOT NULL COMMENT 'name printed on the invoice-address',
`ledger_address1` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'address printed on the invoice-address',
`ledger_postal_code` varchar(100) COLLATE utf8_unicode_ci NOT NULL COMMENT 'postal code printed on the invoice-address',
`ledger_city` varchar(50) COLLATE utf8_unicode_ci NOT NULL COMMENT 'city printed on the invoice-address',
`invoice_deadline_days` int(2) DEFAULT NULL COMMENT 'days waiting after invoice is sent (invoice_print_date + invoice_deadline_days = invoice_deadline_date)',
`invoice_deadline_extra_days` int(2) DEFAULT NULL COMMENT 'days waiting when invoice_deadline is reached (days waiting before sending the first reminder)',
`reminder1_fee` int(2) DEFAULT NULL COMMENT 'fee added to invoice amount (invoice_amount + fee = reminder1_amount (sending reminder1 at this step)',
`reminder1_deadline_days` int(2) DEFAULT NULL COMMENT 'days waiting after reminder1 is sent (reminder1_print_date + reminder1_deadline_days = reminder1_deadline_date',
`reminder1_deadline_extra_days` int(2) DEFAULT NULL COMMENT 'days waiting when reminder1_deadline is reached (days waiting before sending the second reminder)',
`reminder2_fee` int(2) DEFAULT NULL COMMENT 'fee added to reminder1 amount (reminder1_amount + fee = reminder2_amount (sending reminder2 at this step)',
`reminder2_deadline_days` int(2) DEFAULT NULL COMMENT 'days waiting after reminder2 is sent (reminder2_print_date + reminder2_deadline_days = reminder2_deadline_date',
`reminder2_deadline_extra_days` int(2) DEFAULT NULL COMMENT 'days waiting when reminder2_deadline is reached (days waiting before sending the third reminder)',
`reminder3_fee` int(2) DEFAULT NULL COMMENT 'fee added to reminder1 amount (reminder1_amount + fee = reminder2_amount (sending reminder3 at this step)',
`reminder3_deadline_days` int(2) DEFAULT NULL COMMENT 'days waiting after reminder3 is sent (reminder3_print_date + reminder3_deadline_days = reminder3_deadline_date',
`reminder3_deadline_extra_days` int(2) DEFAULT NULL COMMENT 'days waiting when reminder3_deadline is reached (days waiting before sending the forth reminder witch were to call the customer)',
`postage_fee` int(2) NOT NULL DEFAULT '0' COMMENT 'price in nok for how much the postage fee is, it is used in some reports',
`description` varchar(35) COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`invoice_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci
Users browsing this forum: No registered users and 25 guests