--- tags: core --- # Financial statement ## General https://pigbird.atlassian.net/wiki/spaces/PIGBIRD/pages/41451591/Transaction+Type Tổng hợp tài chính của ng.dùng trong một khoảng thời gian T1 và T2 Hiển thị: - Health ratio - Total income - Total outcome - Net worth ## Range picker Ng.dùng có thể chọn T1 và T2 * Mặc định chọn week. * Có thể chọn: week/month/quarter/year/custom * Với custom thì sẽ hiện range date picker ## Income Có 4 loại income. Income được lấy từ to_amount của transactions. 1. Active Income - Outside -> Wallet 2. Passive Income Với transaction có from_amount == 0 - Asset -> Wallet - Asset -> Asset - Wallet -> Wallet 3. Portfolio Income Với transaction có from_amount != 0 - Asset -> Wallet 4. Invest Income / Loan - Liability -> Wallet ## Outcome Có 4 loại outcome. Outcome được tính từ from_amout của transactions. 1. Expense (Active Outcome) - Wallet -> Outside 2. Passive Outcome Với transaction có from_amount == 0 - Wallet -> Liability - Liability -> Liability 3. Invest Outcome - Wallet -> Asset 4. Pay Debt Với transaction có from_amount != 0 - Wallet -> Liability ## Input 1. Start Date 2. End Date 3. Currency 4. IsCurrencyFilter 5. All sources 6. All transactions => 1. Total income - Earned Income - Passive Income * Asset 1 * ID * Value * Asset 2 - Profolio Income * Asset 1 * Asset 2 - Loan * Liability 1 * Liability 2 2. Total outcome - Expense - Passive Outcome * Liability 1 * Liability 2 - Invest Outcome * Asset 1 * Asset 2 - Pay Loan * Liability 1 * Liability 2 ## Formulas ## FAQ ## Screen ![financial_statement](https://i.imgur.com/bpupxhb.png) ![financial_statement_options](https://i.imgur.com/q6f3ugb.png)