1.2 KiB
1.2 KiB
POS Cash Opening Adjustment
This module provides adjustments for the POS opening cash mechanism in Odoo 19.
Features
- Overrides
_set_opening_control_datato properly initialize and trackopening_cash_expectedandopening_cash_countedwhile utilizing Odoo's native functionality. - Tracks opening cash correctly so that the system correctly calculates differences.
- Leverages standard Odoo 19 journal handling for robust accounting integration.
- Suppresses positive cash differences automatically via standard backend validations, adjusting the
cash_register_balance_end_realto match the expected balance when there is a surplus.
Technical Details
This module modifies the pos.session object, tracking:
opening_cash_expected: The expected cash balance when opening the session.opening_cash_counted: The actual cash counted by the cashier.opening_cash_difference: Computed difference between counted and expected opening cash.
It modifies the standard _validate_session process strictly for suppressing positive discrepancies (where the ending cash register is higher than expected), logging the event into the chatter.
Author
Suherdy Yacob