Compare commits

..

21 Commits

Author SHA1 Message Date
cron
1fcf32b839 property_manager database backup as of 2010_03_11_0106
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@956 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-11 09:06:46 +00:00
cron
197884398d property_manager database backup as of 2010_03_09_0111
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@955 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-09 09:11:51 +00:00
cron
f170b4136d property_manager database backup as of 2010_03_07_0111
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@954 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-07 09:12:01 +00:00
cron
9ade6861e7 property_manager database backup as of 2010_03_05_0111
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@953 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-05 09:12:05 +00:00
cron
73e8df83a2 property_manager database backup as of 2010_03_04_0118
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@952 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-04 09:19:24 +00:00
cron
6363b3d3c1 property_manager database backup as of 2010_03_03_0103
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@951 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-03 09:04:09 +00:00
cron
d28e2a1728 property_manager database backup as of 2010_03_02_1055
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@950 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 18:56:19 +00:00
abijah
396eac6f81 Fixed a routing bug and a customer edit bug
git-svn-id: file:///svn-source/pmgr/tags/v0.2.1@948 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 18:45:29 +00:00
abijah
0a594bb5a9 Merge in db changes from the v0.2.0 release
git-svn-id: file:///svn-source/pmgr/branches/v0.2_work@947 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 18:44:56 +00:00
abijah
b3d43d754b Fixed a bug with customer lease counts after editing the customer.
git-svn-id: file:///svn-source/pmgr/branches/v0.2_work@946 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 18:35:09 +00:00
abijah
a47d5d54b4 Fixed bug which was kicking us out of the dev/sandbox when editing a customer. Actually, seems like more of a workaround for a CakePHP bug, but it's not certain.
git-svn-id: file:///svn-source/pmgr/branches/v0.2_work@945 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 18:05:37 +00:00
abijah
8f5c3031fc Renamed the work branch, since it will be used for bugfix revs as well.
git-svn-id: file:///svn-source/pmgr/branches/v0.2_work@943 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 18:03:11 +00:00
abijah
83bfb8d32d As the database has grown, the statement entry page query has finally ground to a halt. The query was kludged as simple as possible, and it now operates much quicker. A cleaner solution would be nice...
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@936 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-03-02 03:10:54 +00:00
abijah
28817cea38 Removed buttons from the print media
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@914 97e9348a-65ac-dc4b-aefc-98561f571b83
2010-01-15 01:27:44 +00:00
abijah
3dca204ac6 Added the Deposit row to all tenders, not just those that have been deposited. This helps avoid confusion when looking at a non-deposited tender, since one may be trying to figure out whether or not it has been deposited and yet not remember if this is the appropriate screen.
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@900 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-12-09 18:02:00 +00:00
abijah
2fb2e6f5aa Update todo to reflect newly implemented features.
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@875 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-10-09 23:53:39 +00:00
abijah
44def81c81 Merge in from v0.1.0
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@874 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-10-09 23:51:45 +00:00
abijah
3b885e2686 Fixed the problem of client side lease selection breaking the automated rent invoicing tools.
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@872 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-10-09 23:17:46 +00:00
abijah
e162d35d56 Added a more automated mechanism for adding multiple rent charges to an invoice. Also included is a proration tool. This needs more work though, since it relies on server side data from the lease. Selecting a new lease on the client side will cause this change to fail, and so we'll need to add a column for charged-through. Finally, error messages for invoice and receipt were improved slightly to better explain the error.
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@871 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-10-09 22:48:37 +00:00
abijah
3b3ed7a264 Branch to add minor enhancements to v0.1.0
git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@870 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-10-09 19:58:50 +00:00
abijah
9674812e78 Merge in from the v0.1.0 tag, which is a bit of a botch. The intention was to make the change to trunk, then re-label as v0.1.1. However, due to a mixup, this was put directly as the v0.1.0 tag. It isn't good, but the change is small enough we'll live with it this time.
git-svn-id: file:///svn-source/pmgr/trunk@864 97e9348a-65ac-dc4b-aefc-98561f571b83
2009-10-02 15:54:00 +00:00
12 changed files with 855 additions and 232 deletions

View File

@@ -424,7 +424,7 @@ CREATE TABLE `pmgr_contacts` (
`id_local_exp` date DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=92 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=94 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -522,6 +522,8 @@ INSERT INTO `pmgr_contacts` VALUES (88,'Heather',NULL,'Seagle',NULL,'Seagle, Hea
INSERT INTO `pmgr_contacts` VALUES (89,'Donna',NULL,'Fackenthall',NULL,'Fackenthall, Donna',NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_contacts` VALUES (90,'Robert',NULL,'Nevins',NULL,'Nevins, Robert',NULL,NULL,'Wa',NULL,NULL);
INSERT INTO `pmgr_contacts` VALUES (91,'Louisa',NULL,'Burton',NULL,'Burton, Louisa',NULL,'Burtolr465JO','WA',NULL,NULL);
INSERT INTO `pmgr_contacts` VALUES (92,'Duane',NULL,'Hodges',NULL,'Hodges, Duane',NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_contacts` VALUES (93,'Stuart W.',NULL,'Smith',NULL,'Smith, Stuart W.',NULL,'SmithSW421k9','WA',NULL,NULL);
/*!40000 ALTER TABLE `pmgr_contacts` ENABLE KEYS */;
UNLOCK TABLES;
@@ -637,6 +639,8 @@ INSERT INTO `pmgr_contacts_customers` VALUES (88,71,'TENANT',1,NULL);
INSERT INTO `pmgr_contacts_customers` VALUES (89,72,'TENANT',1,NULL);
INSERT INTO `pmgr_contacts_customers` VALUES (90,73,'TENANT',1,NULL);
INSERT INTO `pmgr_contacts_customers` VALUES (91,74,'TENANT',1,NULL);
INSERT INTO `pmgr_contacts_customers` VALUES (92,75,'TENANT',1,NULL);
INSERT INTO `pmgr_contacts_customers` VALUES (93,76,'TENANT',1,NULL);
/*!40000 ALTER TABLE `pmgr_contacts_customers` ENABLE KEYS */;
UNLOCK TABLES;
@@ -792,7 +796,7 @@ CREATE TABLE `pmgr_customers` (
`past_lease_count` smallint(5) unsigned NOT NULL DEFAULT '0',
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=75 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=77 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -820,7 +824,7 @@ INSERT INTO `pmgr_customers` VALUES (16,'Shepard, Larry',22,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (17,'Hastings, Mark',23,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (18,'Garrett, Earnest Al',25,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (19,'Hawk, Kayleen',26,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (20,'Graves, Sharon',27,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (20,'Graves, Sharon',27,2,2,0,NULL);
INSERT INTO `pmgr_customers` VALUES (21,'Follis, Judith',28,2,1,1,NULL);
INSERT INTO `pmgr_customers` VALUES (22,'Witherspoon, Brittany',29,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (23,'McCauley, Rebecca',31,1,0,1,NULL);
@@ -840,7 +844,7 @@ INSERT INTO `pmgr_customers` VALUES (36,'McMahon, Vivian',50,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (37,'Linhoff, Ron',52,4,0,4,NULL);
INSERT INTO `pmgr_customers` VALUES (38,'Hatcher, Ed',53,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (39,'Valley Bible Church',54,3,0,3,NULL);
INSERT INTO `pmgr_customers` VALUES (40,'Hovland, Pamela',55,2,1,1,NULL);
INSERT INTO `pmgr_customers` VALUES (40,'Hovland, Pamela',55,2,1,1,'Auto-Draft customer. Do not draft before the 5th of each month.');
INSERT INTO `pmgr_customers` VALUES (41,'Hooke, R.R.',57,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (42,'Clark, Bill',58,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (43,'Jackson, Shirley',59,1,0,1,NULL);
@@ -874,6 +878,8 @@ INSERT INTO `pmgr_customers` VALUES (71,'Seagle, Heather',88,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (72,'Fackenthall, Donna',89,1,0,1,NULL);
INSERT INTO `pmgr_customers` VALUES (73,'Nevins, Robert',90,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (74,'Burton, Louisa',91,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (75,'Hodges, Duane',92,1,1,0,NULL);
INSERT INTO `pmgr_customers` VALUES (76,'Smith, Stuart W.',93,2,2,0,NULL);
/*!40000 ALTER TABLE `pmgr_customers` ENABLE KEYS */;
UNLOCK TABLES;
@@ -969,7 +975,7 @@ CREATE TABLE `pmgr_double_entries` (
`credit_entry_id` int(10) unsigned NOT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1607 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=1695 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -2512,6 +2518,90 @@ INSERT INTO `pmgr_double_entries` VALUES (1603,3205,3206,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1604,3208,3207,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1605,3209,3210,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1606,3212,3211,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1607,3213,3214,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1608,3216,3215,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1609,3218,3217,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1610,3220,3219,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1611,3222,3221,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1612,3224,3223,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1613,3226,3225,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1614,3228,3227,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1615,3230,3229,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1616,3232,3231,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1617,3234,3233,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1618,3236,3235,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1619,3238,3237,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1620,3240,3239,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1621,3241,3242,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1622,3244,3243,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1623,3246,3245,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1624,3248,3247,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1625,3250,3249,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1626,3251,3252,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1627,3254,3253,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1628,3256,3255,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1629,3258,3257,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1630,3260,3259,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1631,3262,3261,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1632,3264,3263,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1633,3266,3265,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1634,3268,3267,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1635,3270,3269,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1636,3271,3272,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1637,3274,3273,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1638,3276,3275,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1639,3278,3277,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1640,3280,3279,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1641,3282,3281,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1642,3284,3283,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1643,3285,3286,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1644,3288,3287,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1645,3289,3290,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1646,3292,3291,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1647,3293,3294,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1648,3296,3295,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1649,3297,3298,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1650,3300,3299,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1651,3302,3301,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1652,3304,3303,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1653,3306,3305,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1654,3307,3308,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1655,3309,3310,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1656,3311,3312,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1657,3313,3314,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1658,3315,3316,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1659,3317,3318,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1660,3319,3320,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1661,3322,3321,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1662,3324,3323,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1663,3325,3326,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1664,3327,3328,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1665,3329,3330,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1666,3331,3332,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1667,3333,3334,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1668,3335,3336,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1669,3337,3338,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1670,3340,3339,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1671,3342,3341,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1672,3344,3343,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1673,3345,3346,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1674,3348,3347,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1675,3349,3350,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1676,3351,3352,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1677,3353,3354,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1678,3355,3356,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1679,3357,3358,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1680,3359,3360,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1681,3361,3362,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1682,3363,3364,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1687,3373,3374,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1688,3376,3375,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1689,3378,3377,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1690,3380,3379,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1691,3381,3382,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1692,3384,3383,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1693,3386,3385,NULL);
INSERT INTO `pmgr_double_entries` VALUES (1694,3388,3387,NULL);
/*!40000 ALTER TABLE `pmgr_double_entries` ENABLE KEYS */;
UNLOCK TABLES;
@@ -2684,7 +2774,7 @@ CREATE TABLE `pmgr_leases` (
`next_rent_date` date DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=88 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=92 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -2693,46 +2783,46 @@ SET character_set_client = @saved_cs_client;
LOCK TABLES `pmgr_leases` WRITE;
/*!40000 ALTER TABLE `pmgr_leases` DISABLE KEYS */;
INSERT INTO `pmgr_leases` VALUES (1,'1',1,58,34,NULL,'1997-04-04',NULL,'1997-04-04',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',NULL,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (2,'2',1,18,28,NULL,'1999-10-21',NULL,'1999-10-21',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',NULL,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (3,'3',1,5,18,NULL,'2001-06-06',NULL,'2001-06-06',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',NULL,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (4,'4',1,34,33,NULL,'2002-08-05',NULL,'2002-08-05',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',NULL,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (5,'5',1,16,26,NULL,'2002-08-13',NULL,'2002-08-13',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',15.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (1,'1',1,58,34,NULL,'1997-04-04',NULL,'1997-04-04',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',NULL,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (2,'2',1,18,28,NULL,'1999-10-21',NULL,'1999-10-21',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',NULL,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (3,'3',1,5,18,NULL,'2001-06-06',NULL,'2001-06-06',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',NULL,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (4,'4',1,34,33,NULL,'2002-08-05',NULL,'2002-08-05',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',NULL,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (5,'5',1,16,26,NULL,'2002-08-13',NULL,'2002-08-13',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',15.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (6,'6',1,43,5,NULL,'2003-05-19',NULL,'2003-05-19','2009-05-23',NULL,NULL,NULL,'2009-05-23','2009-05-31','2009-05-31',NULL,45.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (7,'7',1,38,3,NULL,'2004-04-01',NULL,'2004-04-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',NULL,45.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (7,'7',1,38,3,NULL,'2004-04-01',NULL,'2004-04-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',NULL,45.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (8,'8',1,8,21,NULL,'2004-04-03',NULL,'2004-04-03','2009-05-29',NULL,NULL,NULL,'2009-05-29','2009-05-31','2009-05-31',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (9,'9',1,37,2,NULL,'2004-07-02',NULL,'2004-07-02',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',NULL,49.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (9,'9',1,37,2,NULL,'2004-07-02',NULL,'2004-07-02',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',NULL,49.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (10,'10',1,10,23,NULL,'2005-06-18',NULL,'2005-06-18','2009-06-24',NULL,NULL,NULL,'2009-06-24','2009-06-30','2009-06-30',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (11,'11',1,1,15,NULL,'2005-08-24',NULL,'2005-08-24',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (11,'11',1,1,15,NULL,'2005-08-24',NULL,'2005-08-24',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (12,'12',1,53,13,NULL,'2005-11-21',NULL,'2005-11-21','2009-05-31',NULL,NULL,NULL,'2009-05-31','2009-05-31','2009-05-31',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (13,'13',1,2,16,NULL,'2006-02-27',NULL,'2006-02-27','2009-04-18',NULL,NULL,NULL,'2009-04-18','2009-04-30','2009-04-30',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (14,'14',1,28,32,NULL,'2006-04-15',NULL,'2006-04-15',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,80.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (15,'15',1,19,29,NULL,'2006-04-17',NULL,'2006-04-17',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (16,'16',1,47,8,NULL,'2006-04-29',NULL,'2006-04-29',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,63.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (14,'14',1,28,32,NULL,'2006-04-15',NULL,'2006-04-15',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,80.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (15,'15',1,19,29,NULL,'2006-04-17',NULL,'2006-04-17',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (16,'16',1,47,8,NULL,'2006-04-29',NULL,'2006-04-29',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,63.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (17,'17',1,17,27,NULL,'2006-10-20',NULL,'2006-10-20','2009-06-02',NULL,NULL,NULL,'2009-06-02','2009-05-31','2009-05-31',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (18,'18',1,4,17,NULL,'2007-03-09',NULL,'2007-03-09',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (18,'18',1,4,17,NULL,'2007-03-09',NULL,'2007-03-09',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (19,'19',1,42,4,NULL,'2007-06-01',NULL,'2007-06-01','2009-11-30',NULL,NULL,NULL,'2009-12-03',NULL,'2009-11-30',25.00,49.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (20,'20',1,51,11,NULL,'2007-11-15',NULL,'2007-11-15',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',NULL,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (21,'21',1,7,20,NULL,'2008-01-05',NULL,'2008-01-05',NULL,NULL,NULL,NULL,NULL,'2010-06-30','2010-06-30',NULL,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (22,'22',1,15,25,NULL,'2008-03-01',NULL,'2008-03-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (23,'23',1,59,35,NULL,'2008-03-20',NULL,'2008-03-20',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (21,'21',1,7,20,NULL,'2008-01-05',NULL,'2008-01-05',NULL,NULL,NULL,NULL,NULL,NULL,'2010-03-31',NULL,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (22,'22',1,15,25,NULL,'2008-03-01',NULL,'2008-03-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (23,'23',1,59,35,NULL,'2008-03-20',NULL,'2008-03-20',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (24,'24',1,62,38,NULL,'2008-04-09',NULL,'2008-04-09','2009-08-30',NULL,NULL,NULL,'2009-08-30','2009-08-31','2009-08-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (25,'25',1,50,10,NULL,'2008-05-27',NULL,'2008-05-27',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (25,'25',1,50,10,NULL,'2008-05-27',NULL,'2008-05-27',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (26,'26',1,24,30,NULL,'2008-06-18',NULL,'2008-06-18','2009-05-31',NULL,NULL,NULL,'2009-05-31','2009-05-31','2009-05-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (27,'27',1,9,22,NULL,'2008-07-07',NULL,'2008-07-07','2009-04-29',NULL,NULL,NULL,'2009-04-29','2009-04-30','2009-04-30',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (28,'28',1,56,14,NULL,'2008-07-26',NULL,'2008-07-26','2009-04-28',NULL,NULL,NULL,'2009-04-28','2009-04-30','2009-04-30',25.00,60.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (29,'29',1,70,40,NULL,'2008-08-04',NULL,'2008-08-04','2009-08-30',NULL,NULL,NULL,'2009-08-30','2009-08-31','2009-08-31',NULL,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (30,'30',1,60,36,NULL,'2008-08-30',NULL,'2008-08-30','2009-12-16',NULL,NULL,NULL,'2009-12-16','2009-12-31','2009-12-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (31,'31',1,26,31,NULL,'2008-09-01',NULL,'2008-09-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,50.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (31,'31',1,26,31,NULL,'2008-09-01',NULL,'2008-09-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,50.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (32,'32',1,66,35,NULL,'2008-09-10',NULL,'2008-09-10','2009-11-30',NULL,NULL,NULL,'2009-11-30','2009-11-30','2009-11-30',NULL,65.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (33,'33',1,13,24,NULL,'2008-09-20',NULL,'2008-09-20',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (33,'33',1,13,24,NULL,'2008-09-20',NULL,'2008-09-20',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (34,'34',1,69,41,NULL,'2008-11-14',NULL,'2008-11-14',NULL,NULL,NULL,NULL,NULL,'2010-04-30','2010-04-30',NULL,25.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (35,'35',1,35,1,NULL,'2009-01-01',NULL,'2009-01-01','2009-05-31',NULL,NULL,NULL,'2009-05-31','2009-05-31','2009-05-31',NULL,45.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (36,'36',1,52,43,NULL,'2009-01-01',NULL,'2009-01-01','2009-03-28',NULL,NULL,NULL,'2009-03-28','2009-03-31','2009-03-31',25.00,30.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (37,'37',1,21,46,NULL,'2009-02-01',NULL,'2009-02-01','2009-03-31',NULL,NULL,NULL,'2009-03-31','2009-03-31','2009-03-31',NULL,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (38,'38',1,25,44,NULL,'2009-02-01',NULL,'2009-02-01','2009-08-26',NULL,NULL,NULL,'2009-08-26','2009-08-31','2009-08-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (39,'39',1,64,45,NULL,'2009-02-01',NULL,'2009-02-01','2009-03-10',NULL,NULL,NULL,'2009-03-10','2009-03-31','2009-03-31',NULL,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (40,'40',1,41,8,NULL,'2009-02-01',NULL,'2009-02-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',150.00,375.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (40,'40',1,41,8,NULL,'2009-02-01',NULL,'2009-02-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',150.00,375.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (41,'41',1,45,42,NULL,'2009-02-01',NULL,'2009-02-01','2009-03-31',NULL,NULL,NULL,'2009-03-31','2009-03-31','2009-03-31',NULL,49.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (42,'42',1,46,7,NULL,'2009-02-01',NULL,'2009-02-01','2010-01-31',NULL,NULL,NULL,NULL,NULL,'2010-01-31',25.00,63.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (43,'43',1,49,9,NULL,'2009-02-21',NULL,'2009-02-21','2009-05-31',NULL,NULL,NULL,'2009-05-31','2009-05-31','2009-05-31',25.00,40.00,NULL,NULL,NULL);
@@ -2743,19 +2833,19 @@ INSERT INTO `pmgr_leases` VALUES (47,'47',1,6,19,NULL,'2009-04-08',NULL,'2009-04
INSERT INTO `pmgr_leases` VALUES (48,'48',1,67,39,NULL,'2009-04-09',NULL,'2009-04-09','2009-06-11',NULL,NULL,NULL,'2009-06-11','2009-06-08','2009-06-08',NULL,60.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (49,'49',1,22,47,NULL,'2009-04-24',NULL,'2009-04-24','2009-09-26',NULL,NULL,NULL,'2009-10-08',NULL,'2009-09-30',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (50,'50',1,12,48,NULL,'2009-04-27',NULL,'2009-04-27','2009-06-24',NULL,NULL,NULL,'2009-06-24','2009-06-30','2009-06-30',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (51,'51',1,23,49,NULL,'2009-04-30',NULL,'2009-04-30',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (51,'51',1,23,49,NULL,'2009-04-30',NULL,'2009-04-30',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (52,'52',1,71,50,NULL,'2009-04-30',NULL,'2009-04-30','2009-10-29',NULL,NULL,NULL,'2009-10-29','2009-10-31','2009-10-31',NULL,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (53,'53',1,65,51,NULL,'2009-05-28',NULL,'2009-05-28','2009-09-30',NULL,NULL,NULL,'2009-10-08',NULL,'2009-09-30',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (54,'54',1,57,9,NULL,'2009-06-01',NULL,'2009-06-01','2009-10-27',NULL,NULL,NULL,'2009-10-27','2009-10-31','2009-10-31',25.00,63.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (55,'55',1,52,30,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (55,'55',1,52,30,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (56,'56',1,68,39,NULL,'2009-06-01',NULL,'2009-06-01','2009-06-15',NULL,NULL,NULL,'2009-06-15','2009-06-15','2009-06-15',0.00,60.00,NULL,NULL,'Lease for only 2 weeks');
INSERT INTO `pmgr_leases` VALUES (57,'57',1,72,39,NULL,'2009-06-01',NULL,'2009-06-01','2009-07-26',NULL,NULL,NULL,'2009-07-26','2009-07-31','2009-07-31',0.00,35.00,NULL,NULL,'Lumber stored in the yard');
INSERT INTO `pmgr_leases` VALUES (58,'58',1,20,52,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (59,'59',1,29,53,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2009-06-30',25.00,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (58,'58',1,20,52,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (59,'59',1,29,53,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2009-06-30',25.00,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (60,'60',1,64,54,NULL,'2009-06-01',NULL,'2009-06-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (61,'61',1,49,55,NULL,'2009-07-01',NULL,'2009-07-01','2009-07-24',NULL,NULL,NULL,'2009-07-24','2009-07-31','2009-07-31',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (62,'62',1,8,56,NULL,'2009-06-14',NULL,'2009-06-14','2009-06-24',NULL,NULL,NULL,'2009-06-24','2009-06-24','2009-06-24',0.00,35.00,NULL,NULL,'Lease for 10 days while waiting for his house');
INSERT INTO `pmgr_leases` VALUES (63,'63',1,31,25,NULL,'2009-07-01',NULL,'2009-07-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',0.00,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (63,'63',1,31,25,NULL,'2009-07-01',NULL,'2009-07-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',0.00,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (64,'64',1,30,53,NULL,'2009-07-01',NULL,'2009-07-01','2009-09-02',NULL,NULL,NULL,NULL,'2009-08-31','2009-07-31',0.00,55.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (65,'65',1,73,37,NULL,'2009-07-01',NULL,'2009-07-01','2009-10-26',NULL,NULL,NULL,'2009-10-26','2009-10-31','2009-10-31',0.00,25.00,NULL,NULL,'Boat Trailer');
INSERT INTO `pmgr_leases` VALUES (66,'66',1,49,57,NULL,'2009-07-25',NULL,'2009-07-25',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,40.00,NULL,NULL,NULL);
@@ -2763,23 +2853,27 @@ INSERT INTO `pmgr_leases` VALUES (67,'67',1,10,58,NULL,'2009-07-15',NULL,'2009-0
INSERT INTO `pmgr_leases` VALUES (68,'68',1,8,59,NULL,'2009-07-21',NULL,'2009-07-21','2009-08-05',NULL,NULL,NULL,'2009-08-05','2009-08-31','2009-08-31',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (69,'69',1,63,37,NULL,'2009-07-15',NULL,'2009-07-15','2009-08-30',NULL,NULL,NULL,'2009-08-30','2009-08-31','2009-08-31',NULL,70.00,NULL,NULL,'Move-in date uncertain');
INSERT INTO `pmgr_leases` VALUES (70,'70',1,9,60,NULL,'2009-08-01',NULL,'2009-08-01',NULL,NULL,NULL,NULL,NULL,'2010-04-30','2010-04-30',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (71,'71',1,54,61,NULL,'2009-08-11',NULL,'2009-08-11',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (71,'71',1,54,61,NULL,'2009-08-11',NULL,'2009-08-11',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,40.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (72,'72',1,74,37,NULL,'2009-06-27',NULL,'2009-06-27','2009-07-11',NULL,NULL,NULL,'2009-07-11','2009-07-11','2009-07-11',0.00,35.00,NULL,NULL,'Boat Trailer; Very Temporary');
INSERT INTO `pmgr_leases` VALUES (73,'73',1,17,62,NULL,'2009-08-21',NULL,'2009-08-21','2009-10-23',NULL,NULL,NULL,'2009-10-23','2009-10-31','2009-10-31',25.00,90.00,NULL,NULL,'Move-in date estimated');
INSERT INTO `pmgr_leases` VALUES (74,'74',1,24,63,NULL,'2009-09-01',NULL,'2009-09-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (74,'74',1,24,63,NULL,'2009-09-01',NULL,'2009-09-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (75,'75',1,6,64,NULL,'2009-09-07',NULL,'2009-09-07','2009-10-26',NULL,NULL,NULL,'2009-10-26','2009-10-31','2009-10-31',25.00,35.00,NULL,NULL,'Move-in date estimated');
INSERT INTO `pmgr_leases` VALUES (76,'76',1,8,21,NULL,'2009-09-30',NULL,'2009-09-30',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (76,'76',1,8,21,NULL,'2009-09-30',NULL,'2009-09-30',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (77,'77',1,21,66,NULL,'2009-10-08',NULL,'2009-10-08',NULL,NULL,NULL,NULL,NULL,'2010-07-31','2010-07-31',25.00,70.00,NULL,NULL,'paid 9 months advance');
INSERT INTO `pmgr_leases` VALUES (78,'78',1,43,67,NULL,'2009-10-29',NULL,'2009-10-29',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,49.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (79,'79',1,17,68,NULL,'2009-10-31',NULL,'2009-10-31','2009-12-28',NULL,NULL,NULL,'2009-12-28','2009-12-31','2009-12-31',25.00,90.00,NULL,NULL,'Plans to stay for only one month (moving to new home)');
INSERT INTO `pmgr_leases` VALUES (80,'80',1,3,69,NULL,'2009-11-15',NULL,'2009-11-15',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (81,'81',1,6,70,NULL,'2009-11-27',NULL,'2009-11-27',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (82,'82',1,70,40,NULL,'2009-12-03',NULL,'2009-12-03',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',0.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (80,'80',1,3,69,NULL,'2009-11-15',NULL,'2009-11-15',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (81,'81',1,6,70,NULL,'2009-11-27',NULL,'2009-11-27',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (82,'82',1,70,40,NULL,'2009-12-03',NULL,'2009-12-03',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',0.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (83,'83',1,42,71,NULL,'2010-01-04',NULL,'2010-01-04','2010-02-10',NULL,NULL,NULL,'2010-02-10','2010-02-10','2010-02-10',25.00,49.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (84,'84',1,10,72,NULL,'2010-01-06',NULL,'2010-01-06','2010-02-20',NULL,NULL,NULL,'2010-02-20','2010-02-28','2010-02-28',25.00,35.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (85,'85',1,17,73,NULL,'2010-01-31',NULL,'2010-01-31',NULL,NULL,NULL,NULL,NULL,'2010-07-31','2010-07-31',25.00,90.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (86,'86',1,62,74,NULL,'2010-02-13',NULL,'2010-02-13',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (87,'87',1,45,7,NULL,'2010-02-01',NULL,'2010-02-01',NULL,NULL,NULL,NULL,NULL,'2010-02-28','2010-02-28',25.00,49.00,NULL,NULL,'Transfer from B-5 to B-4');
INSERT INTO `pmgr_leases` VALUES (86,'86',1,62,74,NULL,'2010-02-13',NULL,'2010-02-13',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (87,'87',1,45,7,NULL,'2010-02-01',NULL,'2010-02-01',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-02-28',25.00,49.00,NULL,NULL,'Transfer from B-5 to B-4');
INSERT INTO `pmgr_leases` VALUES (88,'88',1,35,20,NULL,'2010-03-01',NULL,'2010-03-01',NULL,NULL,NULL,NULL,NULL,'2010-05-31','2010-05-31',NULL,49.00,NULL,NULL,'Transferring from #16 to A-1; 1 month overlap intended');
INSERT INTO `pmgr_leases` VALUES (89,'89',1,25,75,NULL,'2010-03-04',NULL,'2010-03-04',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (90,'90',1,65,76,NULL,'2010-03-10',NULL,'2010-03-10',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',25.00,70.00,NULL,NULL,NULL);
INSERT INTO `pmgr_leases` VALUES (91,'91',1,66,76,NULL,'2010-03-10',NULL,'2010-03-10',NULL,NULL,NULL,NULL,NULL,'2010-03-31','2010-03-31',NULL,50.00,NULL,NULL,'renting 2 or more units, decrease in rent');
/*!40000 ALTER TABLE `pmgr_leases` ENABLE KEYS */;
UNLOCK TABLES;
@@ -2799,7 +2893,7 @@ CREATE TABLE `pmgr_ledger_entries` (
`amount` float(12,2) NOT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=3213 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=3389 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -5876,6 +5970,174 @@ INSERT INTO `pmgr_ledger_entries` VALUES (3209,1260,12,38,'DEBIT',25.00,'Release
INSERT INTO `pmgr_ledger_entries` VALUES (3210,1260,1,27,'CREDIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3211,1260,24,55,'CREDIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3212,1260,1,27,'DEBIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3213,1261,4,88,'DEBIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3214,1261,1,27,'CREDIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3215,1261,24,55,'CREDIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3216,1261,1,27,'DEBIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3217,1262,13,39,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3218,1262,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3219,1263,13,39,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3220,1263,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3221,1264,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3222,1264,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3223,1265,13,39,'CREDIT',55.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3224,1265,1,27,'DEBIT',55.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3225,1266,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3226,1266,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3227,1267,13,39,'CREDIT',45.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3228,1267,1,27,'DEBIT',45.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3229,1268,13,39,'CREDIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3230,1268,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3231,1269,13,39,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3232,1269,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3233,1270,13,39,'CREDIT',80.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3234,1270,1,27,'DEBIT',80.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3235,1271,13,39,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3236,1271,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3237,1272,13,39,'CREDIT',63.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3238,1272,1,27,'DEBIT',63.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3239,1273,13,39,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3240,1273,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3241,1246,24,55,'DEBIT',10.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3242,1246,1,27,'CREDIT',10.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3243,1274,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3244,1274,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3245,1275,13,39,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3246,1275,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3247,1276,13,39,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3248,1276,1,27,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3249,1277,13,39,'CREDIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3250,1277,1,27,'DEBIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3251,1261,24,55,'DEBIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3252,1261,1,27,'CREDIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3253,1278,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3254,1278,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3255,1279,13,39,'CREDIT',375.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3256,1279,1,27,'DEBIT',375.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3257,1280,13,39,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3258,1280,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3259,1281,13,39,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3260,1281,1,27,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3261,1282,13,39,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3262,1282,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3263,1283,13,39,'CREDIT',55.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3264,1283,1,27,'DEBIT',55.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3265,1284,13,39,'CREDIT',55.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3266,1284,1,27,'DEBIT',55.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3267,1285,13,39,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3268,1285,1,27,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3269,1286,13,39,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3270,1286,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3271,1259,24,55,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3272,1259,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3273,1287,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3274,1287,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3275,1288,13,39,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3276,1288,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3277,1289,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3278,1289,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3279,1290,13,39,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3280,1290,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3281,1291,13,39,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3282,1291,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3283,1292,13,39,'CREDIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3284,1292,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3285,1293,6,32,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3286,1293,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3287,1293,6,32,'CREDIT',35.00,'Auto Deposit');
INSERT INTO `pmgr_ledger_entries` VALUES (3288,1293,20,46,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3289,1294,13,39,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3290,1294,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3291,1294,24,55,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3292,1294,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3293,1295,13,39,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3294,1295,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3295,1295,24,55,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3296,1295,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3297,1296,13,39,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3298,1296,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3299,1296,24,55,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3300,1296,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3301,1297,13,39,'CREDIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3302,1297,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3303,1297,13,39,'CREDIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3304,1297,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3305,1297,13,39,'CREDIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3306,1297,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3307,1294,24,55,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3308,1294,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3309,1295,24,55,'DEBIT',14.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3310,1295,1,27,'CREDIT',14.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3311,1295,24,55,'DEBIT',21.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3312,1295,1,27,'CREDIT',21.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3313,1296,24,55,'DEBIT',28.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3314,1296,1,27,'CREDIT',28.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3315,1296,24,55,'DEBIT',7.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3316,1296,1,27,'CREDIT',7.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3317,1298,4,88,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3318,1298,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3319,1299,4,88,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3320,1299,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3321,1300,4,88,'CREDIT',608.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3322,1300,20,46,'DEBIT',608.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3323,1300,5,89,'CREDIT',589.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3324,1300,20,46,'DEBIT',589.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3325,1302,3,87,'DEBIT',42.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3326,1302,1,27,'CREDIT',42.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3327,1303,4,90,'DEBIT',45.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3328,1303,1,27,'CREDIT',45.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3329,1304,4,90,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3330,1304,1,27,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3331,1305,4,90,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3332,1305,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3333,1306,4,90,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3334,1306,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3335,1307,3,87,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3336,1307,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3337,1308,5,91,'DEBIT',150.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3338,1308,1,27,'CREDIT',150.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3339,1308,24,55,'CREDIT',80.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3340,1308,1,27,'DEBIT',80.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3341,1309,12,38,'CREDIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3342,1309,1,27,'DEBIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3343,1309,13,39,'CREDIT',60.97,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3344,1309,1,27,'DEBIT',60.97,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3345,1310,4,90,'DEBIT',86.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3346,1310,1,27,'CREDIT',86.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3347,1310,24,55,'CREDIT',0.03,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3348,1310,1,27,'DEBIT',0.03,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3349,1311,4,90,'DEBIT',438.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3350,1311,1,27,'CREDIT',438.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3351,1312,4,90,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3352,1312,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3353,1313,4,90,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3354,1313,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3355,1314,3,87,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3356,1314,1,27,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3357,1315,3,87,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3358,1315,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3359,1316,4,90,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3360,1316,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3361,1317,5,91,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3362,1317,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3363,1318,4,90,'DEBIT',80.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3364,1318,1,27,'CREDIT',80.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3373,1321,4,90,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3374,1321,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3375,1322,12,38,'CREDIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3376,1322,1,27,'DEBIT',25.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3377,1322,13,39,'CREDIT',47.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3378,1322,1,27,'DEBIT',47.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3379,1323,13,39,'CREDIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3380,1323,1,27,'DEBIT',50.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3381,1324,4,90,'DEBIT',122.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3382,1324,1,27,'CREDIT',122.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3383,1325,3,87,'CREDIT',252.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3384,1325,20,46,'DEBIT',252.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3385,1325,4,90,'CREDIT',1221.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3386,1325,20,46,'DEBIT',1221.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3387,1325,5,91,'CREDIT',220.00,NULL);
INSERT INTO `pmgr_ledger_entries` VALUES (3388,1325,20,46,'DEBIT',220.00,NULL);
/*!40000 ALTER TABLE `pmgr_ledger_entries` ENABLE KEYS */;
UNLOCK TABLES;
@@ -5895,7 +6157,7 @@ CREATE TABLE `pmgr_ledgers` (
`close_transaction_id` int(10) unsigned DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=90 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=95 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -5990,9 +6252,14 @@ INSERT INTO `pmgr_ledgers` VALUES (83,'4-19',4,19,80,1160,NULL);
INSERT INTO `pmgr_ledgers` VALUES (84,'5-11',5,11,81,1160,NULL);
INSERT INTO `pmgr_ledgers` VALUES (85,'4-20',4,20,83,1218,NULL);
INSERT INTO `pmgr_ledgers` VALUES (86,'5-12',5,12,84,1218,NULL);
INSERT INTO `pmgr_ledgers` VALUES (87,'3-13',3,13,82,NULL,NULL);
INSERT INTO `pmgr_ledgers` VALUES (88,'4-21',4,21,85,NULL,NULL);
INSERT INTO `pmgr_ledgers` VALUES (89,'5-13',5,13,86,NULL,NULL);
INSERT INTO `pmgr_ledgers` VALUES (87,'3-13',3,13,82,1326,NULL);
INSERT INTO `pmgr_ledgers` VALUES (88,'4-21',4,21,85,1301,NULL);
INSERT INTO `pmgr_ledgers` VALUES (89,'5-13',5,13,86,1301,NULL);
INSERT INTO `pmgr_ledgers` VALUES (90,'4-22',4,22,88,1326,NULL);
INSERT INTO `pmgr_ledgers` VALUES (91,'5-14',5,14,89,1326,NULL);
INSERT INTO `pmgr_ledgers` VALUES (92,'3-14',3,14,87,NULL,NULL);
INSERT INTO `pmgr_ledgers` VALUES (93,'4-23',4,23,90,NULL,NULL);
INSERT INTO `pmgr_ledgers` VALUES (94,'5-15',5,15,91,NULL,NULL);
/*!40000 ALTER TABLE `pmgr_ledgers` ENABLE KEYS */;
UNLOCK TABLES;
@@ -6490,7 +6757,7 @@ CREATE TABLE `pmgr_statement_entries` (
`reverse_transaction_id` int(10) unsigned DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1764 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=1853 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -7870,9 +8137,9 @@ INSERT INTO `pmgr_statement_entries` VALUES (1515,'DISBURSEMENT',1118,'2010-01-0
INSERT INTO `pmgr_statement_entries` VALUES (1516,'CHARGE',1121,'2009-12-11',NULL,NULL,33,4,10.00,14,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1518,'CHARGE',1122,'2010-02-01','2010-02-28',NULL,20,21,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1519,'CHARGE',1122,'2010-03-01','2010-03-31',NULL,20,21,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1520,'CHARGE',1122,'2010-04-01','2010-04-30',NULL,20,21,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1521,'CHARGE',1122,'2010-05-01','2010-05-31',NULL,20,21,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1522,'CHARGE',1122,'2010-06-01','2010-06-30',NULL,20,21,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1520,'CHARGE',1122,'2010-04-01','2010-04-30',NULL,20,21,35.00,13,NULL,1294,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1521,'CHARGE',1122,'2010-05-01','2010-05-31',NULL,20,21,35.00,13,NULL,1295,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1522,'CHARGE',1122,'2010-06-01','2010-06-30',NULL,20,21,35.00,13,NULL,1296,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1523,'DISBURSEMENT',1062,'2010-02-01',NULL,NULL,20,21,35.00,24,1518,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1524,'DISBURSEMENT',1062,'2010-03-01',NULL,NULL,20,21,35.00,24,1519,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1525,'DISBURSEMENT',1062,'2010-04-01',NULL,NULL,20,21,35.00,24,1520,NULL,NULL);
@@ -8001,7 +8268,7 @@ INSERT INTO `pmgr_statement_entries` VALUES (1672,'DISBURSEMENT',1214,'2010-02-0
INSERT INTO `pmgr_statement_entries` VALUES (1673,'DISBURSEMENT',1215,'2010-02-08',NULL,NULL,69,80,90.00,4,1652,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1674,'DISBURSEMENT',1216,'2010-02-09',NULL,NULL,32,14,80.00,4,1618,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1675,'DISBURSEMENT',1219,'2010-02-10',NULL,NULL,71,83,49.00,4,1657,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1762,'SURPLUS',1259,'2010-02-26',NULL,NULL,63,NULL,70.00,24,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1793,'CHARGE',1287,'2010-03-01','2010-03-31',NULL,21,76,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1677,'CHARGE',1221,'2010-02-11',NULL,NULL,34,1,10.00,14,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1678,'CHARGE',1222,'2010-02-11',NULL,NULL,28,2,10.00,14,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1679,'CHARGE',1223,'2010-02-11',NULL,NULL,2,9,10.00,14,NULL,NULL,NULL);
@@ -8040,7 +8307,7 @@ INSERT INTO `pmgr_statement_entries` VALUES (1722,'CHARGE',1244,'2010-02-13','20
INSERT INTO `pmgr_statement_entries` VALUES (1723,'DISBURSEMENT',1245,'2010-02-13',NULL,NULL,74,86,40.00,4,1722,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1724,'DISBURSEMENT',1245,'2010-02-13',NULL,NULL,74,86,25.00,4,1721,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1725,'DISBURSEMENT',1246,'2010-02-14',NULL,NULL,17,18,80.00,5,1621,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1726,'SURPLUS',1246,'2010-02-14',NULL,NULL,17,NULL,10.00,24,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1778,'CHARGE',1274,'2010-03-01','2010-03-31',NULL,25,22,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1727,'DISBURSEMENT',1247,'2010-02-16',NULL,NULL,2,9,46.00,5,1614,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1728,'DISBURSEMENT',1247,'2010-02-16',NULL,NULL,2,9,3.00,5,1679,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1729,'DISBURSEMENT',1248,'2010-02-16',NULL,NULL,28,2,90.00,5,1463,NULL,NULL);
@@ -8075,6 +8342,85 @@ INSERT INTO `pmgr_statement_entries` VALUES (1757,'REFUND',1257,'2010-02-26',NUL
INSERT INTO `pmgr_statement_entries` VALUES (1758,'DISBURSEMENT',1254,'2010-02-26',NULL,NULL,72,NULL,25.00,24,1757,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1760,'DISBURSEMENT',1255,'2010-02-26',NULL,NULL,71,NULL,31.50,24,1759,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1761,'DISBURSEMENT',1220,'2010-02-26',NULL,NULL,71,NULL,25.00,24,1759,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1783,'CHARGE',1278,'2010-03-01','2010-03-31',NULL,24,33,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1765,'CHARGE',1262,'2010-03-01','2010-03-31',NULL,34,1,70.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1766,'CHARGE',1263,'2010-03-01','2010-03-31',NULL,28,2,90.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1767,'CHARGE',1264,'2010-03-01','2010-03-31',NULL,18,3,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1768,'CHARGE',1265,'2010-03-01','2010-03-31',NULL,33,4,55.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1769,'CHARGE',1266,'2010-03-01','2010-03-31',NULL,26,5,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1770,'CHARGE',1267,'2010-03-01','2010-03-31',NULL,3,7,45.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1771,'CHARGE',1268,'2010-03-01','2010-03-31',NULL,2,9,49.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1772,'CHARGE',1269,'2010-03-01','2010-03-31',NULL,15,11,90.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1773,'CHARGE',1270,'2010-03-01','2010-03-31',NULL,32,14,80.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1774,'CHARGE',1271,'2010-03-01','2010-03-31',NULL,29,15,90.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1775,'CHARGE',1272,'2010-03-01','2010-03-31',NULL,8,16,63.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1776,'CHARGE',1273,'2010-03-01','2010-03-31',NULL,17,18,90.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1777,'DISBURSEMENT',1246,'2010-03-01',NULL,NULL,17,18,10.00,24,1776,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1779,'CHARGE',1275,'2010-03-01','2010-03-31',NULL,35,23,70.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1780,'CHARGE',1276,'2010-03-01','2010-03-31',NULL,10,25,40.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1781,'CHARGE',1277,'2010-03-01','2010-03-31',NULL,31,31,50.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1782,'DISBURSEMENT',1261,'2010-03-01',NULL,NULL,31,31,50.00,24,1781,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1784,'CHARGE',1279,'2010-03-01','2010-03-31',NULL,8,40,375.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1785,'CHARGE',1280,'2010-03-01','2010-03-31',NULL,49,51,70.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1786,'CHARGE',1281,'2010-03-01','2010-03-31',NULL,30,55,40.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1787,'CHARGE',1282,'2010-03-01','2010-03-31',NULL,52,58,70.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1788,'CHARGE',1283,'2010-03-01','2010-03-31',NULL,53,59,55.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1789,'CHARGE',1284,'2010-03-01','2010-03-31',NULL,25,63,55.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1790,'CHARGE',1285,'2010-03-01','2010-03-31',NULL,61,71,40.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1791,'CHARGE',1286,'2010-03-01','2010-03-31',NULL,63,74,70.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1792,'DISBURSEMENT',1259,'2010-03-01',NULL,NULL,63,74,70.00,24,1791,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1794,'CHARGE',1288,'2010-03-01','2010-03-31',NULL,69,80,90.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1795,'CHARGE',1289,'2010-03-01','2010-03-31',NULL,70,81,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1796,'CHARGE',1290,'2010-03-01','2010-03-31',NULL,40,82,35.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1797,'CHARGE',1291,'2010-03-01','2010-03-31',NULL,74,86,70.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1798,'CHARGE',1292,'2010-03-01','2010-03-31',NULL,7,87,49.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1799,'DISBURSEMENT',1293,'2010-03-05',NULL,NULL,40,82,35.00,6,1796,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1800,'REVERSAL',1294,'2010-02-26',NULL,NULL,20,21,35.00,13,1520,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1801,'DISBURSEMENT',1294,'2010-02-26',NULL,NULL,20,21,-35.00,24,1520,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1818,'DISBURSEMENT',1299,'2010-03-01',NULL,NULL,26,5,35.00,4,1769,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1803,'REVERSAL',1295,'2010-02-26',NULL,NULL,20,21,35.00,13,1521,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1804,'DISBURSEMENT',1295,'2010-02-26',NULL,NULL,20,21,-35.00,24,1521,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1806,'REVERSAL',1296,'2010-02-26',NULL,NULL,20,21,35.00,13,1522,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1807,'DISBURSEMENT',1296,'2010-02-26',NULL,NULL,20,21,-35.00,24,1522,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1817,'DISBURSEMENT',1298,'2010-03-01',NULL,NULL,52,58,70.00,4,1787,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1809,'CHARGE',1297,'2010-03-01','2010-03-31',NULL,20,88,49.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1810,'CHARGE',1297,'2010-04-01','2010-04-30',NULL,20,88,49.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1811,'CHARGE',1297,'2010-05-01','2010-05-31',NULL,20,88,49.00,13,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1812,'DISBURSEMENT',1294,'2010-03-01',NULL,NULL,20,88,35.00,24,1809,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1813,'DISBURSEMENT',1295,'2010-03-01',NULL,NULL,20,88,14.00,24,1809,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1814,'DISBURSEMENT',1295,'2010-04-01',NULL,NULL,20,88,21.00,24,1810,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1815,'DISBURSEMENT',1296,'2010-04-01',NULL,NULL,20,88,28.00,24,1810,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1816,'DISBURSEMENT',1296,'2010-05-01',NULL,NULL,20,88,7.00,24,1811,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1819,'DISBURSEMENT',1302,'2010-05-01',NULL,NULL,20,88,42.00,3,1811,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1820,'DISBURSEMENT',1303,'2010-03-01',NULL,NULL,3,7,45.00,4,1770,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1821,'DISBURSEMENT',1304,'2010-03-03',NULL,NULL,61,71,40.00,4,1790,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1822,'DISBURSEMENT',1305,'2010-03-04',NULL,NULL,15,11,90.00,4,1772,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1823,'DISBURSEMENT',1306,'2010-03-04',NULL,NULL,74,86,70.00,4,1797,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1824,'DISBURSEMENT',1307,'2010-03-04',NULL,NULL,70,81,35.00,3,1795,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1825,'DISBURSEMENT',1308,'2010-03-04',NULL,NULL,49,51,70.00,5,1785,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1826,'SURPLUS',1308,'2010-03-04',NULL,NULL,49,NULL,80.00,24,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1827,'CHARGE',1309,'2010-03-04',NULL,NULL,75,89,25.00,12,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1828,'CHARGE',1309,'2010-03-04','2010-03-31',NULL,75,89,60.97,13,NULL,NULL,'Rent proration: 27/31 days');
INSERT INTO `pmgr_statement_entries` VALUES (1829,'DISBURSEMENT',1310,'2010-03-04',NULL,NULL,75,89,25.00,4,1827,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1830,'DISBURSEMENT',1310,'2010-03-04',NULL,NULL,75,89,60.97,4,1828,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1831,'SURPLUS',1310,'2010-03-04',NULL,NULL,75,NULL,0.03,24,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1832,'DISBURSEMENT',1311,'2010-03-05',NULL,NULL,8,16,63.00,4,1775,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1833,'DISBURSEMENT',1311,'2010-03-05',NULL,NULL,8,40,375.00,4,1784,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1834,'DISBURSEMENT',1312,'2010-03-05',NULL,NULL,21,76,35.00,4,1793,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1835,'DISBURSEMENT',1313,'2010-03-05',NULL,NULL,25,22,35.00,4,1778,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1836,'DISBURSEMENT',1313,'2010-03-05',NULL,NULL,25,63,55.00,4,1789,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1837,'DISBURSEMENT',1314,'2010-03-06',NULL,NULL,10,25,40.00,3,1780,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1838,'DISBURSEMENT',1315,'2010-03-06',NULL,NULL,69,80,90.00,3,1794,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1839,'DISBURSEMENT',1316,'2010-03-08',NULL,NULL,29,15,90.00,4,1774,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1840,'DISBURSEMENT',1317,'2010-03-09',NULL,NULL,35,23,70.00,5,1779,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1841,'DISBURSEMENT',1318,'2010-03-09',NULL,NULL,32,14,80.00,4,1773,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1846,'DISBURSEMENT',1321,'2010-03-10',NULL,NULL,24,33,35.00,4,1783,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1847,'CHARGE',1322,'2010-03-10',NULL,NULL,76,90,25.00,12,NULL,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1848,'CHARGE',1322,'2010-03-10','2010-03-31',NULL,76,90,47.00,13,NULL,NULL,'Rent proration: 21/31 days');
INSERT INTO `pmgr_statement_entries` VALUES (1849,'CHARGE',1323,'2010-03-10','2010-03-31',NULL,76,91,50.00,13,NULL,NULL,'no prorate offered');
INSERT INTO `pmgr_statement_entries` VALUES (1850,'DISBURSEMENT',1324,'2010-03-10',NULL,NULL,76,90,25.00,4,1847,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1851,'DISBURSEMENT',1324,'2010-03-10',NULL,NULL,76,90,47.00,4,1848,NULL,NULL);
INSERT INTO `pmgr_statement_entries` VALUES (1852,'DISBURSEMENT',1324,'2010-03-10',NULL,NULL,76,91,50.00,4,1849,NULL,NULL);
/*!40000 ALTER TABLE `pmgr_statement_entries` ENABLE KEYS */;
UNLOCK TABLES;
@@ -8140,7 +8486,7 @@ CREATE TABLE `pmgr_tenders` (
`nsf_transaction_id` int(10) unsigned DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=437 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=459 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -8559,19 +8905,41 @@ INSERT INTO `pmgr_tenders` VALUES (420,'Money Order #16617912300',3,49,'16617912
INSERT INTO `pmgr_tenders` VALUES (421,'Cash #421',1,69,NULL,NULL,NULL,NULL,3059,NULL,3066,1217,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (422,'Check #1046',2,69,'1046',NULL,NULL,NULL,3061,NULL,3068,1217,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (423,'Check #6934',2,32,'6934',NULL,NULL,NULL,3063,NULL,3068,1217,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (424,'Check #3963',2,71,'3963',NULL,NULL,NULL,3071,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (424,'Check #3963',2,71,'3963',NULL,NULL,NULL,3071,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (425,'Concession #425',5,73,NULL,NULL,NULL,NULL,3095,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (426,'Concession #426',5,73,NULL,NULL,NULL,NULL,3121,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (427,'Check #1054',2,24,'1054',NULL,NULL,NULL,3145,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (428,'Cash #428',1,72,NULL,NULL,NULL,NULL,3153,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (429,'Money Order #0075714596',3,29,'0075714596',NULL,NULL,NULL,3155,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (430,'Check #1016',2,74,'1016',NULL,NULL,NULL,3161,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (431,'Money Order #1210199040',3,17,'1210199040',NULL,NULL,NULL,3163,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (432,'Money Order #14-018502695',3,2,'14-018502695',NULL,NULL,NULL,3167,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (433,'Money Order #20202322369',3,28,'20202322369',NULL,NULL,NULL,3169,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (434,'Check #2108',2,7,'2108',NULL,NULL,NULL,3179,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (435,'Money Order #50411268090',3,34,'50411268090',NULL,NULL,NULL,3181,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (436,'Check #1052',2,63,'1052',NULL,NULL,NULL,3205,NULL,NULL,NULL,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (427,'Check #1054',2,24,'1054',NULL,NULL,NULL,3145,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (428,'Cash #428',1,72,NULL,NULL,NULL,NULL,3153,NULL,3384,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (429,'Money Order #0075714596',3,29,'0075714596',NULL,NULL,NULL,3155,NULL,3324,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (430,'Check #1016',2,74,'1016',NULL,NULL,NULL,3161,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (431,'Money Order #1210199040',3,17,'1210199040',NULL,NULL,NULL,3163,NULL,3324,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (432,'Money Order #14-018502695',3,2,'14-018502695',NULL,NULL,NULL,3167,NULL,3324,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (433,'Money Order #20202322369',3,28,'20202322369',NULL,NULL,NULL,3169,NULL,3324,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (434,'Check #2108',2,7,'2108',NULL,NULL,NULL,3179,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (435,'Money Order #50411268090',3,34,'50411268090',NULL,NULL,NULL,3181,NULL,3324,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (436,'Check #1052',2,63,'1052',NULL,NULL,NULL,3205,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (437,'Check #5297',2,31,'5297',NULL,NULL,NULL,3213,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (438,'ACH #123171955183506',4,40,'125107037','0600119853','123171955183506',NULL,3285,NULL,3288,1293,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (439,'Check #9855',2,52,'9855',NULL,NULL,NULL,3317,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (440,'Check #1983',2,26,'1983',NULL,NULL,NULL,3319,NULL,3322,1300,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (441,'Cash #441',1,20,NULL,NULL,NULL,NULL,3325,NULL,3384,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (442,'Check #1099',2,3,'1099',NULL,NULL,NULL,3327,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (443,'Check #4148',2,61,'4148',NULL,NULL,NULL,3329,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (444,'Check #1133',2,15,'1133',NULL,NULL,NULL,3331,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (445,'Check #1018',2,74,'1018',NULL,NULL,NULL,3333,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (446,'Cash #446',1,70,NULL,NULL,NULL,NULL,3335,NULL,3384,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (447,'Money Order #16617907350',3,49,'16617907350',NULL,NULL,NULL,3337,NULL,3388,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (448,'Check #8216',2,75,'8216',NULL,NULL,NULL,3345,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (449,'Check #3512',2,8,'3512',NULL,NULL,NULL,3349,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (450,'Check #2066',2,21,'2066',NULL,NULL,NULL,3351,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (451,'Check #6344',2,25,'6344',NULL,NULL,NULL,3353,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (452,'Cash #452',1,10,NULL,NULL,NULL,NULL,3355,NULL,3384,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (453,'Cash #453',1,69,NULL,NULL,NULL,NULL,3357,NULL,3384,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (454,'Check #2006',2,29,'2006',NULL,NULL,NULL,3359,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (455,'Money Order #10311792596',3,35,'10311792596',NULL,NULL,NULL,3361,NULL,3388,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (456,'Check #6966',2,32,'6966',NULL,NULL,NULL,3363,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (457,'Check #1086',2,24,'1086',NULL,NULL,NULL,3373,NULL,3386,1325,NULL,NULL);
INSERT INTO `pmgr_tenders` VALUES (458,'Check #2597',2,76,'2597',NULL,NULL,NULL,3381,NULL,3386,1325,NULL,NULL);
/*!40000 ALTER TABLE `pmgr_tenders` ENABLE KEYS */;
UNLOCK TABLES;
@@ -8593,7 +8961,7 @@ CREATE TABLE `pmgr_transactions` (
`amount` float(12,2) DEFAULT NULL,
`comment` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1261 DEFAULT CHARSET=utf8;
) ENGINE=MyISAM AUTO_INCREMENT=1327 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
--
@@ -9810,6 +10178,70 @@ INSERT INTO `pmgr_transactions` VALUES (1257,'PAYMENT','2010-02-26 08:00:00',72,
INSERT INTO `pmgr_transactions` VALUES (1258,'PAYMENT','2010-02-26 08:00:00',71,1,27,'DEBIT',56.50,'Confirmation #1002260663');
INSERT INTO `pmgr_transactions` VALUES (1259,'RECEIPT','2010-02-27 01:30:00',63,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1260,'RECEIPT','2010-02-26 08:00:00',37,1,27,'CREDIT',25.00,'Security Deposit Release');
INSERT INTO `pmgr_transactions` VALUES (1261,'RECEIPT','2010-02-28 08:00:00',31,1,27,'CREDIT',50.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1262,'INVOICE','2010-03-01 08:00:00',34,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1263,'INVOICE','2010-03-01 08:00:00',28,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1264,'INVOICE','2010-03-01 08:00:00',18,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1265,'INVOICE','2010-03-01 08:00:00',33,1,27,'DEBIT',55.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1266,'INVOICE','2010-03-01 08:00:00',26,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1267,'INVOICE','2010-03-01 08:00:00',3,1,27,'DEBIT',45.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1268,'INVOICE','2010-03-01 08:00:00',2,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1269,'INVOICE','2010-03-01 08:00:00',15,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1270,'INVOICE','2010-03-01 08:00:00',32,1,27,'DEBIT',80.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1271,'INVOICE','2010-03-01 08:00:00',29,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1272,'INVOICE','2010-03-01 08:00:00',8,1,27,'DEBIT',63.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1273,'INVOICE','2010-03-01 08:00:00',17,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1274,'INVOICE','2010-03-01 08:00:00',25,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1275,'INVOICE','2010-03-01 08:00:00',35,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1276,'INVOICE','2010-03-01 08:00:00',10,1,27,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1277,'INVOICE','2010-03-01 08:00:00',31,1,27,'DEBIT',50.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1278,'INVOICE','2010-03-01 08:00:00',24,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1279,'INVOICE','2010-03-01 08:00:00',8,1,27,'DEBIT',375.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1280,'INVOICE','2010-03-01 08:00:00',49,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1281,'INVOICE','2010-03-01 08:00:00',30,1,27,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1282,'INVOICE','2010-03-01 08:00:00',52,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1283,'INVOICE','2010-03-01 08:00:00',53,1,27,'DEBIT',55.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1284,'INVOICE','2010-03-01 08:00:00',25,1,27,'DEBIT',55.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1285,'INVOICE','2010-03-01 08:00:00',61,1,27,'DEBIT',40.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1286,'INVOICE','2010-03-01 08:00:00',63,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1287,'INVOICE','2010-03-01 08:00:00',21,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1288,'INVOICE','2010-03-01 08:00:00',69,1,27,'DEBIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1289,'INVOICE','2010-03-01 08:00:00',70,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1290,'INVOICE','2010-03-01 08:00:00',40,1,27,'DEBIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1291,'INVOICE','2010-03-01 08:00:00',74,1,27,'DEBIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1292,'INVOICE','2010-03-01 08:00:00',7,1,27,'DEBIT',49.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1293,'RECEIPT','2010-03-05 08:00:00',40,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1294,'CREDIT_NOTE','2010-02-26 08:00:00',20,1,27,'CREDIT',35.00,'Transferring from #16 to A-1; Intended move out from #16 by 4/1/10');
INSERT INTO `pmgr_transactions` VALUES (1295,'CREDIT_NOTE','2010-02-26 08:00:00',20,1,27,'CREDIT',35.00,'Transferring from #16 to A-1; Intended move out from #16 by 4/1/10');
INSERT INTO `pmgr_transactions` VALUES (1296,'CREDIT_NOTE','2010-02-26 08:00:00',20,1,27,'CREDIT',35.00,'Transferring from #16 to A-1; Intended move out from #16 by 4/1/10');
INSERT INTO `pmgr_transactions` VALUES (1297,'INVOICE','2010-03-01 08:00:00',20,1,27,'DEBIT',147.00,'Transfer charges; Sharon agreed to pay through May 31st, expecting to pay a bit more to make up the difference');
INSERT INTO `pmgr_transactions` VALUES (1298,'RECEIPT','2010-03-01 08:00:00',52,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1299,'RECEIPT','2010-02-27 08:00:00',26,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1300,'DEPOSIT','2010-03-03 03:22:05',NULL,20,46,'DEBIT',1197.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1301,'CLOSE','2010-03-03 03:22:06',NULL,NULL,NULL,NULL,0.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1302,'RECEIPT','2010-02-28 08:00:00',20,1,27,'CREDIT',42.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1303,'RECEIPT','2010-03-01 08:00:00',3,1,27,'CREDIT',45.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1304,'RECEIPT','2010-03-03 08:00:00',61,1,27,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1305,'RECEIPT','2010-03-04 08:00:00',15,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1306,'RECEIPT','2010-03-04 08:00:00',74,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1307,'RECEIPT','2010-03-04 08:00:00',70,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1308,'RECEIPT','2010-03-04 08:00:00',49,1,27,'CREDIT',150.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1309,'INVOICE','2010-03-04 08:00:00',75,1,27,'DEBIT',85.97,'Move-In Charges');
INSERT INTO `pmgr_transactions` VALUES (1310,'RECEIPT','2010-03-04 08:00:00',75,1,27,'CREDIT',86.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1311,'RECEIPT','2010-03-05 08:00:00',8,1,27,'CREDIT',438.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1312,'RECEIPT','2010-03-05 08:00:00',21,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1313,'RECEIPT','2010-03-05 08:00:00',25,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1314,'RECEIPT','2010-03-06 08:00:00',10,1,27,'CREDIT',40.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1315,'RECEIPT','2010-03-06 08:00:00',69,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1316,'RECEIPT','2010-03-08 08:00:00',29,1,27,'CREDIT',90.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1317,'RECEIPT','2010-03-09 08:00:00',35,1,27,'CREDIT',70.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1318,'RECEIPT','2010-03-09 08:00:00',32,1,27,'CREDIT',80.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1321,'RECEIPT','2010-03-10 08:00:00',24,1,27,'CREDIT',35.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1322,'INVOICE','2010-03-10 08:00:00',76,1,27,'DEBIT',72.00,'Move-In Charges');
INSERT INTO `pmgr_transactions` VALUES (1323,'INVOICE','2010-03-10 08:00:00',76,1,27,'DEBIT',50.00,'Move-In Charges');
INSERT INTO `pmgr_transactions` VALUES (1324,'RECEIPT','2010-03-10 08:00:00',76,1,27,'CREDIT',122.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1325,'DEPOSIT','2010-03-11 03:26:06',NULL,20,46,'DEBIT',1693.00,NULL);
INSERT INTO `pmgr_transactions` VALUES (1326,'CLOSE','2010-03-11 03:26:06',NULL,NULL,NULL,NULL,0.00,NULL);
/*!40000 ALTER TABLE `pmgr_transactions` ENABLE KEYS */;
UNLOCK TABLES;
@@ -9934,14 +10366,14 @@ INSERT INTO `pmgr_units` VALUES (14,2,'25','25','VACANT',36,47,25.00,35.00,NULL)
INSERT INTO `pmgr_units` VALUES (15,2,'26','26','OCCUPIED',37,46,25.00,35.00,NULL);
INSERT INTO `pmgr_units` VALUES (16,2,'27','27','OCCUPIED',38,45,25.00,35.00,NULL);
INSERT INTO `pmgr_units` VALUES (17,1,'28','28','OCCUPIED',39,31,25.00,90.00,NULL);
INSERT INTO `pmgr_units` VALUES (18,1,'29','29','LOCKED',40,30,25.00,90.00,NULL);
INSERT INTO `pmgr_units` VALUES (18,1,'29','29','OCCUPIED',40,30,25.00,90.00,NULL);
INSERT INTO `pmgr_units` VALUES (19,1,'30','30','OCCUPIED',41,29,25.00,90.00,NULL);
INSERT INTO `pmgr_units` VALUES (20,3,'31','31','OCCUPIED',42,28,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (21,3,'32','32','OCCUPIED',43,27,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (22,3,'33','33','VACANT',44,26,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (23,3,'34','34','OCCUPIED',45,25,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (24,3,'35','35','OCCUPIED',46,24,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (25,3,'36','36','VACANT',47,23,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (25,3,'36','36','OCCUPIED',47,23,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (26,4,'37','37','OCCUPIED',48,22,25.00,50.00,NULL);
INSERT INTO `pmgr_units` VALUES (27,4,'38','38','COMPANY',49,21,25.00,50.00,'Contains lumber, tools, etc.');
INSERT INTO `pmgr_units` VALUES (28,5,'39','39','OCCUPIED',50,68,25.00,80.00,NULL);
@@ -9951,7 +10383,7 @@ INSERT INTO `pmgr_units` VALUES (31,6,'42','42','OCCUPIED',53,65,25.00,55.00,NUL
INSERT INTO `pmgr_units` VALUES (32,6,'43','43','VACANT',54,64,25.00,55.00,NULL);
INSERT INTO `pmgr_units` VALUES (33,6,'44','44','VACANT',55,63,25.00,55.00,NULL);
INSERT INTO `pmgr_units` VALUES (34,6,'45','45','OCCUPIED',56,62,25.00,55.00,NULL);
INSERT INTO `pmgr_units` VALUES (35,7,'A01','A01','VACANT',1,39,25.00,49.00,NULL);
INSERT INTO `pmgr_units` VALUES (35,7,'A01','A01','OCCUPIED',1,39,25.00,49.00,NULL);
INSERT INTO `pmgr_units` VALUES (36,7,'A02','A02','VACANT',2,40,25.00,49.00,NULL);
INSERT INTO `pmgr_units` VALUES (37,7,'A03','A03','OCCUPIED',3,41,25.00,49.00,NULL);
INSERT INTO `pmgr_units` VALUES (38,7,'A04','A04','OCCUPIED',4,42,25.00,49.00,NULL);
@@ -9981,8 +10413,8 @@ INSERT INTO `pmgr_units` VALUES (61,3,'D04','D04','VACANT',60,58,25.00,70.00,NUL
INSERT INTO `pmgr_units` VALUES (62,3,'D05','D05','OCCUPIED',61,57,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (63,3,'D06','D06','VACANT',62,56,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (64,3,'D07','D07','OCCUPIED',63,55,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (65,3,'D08','D08','VACANT',64,54,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (66,3,'D09','D09','VACANT',65,53,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (65,3,'D08','D08','OCCUPIED',64,54,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (66,3,'D09','D09','OCCUPIED',65,53,25.00,70.00,NULL);
INSERT INTO `pmgr_units` VALUES (67,11,'D10','D10','VACANT',66,52,25.00,60.00,NULL);
INSERT INTO `pmgr_units` VALUES (68,11,'D11','D11','VACANT',67,51,25.00,60.00,NULL);
INSERT INTO `pmgr_units` VALUES (69,12,'Y01','Y01','OCCUPIED',69,69,0.00,35.00,NULL);

View File

@@ -32,15 +32,22 @@
*
*/
function sandbox() {
$r = Router::requestRoute();
return !empty($r[3]['sand_route']);
function _box($type) {
static $box = array('type' => null, 'test' => array());
if (!isset($box['type']) && !isset($box['test'][$type])) {
$r = Router::requestRoute();
/* if (!preg_match("/gridData/", $_SERVER['REQUEST_URI'])) { */
/* print("<PRE>Route:\n");print_r($r);print("\n</PRE>\n"); */
/* } */
$box['test'][$type] = !empty($r[3]["${type}_route"]);
if ($box['test'][$type])
$box['type'] = $type;
}
return $box['type'] == $type;
}
function devbox() {
$r = Router::requestRoute();
return !empty($r[3]['dev_route']);
}
function sandbox() { return _box('sand'); }
function devbox() { return _box('dev'); }
function server_request_var($var) {
if (preg_match("/^HTTP_ACCEPT|REMOTE_PORT/", $var))

View File

@@ -43,6 +43,16 @@ Router::connect('/sand',
array('sand_route' => true) + $default_path);
Router::connect('/sand/:controller/:action/*',
array('sand_route' => true, 'action' => null));
/* Unfortunately, for some reason we need an extra route to solve
* a bug with form generation. When $this->data is set by the
* controller, and a URL is generated by the FormHelper, this
* route is required to ensure the form action is correct. An
* example of a broken page is for /customers/edit/XX. It appears
* the page location uses the route above, it's only URL generation
* that seems to be broken.
*/
Router::connect('/sand/:controller/:action/:id/*',
array('sand_route' => true,'action' => null, 'id'=>null));
/*
* Route for developement functionality
@@ -51,5 +61,15 @@ Router::connect('/dev',
array('dev_route' => true) + $default_path);
Router::connect('/dev/:controller/:action/*',
array('dev_route' => true, 'action' => null));
/* Unfortunately, for some reason we need an extra route to solve
* a bug with form generation. When $this->data is set by the
* controller, and a URL is generated by the FormHelper, this
* route is required to ensure the form action is correct. An
* example of a broken page is for /customers/edit/XX. It appears
* the page location uses the route above, it's only URL generation
* that seems to be broken.
*/
Router::connect('/dev/:controller/:action/:id/*',
array('dev_route' => true,'action' => null, 'id'=>null));
?>

View File

@@ -47,7 +47,17 @@ class StatementEntriesController extends AppController {
if (!empty($params['post']['custom']['statement_entry_id'])) {
$link['ChargeEntry'] = array();
$link['DisbursementEntry'] = array();
// This query actually represents a union...
// Unpaid Charge/Surplus: ChargeID - NULL; DisbursementID - NULL
// Paid Charge/Refund: ChargeID - NULL; DisbursementID - !NULL
// Disbursement/Reversal: ChargeID - !NULL; DisbursementID - NULL
// <EMPTY SET>: ChargeID - !NULL; DisbursementID - !NULL
//
// The query is really slow unless we add the `id` condition to the join.
// A cleaner query would be nice, but we must work within the Cake framework.
$link['DisbursementEntry'] = array('conditions' =>
'`DisbursementEntry`.`id` = '
. $params['post']['custom']['statement_entry_id']);
}
return array('link' => $link);

View File

@@ -192,6 +192,13 @@ class Customer extends AppModel {
}
$id = $this->id;
// Appears that $this->save() "helpfully" choses to add in
// any missing data fields, populated with default values.
// So, after saving is complete, the fields 'lease_count',
// 'past_lease_count', and 'current_lease_count' have all
// been reset to zero. Gee, thanks Cake...
$this->update($id);
// Remove all associated Customer Contacts, as it ensures
// any entries deleted by the user actually get deleted
// in the system. We'll recreate the needed ones anyway.

View File

@@ -48,24 +48,32 @@ function verifyRequest(formData, jqForm, options) {
if (formData[i]['name'] == "data[Customer][id]" &&
!(formData[i]['value'] > 0)) {
//$("#debug").append('<P>Missing Customer ID');
alert("Must select a customer first");
alert("Please select a customer first.");
return false;
}
if (formData[i]['name'] == "data[Transaction][stamp]" &&
formData[i]['value'] == '') {
//$("#debug").append('<P>Bad Stamp');
alert("Must enter a valid date stamp");
if (formData[i]['value'] != '')
alert(formData[i]['value'] + " is not valid date stamp. Please correct it.");
else
alert("Please enter a valid date stamp first.");
return false;
}
// Terrible way to accomplish this...
for (var j = 0; j < 20; ++j) {
if (formData[i]['name'] == "data[Entry]["+j+"][amount]" &&
!(formData[i]['value'] > 0)) {
if (formData[i]['name'] == "data[Entry]["+j+"][amount]") {
var val = formData[i]['value'].replace(/\$/,'');
//$("#debug").append('<P>Bad Amount');
alert("Must enter a valid amount");
return false;
if (!(val > 0)) {
if (formData[i]['value'] == '')
alert("Please enter an amount first.");
else
alert('"'+formData[i]['value']+'"' + " is not valid amount. Please correct it.");
return false;
}
}
}

View File

@@ -11,6 +11,7 @@ $cols['Signed'] = array('index' => 'Lease.lease_date', 'formatter' => 'dat
$cols['Move-In'] = array('index' => 'Lease.movein_date', 'formatter' => 'date');
$cols['Move-Out'] = array('index' => 'Lease.moveout_date', 'formatter' => 'date');
$cols['Closed'] = array('index' => 'Lease.close_date', 'formatter' => 'date');
$cols['Charge-Thru'] = array('index' => 'Lease.charge_through_date', 'formatter' => 'date');
$cols['Paid-Thru'] = array('index' => 'Lease.paid_through_date', 'formatter' => 'date');
$cols['Status'] = array('index' => 'status', 'formatter' => 'longenum');
$cols['Balance'] = array('index' => 'balance', 'formatter' => 'currency');
@@ -18,7 +19,7 @@ $cols['Comment'] = array('index' => 'Lease.comment', 'formatter' => 'com
if (!empty($this->params['action'])) {
if ($this->params['action'] === 'closed')
$grid->invalidFields(array('Paid-Thru', 'Status'));
$grid->invalidFields(array('Charge-Thru', 'Paid-Thru', 'Status'));
elseif ($this->params['action'] === 'active')
$grid->invalidFields(array('Closed'));
elseif ($this->params['action'] === 'delinquent')
@@ -32,4 +33,4 @@ $grid
->defaultFields(array('Lease'))
->searchFields(array('Customer', 'Unit'))
->render($this, isset($config) ? $config : null,
array_diff(array_keys($cols), array('Signed', 'Status', 'Comment')));
array_diff(array_keys($cols), array('Signed', 'Charge-Thru', 'Status', 'Comment')));

View File

@@ -10,6 +10,7 @@ $customer = $lease['Customer'];
if (isset($lease['Lease']))
$lease = $lease['Lease'];
//pr(compact('unit', 'customer', 'lease', 'movein'));
/**********************************************************************
**********************************************************************
@@ -25,6 +26,8 @@ Configure::write('debug', '0');
<script type="text/javascript"><!--
var lease_charge_through;
// prepare the form when the DOM is ready
$(document).ready(function() {
var options = {
@@ -62,19 +65,27 @@ function verifyRequest(formData, jqForm, options) {
if (formData[i]['name'] == "data[Transaction][stamp]" &&
formData[i]['value'] == '') {
//$("#debug").append('<P>Bad Stamp');
alert("Must enter a valid date stamp");
if (formData[i]['value'] != '')
alert(formData[i]['value'] + " is not valid date stamp. Please correct it.");
else
alert("Please enter a valid date stamp first.");
return false;
}
// Terrible way to accomplish this...
/* for (var j = 0; j < 20; ++j) { */
/* if (formData[i]['name'] == "data[Entry]["+j+"][amount]" && */
/* !(formData[i]['value'] > 0)) { */
/* //$("#debug").append('<P>Bad Amount'); */
/* alert("Must enter a valid amount"); */
/* return false; */
/* } */
/* } */
for (var j = 0; j < 20; ++j) {
if (formData[i]['name'] == "data[Entry]["+j+"][amount]") {
var val = formData[i]['value'].replace(/\$/,'');
//$("#debug").append('<P>Bad Amount');
if (!(val > 0)) {
if (formData[i]['value'] == '')
alert("Please enter an amount for Charge #"+j+", or remove the Charge completely.");
else
alert('"'+formData[i]['value']+'"' + " is not a valid amount for Charge #"+j+". Please correct it.");
return false;
}
}
}
}
//$("#debug").append('OK');
@@ -142,6 +153,7 @@ function onRowSelect(grid_id, lease_id) {
$("#invoice-deposit").html($(grid_id).getCell(lease_id, 'Lease-deposit')
? $(grid_id).getCell(lease_id, 'Lease-deposit')
: '-');
lease_charge_through = $(grid_id).getCell(lease_id, 'Lease-charge_through_date')
// Hide the "no lease" message and show the current lease
$(".lease-selection-invalid").hide();
@@ -167,6 +179,78 @@ function onGridState(grid_id, state) {
}
}
function setNextRent(id) {
var chg_thru;
$('.ChargeForm').each( function(i) {
if ($('.ChargeFormThroughDate', this).attr('id') == 'Entry'+id+'ThroughDate')
return;
if ($('.ChargeFormAccount option:selected', this).val() == <?php echo $rentAccount ?>
&& $('.ChargeFormThroughDate', this).val()) {
var dt = new Date($('.ChargeFormThroughDate', this).val());
//$('#debug').append('Rent in ' + i + '; date ' + dt + '<BR>');
if (chg_thru == null || dt > chg_thru)
chg_thru = dt;
}
});
if (!chg_thru)
chg_thru = new Date(lease_charge_through);
if (chg_thru < dateEOM(chg_thru)) {
// Add a charge to finish out the month
datepickerSet('Entry'+id+'EffectiveDate', dateTomorrow(chg_thru));
datepickerSet('Entry'+id+'ThroughDate', dateEOM(chg_thru));
} else {
// Add a whole month's charge for next month
datepickerSet('Entry'+id+'EffectiveDate', dateNextBOM(chg_thru));
datepickerSet('Entry'+id+'ThroughDate', dateNextEOM(chg_thru));
}
// Now add in the amount owed based on the calculated
// effective and through dates.
prorate(id);
}
function prorate(id) {
var edt = datepickerGet('Entry'+id+'EffectiveDate');
var tdt = datepickerGet('Entry'+id+'ThroughDate');
var rent = $('#invoice-rent').html().replace(/\$/,'');
// Reset the comment. It might wipe out a user comment,
// but it's probably low risk/concern
$('#Entry'+id+'Comment').val('');
if (edt == null || tdt == null) {
alert('Can only prorate with both effective and through dates');
rent = 0;
}
else if (edt > tdt) {
alert('Effective date is later than the Through date');
rent = 0;
}
else if (tdt.getMonth() == edt.getMonth() + 1 &&
edt.getDate() == tdt.getDate() + 1) {
// appears to be anniversary billing, one full cycle
}
else if (edt.getTime() == dateBOM(edt).getTime() &&
tdt.getTime() == dateEOM(edt).getTime()) {
// appears to be one full month
}
else {
var one_day=1000*60*60*24;
var days = Math.ceil((tdt.getTime()-edt.getTime()+1)/(one_day));
var dim =
((edt.getMonth() == tdt.getMonth())
? dateEOM(edt).getDate() // prorated within the month.
: 30); // prorated across months.
rent *= days / dim;
$('#Entry'+id+'Comment').val('Rent proration: '+days+'/'+dim+' days');
}
$('#Entry'+id+'Amount').val(fmtCurrency(rent));
}
function addChargeSource(flash) {
var id = $("#charge-entry-id").val();
addDiv('charge-entry-id', 'charge', 'charges', flash,
@@ -178,26 +262,32 @@ function addChargeSource(flash) {
echo FormatHelper::phpVarToJavascript
($this->element('form_table',
array('id' => 'Entry%{id}Form',
'class' => "item invoice ledger-entry entry",
'class' => "ChargeForm item invoice ledger-entry entry",
//'with_name_after' => ':',
'field_prefix' => 'Entry.%{id}',
'fields' => array
("account_id" => array('name' => 'Account',
'opts' =>
array('options' => $chargeAccounts,
array('class' => 'ChargeFormAccount',
'options' => $chargeAccounts,
'value' => $defaultAccount,
),
'between' => '<A HREF="#" ONCLICK="setNextRent(\'%{id}\'); return false;">Rent</A>',
),
"effective_date" => array('opts' =>
array('type' => 'text'),
array('class' => 'ChargeFormEffectiveDate',
'type' => 'text'),
'between' => '<A HREF="#" ONCLICK="datepickerBOM(\'TransactionStamp\',\'Entry%{id}EffectiveDate\'); return false;">BOM</A>',
),
"through_date" => array('opts' =>
array('type' => 'text'),
array('class' => 'ChargeFormThroughDate',
'type' => 'text'),
'between' => '<A HREF="#" ONCLICK="datepickerEOM(\'Entry%{id}EffectiveDate\',\'Entry%{id}ThroughDate\'); return false;">EOM</A>',
),
"amount" => array('opts' => array('class' => 'invoice amount')),
"comment" => array('opts' => array('size' => 50)),
"amount" => array('opts' => array('class' => 'ChargeFormAmount invoice amount'),
'between' => '<A HREF="#" ONCLICK="prorate(\'%{id}\'); return false;">Prorate</A>',
),
"comment" => array('opts' => array('class' => 'ChargeFormComment', 'size' => 50)),
),
))) . "+\n";
?>
@@ -233,7 +323,8 @@ if (empty($movein))
array('gridstate' =>
'onGridState("#"+$(this).attr("id"), gridstate)'),
),
'exclude' => array('Closed'),
'include' => array('Charge-Thru'),
'exclude' => array('Closed', 'Paid-Thru'),
'action' => 'active',
'nolinks' => true,
'limit' => 10,
@@ -330,9 +421,34 @@ Configure::write('debug', '0');
$('tr td:nth-child('+col+'), tr th:nth-child('+col+')', this).remove();
};
function addHidden(id, fld, name) {
$('#Entry'+id+fld).after
('<input type="hidden"' +
' name="data[Entry]['+id+']['+name+']"' +
' value="' + $('#Entry'+id+fld).val() + '">');
}
$(document).ready(function(){
datepicker('TransactionStamp');
<?php if (isset($lease['id'])): ?>
$("#lease-id").val(<?php echo $lease['id']; ?>);
$("#invoice-lease").html("<?php echo '#'.$lease['number']; ?>");
$("#invoice-unit").html("<?php echo $unit['name']; ?>");
$("#invoice-customer").html("<?php echo $customer['name']; ?>");
$("#invoice-rent").html("<?php echo FormatHelper::currency($lease['rent']); ?>");
$("#invoice-late").html("<?php echo FormatHelper::currency($defaultLate); ?>");
$("#invoice-deposit").html("<?php echo FormatHelper::currency($lease['deposit']); ?>");
lease_charge_through = <?php
if ($lease['charge_through_date'])
echo 'new Date("'.date('m/d/Y', strtotime($lease['charge_through_date'])).'")';
elseif ($lease['paid_through_date'])
echo 'new Date("'.date('m/d/Y', strtotime($lease['paid_through_date'])).'")';
else
echo 'dateYesterday("'.date('m/d/Y', strtotime($lease['movein_date'])).'")';
?>;
<?php else: ?>
$("#lease-id").val(0);
$("#invoice-lease").html("INTERNAL ERROR");
$("#invoice-unit").html("INTERNAL ERROR");
@@ -340,6 +456,8 @@ Configure::write('debug', '0');
$("#invoice-rent").html("INTERNAL ERROR");
$("#invoice-late").html("INTERNAL ERROR");
$("#invoice-deposit").html("INTERNAL ERROR");
<?php endif; ?>
<?php if (empty($movein)): ?>
@@ -356,7 +474,7 @@ Configure::write('debug', '0');
$('#TransactionStamp').after
('<input type="hidden"' +
' name="data[Transaction][stamp]"' +
' value="<?php echo date('m/d/Y', $movein['time']); ?>">');
' value="' + $("#TransactionStamp").val() + '">');
$("#TransactionComment").val('Move-In Charges');
<?php if ($movein['deposit'] != 0): ?>
@@ -364,61 +482,28 @@ Configure::write('debug', '0');
$('#Entry'+id+'Form').removeCol(2);
$('#Entry'+id+'Form input, #Entry'+id+'Form select').attr('disabled', true);
$('#Entry'+id+'EffectiveDate').val("<?php echo date('m/d/Y', $movein['effective_time']); ?>");
$('#Entry'+id+'EffectiveDate').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][effective_date]"' +
' value="<?php echo date('m/d/Y', $movein['effective_time']); ?>">');
addHidden(id, 'EffectiveDate', 'effective_date');
$('#Entry'+id+'AccountId').val(<?php echo $securityDepositAccount; ?>);
$('#Entry'+id+'AccountId').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][account_id]"' +
' value="<?php echo $securityDepositAccount; ?>">');
addHidden(id, 'AccountId', 'account_id');
$('#Entry'+id+'Amount').val("<?php echo FormatHelper::currency($movein['deposit']); ?>");
$('#Entry'+id+'Amount').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][amount]"' +
' value="<?php echo FormatHelper::currency($movein['deposit']); ?>">');
//$('#Entry'+id+'Comment').val('Move-In Security Deposit');
addHidden(id, 'Amount', 'amount');
$('#Entry'+id+'Comment').removeAttr('disabled');
<?php endif; ?>
id = addChargeSource(false);
$('#Entry'+id+'Form').removeCol(2);
$('#Entry'+id+'Form input, #Entry'+id+'Form select').attr('disabled', true);
$('#Entry'+id+'EffectiveDate').val("<?php echo date('m/d/Y', $movein['effective_time']); ?>");
$('#Entry'+id+'EffectiveDate').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][effective_date]"' +
' value="<?php echo date('m/d/Y', $movein['effective_time']); ?>">');
$('#Entry'+id+'ThroughDate').val("<?php echo date('m/d/Y', $movein['through_time']); ?>");
$('#Entry'+id+'ThroughDate').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][through_date]"' +
' value="<?php echo date('m/d/Y', $movein['through_time']); ?>">');
$('#Entry'+id+'AccountId').val(<?php echo $rentAccount; ?>);
$('#Entry'+id+'AccountId').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][account_id]"' +
' value="<?php echo $rentAccount; ?>">');
$('#Entry'+id+'Amount').val("<?php echo FormatHelper::currency($movein['prorated_rent']); ?>");
$('#Entry'+id+'Amount').after
('<input type="hidden"' +
' name="data[Entry]['+id+'][amount]"' +
' value="<?php echo FormatHelper::currency($movein['prorated_rent']); ?>">');
$('#Entry'+id+'Comment').val("<?php echo($movein['prorated'] ? 'Move-In Rent (Prorated)' : ''); ?>");
setNextRent(id);
addHidden(id, 'EffectiveDate', 'effective_date');
addHidden(id, 'ThroughDate', 'through_date');
addHidden(id, 'AccountId', 'account_id');
addHidden(id, 'Amount', 'amount');
$('#Entry'+id+'Comment').removeAttr('disabled');
<?php endif; ?>
<?php if (isset($lease['id'])): ?>
$("#lease-id").val(<?php echo $lease['id']; ?>);
$("#invoice-lease").html("<?php echo '#'.$lease['number']; ?>");
$("#invoice-unit").html("<?php echo $unit['name']; ?>");
$("#invoice-customer").html("<?php echo $customer['name']; ?>");
$("#invoice-rent").html("<?php echo FormatHelper::currency($lease['rent']); ?>");
$("#invoice-late").html("<?php echo FormatHelper::currency($defaultLate); ?>");
$("#invoice-deposit").html("<?php echo FormatHelper::currency($lease['deposit']); ?>");
onGridState(null, 'hidden');
<?php else: ?>
onGridState(null, 'visible');

View File

@@ -33,11 +33,13 @@ for ($i=1; $i<=4; ++$i)
if (!empty($ttype["data{$i}_name"]))
$rows[] = array($ttype["data{$i}_name"], $tender["data{$i}"]);
if (!empty($tender['deposit_transaction_id']))
$rows[] = array('Deposit', $html->link('#'.$tender['deposit_transaction_id'],
array('controller' => 'transactions',
'action' => 'deposit_slip',
$tender['deposit_transaction_id'])));
$rows[] = array('Deposit',
empty($tender['deposit_transaction_id'])
? "-"
: $html->link('#'.$tender['deposit_transaction_id'],
array('controller' => 'transactions',
'action' => 'deposit_slip',
$tender['deposit_transaction_id'])));
if (!empty($tender['nsf_transaction_id']))
$rows[] = array('NSF', $html->link('#'.$tender['nsf_transaction_id'],

View File

@@ -16,6 +16,14 @@ div#debug-kit-toolbar
{ display: none; }
/************************************************************
* Form inputs
*/
/* The "page N / M" input box... make it look like normal text */
input[type='button'], input[type='submit'], input[type='reset']
{ display: none; }
/************************************************************
* Grid display
*/

View File

@@ -67,7 +67,17 @@ function dump(element, limit, depth) {
if (props.length == 0)
return '';
return pad + '<ol><li>' + props.join("</li>\n" + pad + pad1 + "<li>") + "</li>\n" + pad + "</ol>";
if (typeof dump.dumpid == 'undefined')
dump.dumpid = 0;
++dump.dumpid;
return (pad
+ '<A HREF="#" ONCLICK="$(\'#dumpid-'+dump.dumpid+'\').toggle(); return false;">(hide members)</A><BR>'
+ '<ol id="dumpid-'+dump.dumpid+'" STYLE="padding-top:0; margin-top:0;">'
+ '<li>'
+ props.join("</li>\n" + pad + pad1 + '<li id="dumpid-'+dump.dumpid+'">')
+ "</li>\n"
+ pad + "</ol>");
}
function dump_window(element, limit) {
@@ -158,70 +168,103 @@ function datepicker(id) {
}
}
function datepickerNow(id, usetime) {
var now = new Date();
if ($("#"+id).datepicker != null) {
// datepicker seems to squash the time portion,
// so we have to pass in a copy of now instead.
$("#"+id).datepicker('setDate', new Date(now));
}
else {
$("#"+id).val(((now.getMonth()+1) < 10 ? '0' : '')
+ (now.getMonth()+1) + '/'
+ (now.getDate() < 10 ? '0' : '')
+ now.getDate() + '/'
+ now.getFullYear());
}
if (usetime == null)
usetime = true;
$("#"+id).val($("#"+id).val() +
(usetime
? (' '
+ (now.getHours() < 10 ? '0' : '')
+ now.getHours() + ':'
+ (now.getMinutes() < 10 ? '0' : '')
+ now.getMinutes())
: ''));
}
function datepickerSet(fromid, id, a, b) {
var dt;
if (fromid == null)
function datepickerGet(id) {
if (id == null)
dt = new Date();
else {
if ($("#"+id).datepicker != null)
dt = new Date($("#"+fromid).datepicker('getDate'));
else
dt = new Date($("#"+fromid).val());
if ($("#"+id).datepicker != null && $("#"+id).datepicker('getDate') != null)
dt = new Date($("#"+id).datepicker('getDate'));
else if ($("#"+id).val())
dt = new Date($("#"+id).val());
else
dt = null;
}
if (a != null)
dt.setDate(a);
if (b != null)
dt.setDate(b);
return dt;
}
if ($("#"+id).datepicker != null)
$("#"+id).datepicker('setDate', dt);
function datepickerStr(id) {
return dateStr(datepickerGet(id));
}
function datepickerSet(id, dt_or_str, usetime) {
if ($("#"+id).datepicker != null && $("#"+id).datepicker('getDate') != null) {
// datepicker seems to squash the time portion,
// so we have to pass in a copy of dt instead.
$("#"+id).datepicker('setDate', new Date(dt_or_str));
if (usetime)
$("#"+id).val($("#"+id).val() + ' ' + timeStr(dt_or_str));
}
else {
$("#"+id).val(((dt.getMonth()+1) < 10 ? '0' : '')
+ (dt.getMonth()+1) + '/'
+ (dt.getDate() < 10 ? '0' : '')
+ dt.getDate() + '/'
+ dt.getFullYear());
$("#"+id).val(dateStr(dt_or_str), usetime);
}
}
function datepickerBOM(fromid, id) {
datepickerSet(fromid, id, 1);
function datepickerNow(id, usetime) {
datepickerSet(id, new Date(), usetime == null ? true : usetime);
}
function datepickerEOM(fromid, id) {
datepickerSet(fromid, id, 32, 0);
function dateStr(dt_or_str, usetime) {
var dt = new Date(dt_or_str);
return (((dt.getMonth()+1) < 10 ? '0' : '')
+ (dt.getMonth()+1) + '/'
+ (dt.getDate() < 10 ? '0' : '')
+ dt.getDate() + '/'
+ dt.getFullYear()
+ (usetime ? ' ' + timeStr(dt) : ''));
}
function timeStr(dt_or_str) {
var dt = new Date(dt_or_str);
return ((dt.getHours() < 10 ? '0' : '')
+ dt.getHours() + ':'
+ (dt.getMinutes() < 10 ? '0' : '')
+ dt.getMinutes());
}
function dateAdd(dt_or_str, a, b, m, d) {
var dt = new Date(dt_or_str);
if (m != null) {
dt.setDate(1);
dt.setMonth(dt.getMonth() + m);
//$('#debug').append('set month ('+m+') ' + (dt.getMonth() + m) + '= ' + dt + '<BR>');
}
if (d != null) {
dt.setDate(dt.getDate() + d);
//$('#debug').append('set day ('+d+') ' + (dt.getDate() + d) + '= ' + dt + '<BR>');
}
if (a != null) {
dt.setDate(a);
//$('#debug').append('set date ('+a+') = ' + dt + '<BR>');
}
if (b != null) {
dt.setDate(b);
//$('#debug').append('set date ('+b+') = ' + dt + '<BR>');
}
return dt;
}
function dateYesterday(dt) { return dateAdd(dt,null,null,null,-1); }
function dateTomorrow(dt) { return dateAdd(dt,null,null,null,1); }
function dateBOM(dt) { return dateAdd(dt,1); }
function dateNextBOM(dt) { return dateAdd(dt,1,null,1); }
function dateEOM(dt) { return dateAdd(dt,32,0); }
function dateNextEOM(dt) { return dateAdd(dt,32,0,1); }
function datepickerBOM(fromid, id)
{ datepickerSet(id, dateBOM(datepickerGet(fromid))); }
function datepickerEOM(fromid, id)
{ datepickerSet(id, dateEOM(datepickerGet(fromid))); }
function datepickerNextBOM(fromid, id)
{ datepickerSet(id, dateNextBOM(datepickerGet(fromid))); }
function datepickerNextEOM(fromid, id)
{ datepickerSet(id, dateNextEOM(datepickerGet(fromid))); }
// REVISIT <AP>: 20090617
// I would rather use XML to pass from JS to PHP, but at the

View File

@@ -1,36 +1,9 @@
When performing a move-in, the receipt page is broken
when trying to enter a concession. javascript complains about
an invalid value, and the page is not submitted.
- Allegedly. I believe Shirley's browser was acting up
on her, and based on the logs, it seems that indeed
what ultimately worked just fine for a concession entry
was really the exact same page that was stuck. While
on the phone it was evident that here browser was
doing a javascript wig-out, and it wasn't related to
a slow internet connection.
Reversing a rent charge is not considered as part of the
"charged-through" date on the lease. Consequently, the
reversal itself ensures the charge is fully "paid", and
the "paid-through" date is also out of whack.
Add invoice rent helpers
- monthly proration tool
- select from/to dates, and hit "prorate"
- charge through date
- enter charge through date, and the invoice
will automatically have charges for each month
from the current charge-through date to the
new charge-through date.
- charge N months
- enter number of months, and the invoice
will automatically have charges for each month
from the current charge-through date for N months
- next rent
- same as, or instead of, "charge N months", where
N is 1
Add NSF Fee to the NSF entry page (It's hardcoded right now
in Transaction to $35).
@@ -48,13 +21,6 @@ be closed and no more charges are possible. The other option
would just be a checkbox to say "close lease (no more charges)",
or let them clear it and have them close the lease manually.
Invoice
- Have some sort of rent-proration tool
- Have Rent automatically populate the Effective/Through
as well as rent (pro-rating if necessary). The dates
should take into account the customer charge through
date, as well as any other rents on the invoice.
Allow waiving a complete charge, even if it already has payments
applied (at the moment, we just can waive the charge balance).
@@ -221,3 +187,37 @@ Unit Size has no controller. Either remove the link from the
units grid, or implement the controller.
When performing a move-in, the receipt page is broken
when trying to enter a concession. javascript complains about
an invalid value, and the page is not submitted.
- Allegedly. I believe Shirley's browser was acting up
on her, and based on the logs, it seems that indeed
what ultimately worked just fine for a concession entry
was really the exact same page that was stuck. While
on the phone it was evident that here browser was
doing a javascript wig-out, and it wasn't related to
a slow internet connection.
Add invoice rent helpers
- monthly proration tool
- select from/to dates, and hit "prorate"
- charge through date
- enter charge through date, and the invoice
will automatically have charges for each month
from the current charge-through date to the
new charge-through date.
- charge N months
- enter number of months, and the invoice
will automatically have charges for each month
from the current charge-through date for N months
- next rent
- same as, or instead of, "charge N months", where
N is 1
Invoice
- Have some sort of rent-proration tool
- Have Rent automatically populate the Effective/Through
as well as rent (pro-rating if necessary). The dates
should take into account the customer charge through
date, as well as any other rents on the invoice.