这是我的数据库表
fee_table
|id|type_id|amount |due_date |status|balance|
|1 |1 |200.00 |2013-02-22|paid |0.00 |
fee_payments
id |fee_id|amount_paid
|1 |1 |200.00|
purchase_table
|id|item_id|amount |due_date |status|balance|
|1 |1 |3000.00 |2013-01-23|paid |0.00 |
purchase_payments
id |purchase_id|amount_paid
1 |1 |200.00
advance_payments
id |amount_paid
1 | 500