Implemented a bank deposit routine, to transfer funds out of the till and into the bank.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@196 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-01 11:10:57 +00:00
parent 44df78e69f
commit 8d87a0698c
6 changed files with 316 additions and 19 deletions

View File

@@ -838,7 +838,9 @@ CREATE TABLE `pmgr_accounts` (
-- For LIABILITY, EQUITY, and INCOME, the opposite
-- is true, with reconciliations posted, under
-- normal circumstances, when a debit occurs.
`trackable` INT UNSIGNED DEFAULT 1,
`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?
-- Security Level
`level` INT UNSIGNED DEFAULT 1,
@@ -853,23 +855,23 @@ CREATE TABLE `pmgr_accounts` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
LOCK TABLES `pmgr_accounts` WRITE;
INSERT INTO `pmgr_accounts` (`type`, `name`, `trackable`)
INSERT INTO `pmgr_accounts` (`type`, `name`, `tillable`, `depositable`)
VALUES
('ASSET', 'A/R', 1),
('ASSET', 'Invoice', 1),
('ASSET', 'Receipt', 1),
('LIABILITY', 'A/P', 1),
('LIABILITY', 'Tax', 1),
('LIABILITY', 'Customer Credit', 1),
('ASSET', 'Bank', 1),
('ASSET', 'Cash', 1),
('ASSET', 'Check', 1),
('ASSET', 'Money Order', 1),
('LIABILITY', 'Security Deposit', 1),
('INCOME', 'Rent', 1),
('INCOME', 'Late Charge', 1),
('EXPENSE', 'Concession', 1),
('EXPENSE', 'Bad Debt', 1);
('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', '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);
UNLOCK TABLES;