account_shared_bank_cash/README.md
2026-06-20 12:55:40 +07:00

42 lines
1.8 KiB
Markdown

# Account Shared Bank Cash
## Overview
This module mirrors the parent company's Bank and Cash accounts to branch companies and provides:
1. **Mirrored Bank/Cash Accounts**: Automatically clones parent company bank/cash accounts and journals to branches on install
2. **POS Inter-Company Clearing**: When a POS session closes, creates automated clearing entries between the branch and parent company
3. **Centralized Vendor Payment**: Branch vendor bills can be paid via parent company's bank journal with inter-company clearing
## Configuration
### 1. POS Inter-Company Clearing
On each `POS Payment Method`:
- **Inter-Company Clearing Account**: The RK account in the branch company
- **Clearing Journal**: A miscellaneous journal for the clearing entry
- **Parent Company**: The parent company for the mirror entry
- **Parent Bank Journal**: The parent's bank journal (outstanding receipt account will be debited)
- **Parent Hubungan RK Account**: The parent's inter-company liability account
- **Parent Clearing Journal**: A miscellaneous journal in the parent for the mirror entry
### 2. Centralized Vendor Payment
On each `Account Journal` (Bank/Cash):
- **Is Centralized Payment**: Enable centralized mode
- **Parent Company**: The parent company
- **Parent Bank Journal**: The parent's actual bank journal
- **Parent Inter-Company Account**: The RK account in the parent (Receivable from branch)
- **Branch Inter-Company Account**: The RK account in the branch (Liability to parent)
## Technical Notes
- **Odoo 17 Compatibility**: Uses mirror account strategy since Odoo 17 `account.account` uses single `company_id`
- **Post-init hook**: Automatically clones parent bank/cash accounts and journals to branches
- **Uninstall hook**: Removes mirrored accounts that have no journal items
## Dependencies
- `point_of_sale`
- `account`