Added a flag to accounts, indicating whether they can be used for charges and/or payments. Invoice has already switch to this mechanism, but we're keeping receipt the same for now since I have bigger fish to fry.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@247 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -842,6 +842,8 @@ CREATE TABLE `pmgr_accounts` (
|
||||
`trackable` TINYINT(1) UNSIGNED NOT NULL DEFAULT 1,
|
||||
`tillable` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, -- Does manager collect by hand?
|
||||
`depositable` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, -- Does this account receive deposits?
|
||||
`chargeable` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, -- Can be used for charges?
|
||||
`payable` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, -- Can be used for payments?
|
||||
|
||||
-- Security Level
|
||||
`level` INT UNSIGNED DEFAULT 1,
|
||||
@@ -856,24 +858,24 @@ CREATE TABLE `pmgr_accounts` (
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
LOCK TABLES `pmgr_accounts` WRITE;
|
||||
INSERT INTO `pmgr_accounts` (`type`, `name`, `tillable`, `depositable`)
|
||||
INSERT INTO `pmgr_accounts` (`type`, `name`, `tillable`, `depositable`, `chargeable`, `payable`)
|
||||
VALUES
|
||||
('ASSET', 'A/R', 0, 0),
|
||||
('ASSET', 'Invoice', 0, 0),
|
||||
('ASSET', 'Receipt', 0, 0),
|
||||
('LIABILITY', 'A/P', 0, 0),
|
||||
('LIABILITY', 'Tax', 0, 0),
|
||||
('LIABILITY', 'Customer Credit', 0, 0),
|
||||
('ASSET', 'Petty Cash', 0, 0),
|
||||
('ASSET', 'Bank', 0, 1),
|
||||
('ASSET', 'Cash', 1, 0),
|
||||
('ASSET', 'Check', 1, 0),
|
||||
('ASSET', 'Money Order', 1, 0),
|
||||
('LIABILITY', 'Security Deposit', 0, 0),
|
||||
('INCOME', 'Rent', 0, 0),
|
||||
('INCOME', 'Late Charge', 0, 0),
|
||||
('EXPENSE', 'Concession', 0, 0),
|
||||
('EXPENSE', 'Bad Debt', 0, 0);
|
||||
('ASSET', 'A/R', 0, 0, 0, 0),
|
||||
('ASSET', 'Invoice', 0, 0, 0, 0),
|
||||
('ASSET', 'Receipt', 0, 0, 0, 0),
|
||||
('LIABILITY', 'A/P', 0, 0, 0, 0),
|
||||
('LIABILITY', 'Tax', 0, 0, 1, 0),
|
||||
('LIABILITY', 'Customer Credit', 0, 0, 1, 1),
|
||||
('ASSET', 'Petty Cash', 0, 0, 0, 0),
|
||||
('ASSET', 'Bank', 0, 1, 0, 0),
|
||||
('ASSET', 'Cash', 1, 0, 0, 0),
|
||||
('ASSET', 'Check', 1, 0, 0, 0),
|
||||
('ASSET', 'Money Order', 1, 0, 0, 0),
|
||||
('LIABILITY', 'Security Deposit', 0, 0, 1, 1),
|
||||
('INCOME', 'Rent', 0, 0, 1, 0),
|
||||
('INCOME', 'Late Charge', 0, 0, 1, 0),
|
||||
('EXPENSE', 'Concession', 0, 0, 0, 1),
|
||||
('EXPENSE', 'Bad Debt', 0, 0, 0, 1);
|
||||
UNLOCK TABLES;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user