| models | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| CONFIGURATION.md | ||
| README.md | ||
Split Pendapatan Payment
This module modifies Point of Sale transactions to split income/pendapatan journal entries per payment method used in the transaction.
Overview
In standard Odoo Point of Sale, all sales income is recorded in a single journal entry line regardless of the payment methods used. This module changes that behavior by creating separate income lines for each payment method used in the transactions.
For example, if a session has sales paid with both cash and credit card, instead of creating one income line for all sales, the module will create separate income lines:
- Sales - Cash
- Sales - Credit Card
Features
- Splits income journal entries by payment method
- Maintains proper accounting reconciliation
- Works with all payment methods (cash, bank transfers, credit cards, etc.)
- Preserves tax calculations and reporting
- Allows linking specific income accounts to payment methods
Configuration
Payment Method Configuration
- Go to Point of Sale > Configuration > Payment Methods
- Edit a payment method
- In the Accounting section, set the "Income Account" field to specify which account should be used for sales paid with this method
- If left empty, the default product income account will be used
How it works
The module inherits from the pos.session model and overrides two key methods:
_accumulate_amounts()- Modifies how sales amounts are accumulated to include payment method information and use specific income accounts_get_sale_vals()- Customizes the journal entry line descriptions to include payment method names
The module also extends the pos.payment.method model to add an "Income Account" field that allows you to specify which account should be used for sales paid with each payment method.
Installation
- Place the module in your Odoo addons directory
- Update the Apps list in Odoo
- Install the "Split Pendapatan Payment" module
Compatibility
This module is designed for Odoo 17.0 and is compatible with the standard Point of Sale module.
Limitations
- Only affects non-invoiced POS orders (invoiced orders follow standard Odoo accounting)
- May require adjustments if used with other POS customization modules that also modify journal entries