Skip to content

[16.0][IMP] pms: agencies only pay the stay by default - #461

Open
davidpachecop wants to merge 1 commit into
OCA:16.0from
commitsun:16.0-imp-pms-agency-extras-paid-by-guest
Open

davidpachecop wants to merge 1 commit into
OCA:16.0from
commitsun:16.0-imp-pms-agency-extras-paid-by-guest

Conversation

@davidpachecop

Copy link
Copy Markdown

Agencies invoiced "Always" became the payer of every service of their reservations, extras included (bar, minibar, special dinners...), although the usual contract only covers the stay and the guest pays the extras at the property.

  • By default, an agency invoiced "Always" is now invoiced the nights and the board services; the extra services get no default payer and are invoiced to the guest.
  • New agency option Invoice Extras to Agency (visible with "Invoice Agency: Always") to keep invoicing the extras to the agency.
  • Single condition in pms.service._compute_default_invoice_to. It applies to new services only; existing folios are not rewritten.

Behaviour change: existing agencies invoiced "Always" stop being invoiced the extras of new services unless the option is checked.

Tested with new cases in test_pms_service.py; full pms suite run locally.

Agencies invoiced always also became the payer of the extra services.
By default they are now invoiced the nights and the board services and
the extras are left to the guest; a new agency option keeps invoicing
the extras to the agency.
@davidpachecop

Copy link
Copy Markdown
Author

@DarioLodeiros @jesusVMayor could you review this one? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants