52 lines
2.3 KiB
Markdown
52 lines
2.3 KiB
Markdown
# 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
|
|
1. Go to Point of Sale > Configuration > Payment Methods
|
|
2. Edit a payment method
|
|
3. In the Accounting section, set the "Income Account" field to specify which account should be used for sales paid with this method
|
|
4. 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:
|
|
|
|
1. `_accumulate_amounts()` - Modifies how sales amounts are accumulated to include payment method information and use specific income accounts
|
|
2. `_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
|
|
|
|
1. Place the module in your Odoo addons directory
|
|
2. Update the Apps list in Odoo
|
|
3. 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
|