我有一個會計問題,我需要控制現金流量。 其實我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示例。
感謝大家,我已經編輯過這個話題,我希望現在更清楚。