我有一个会计问题,我需要控制现金流量。 其实我schemma是somehing这样的:会计管理解决方案
**invoice_payable** control all my payable invoices
**invoices_receivale** control all my receivale invoices
我也有其他的实体只接收付款。他们是:
**invpay_paid** and **invrec_paid**
它只收到来自前两个表的付款。
现在我需要生成每日余额,这是没有问题的,因为它已经完成,但在飞行中。我需要将每日余额保存在一个新表格中,我称之为balance_history。
现在我将尝试提供有关我的表格的更多详细信息。
我invpay_paid看起来像这样
id | invoiceid | amount_recvs | recv_data | cashier | company
的balance_history看起来像这样
id | balance | balance_date | cashier | company
的invrec_paid有一点不同。但遵循相同的逻辑。
问题是,我需要由公司和收银员来支付账单,我真的需要这样做因为不止是每天都有一笔付款的公司和收银员。
我对此非常困惑。如何控制同一地点的所有付款,但不同的公司和收银员(银行)。
这里遵循我的数据模型:http://deepcell.org/app/AccountingDataModel.png示例。
感谢大家,我已经编辑过这个话题,我希望现在更清楚。