mirror of
https://bitbucket.org/presik/trytonpsk-hotel.git
synced 2023-12-14 07:52:52 +01:00
Minor fixes
This commit is contained in:
parent
2c0c60da16
commit
1d41f8eba0
|
@ -690,7 +690,7 @@ class Booking(Workflow, ModelSQL, ModelView):
|
||||||
res[party.id] = {
|
res[party.id] = {
|
||||||
'party': party,
|
'party': party,
|
||||||
'currency': bk.currency.id,
|
'currency': bk.currency.id,
|
||||||
'payment_term': bk.payment_term,
|
'payment_term': bk.payment_term.id,
|
||||||
'number': bk.number,
|
'number': bk.number,
|
||||||
'reference': [folio.registration_card],
|
'reference': [folio.registration_card],
|
||||||
'rooms': [folio.room.name],
|
'rooms': [folio.room.name],
|
||||||
|
|
4
folio.py
4
folio.py
|
@ -383,8 +383,10 @@ class Folio(ModelSQL, ModelView):
|
||||||
_check_charges(self)
|
_check_charges(self)
|
||||||
_check_accommodation(self)
|
_check_accommodation(self)
|
||||||
elif bk.responsible_payment == 'holder':
|
elif bk.responsible_payment == 'holder':
|
||||||
if self.main_guest == bk.party:
|
if bk.payment_term and bk.payment_term.payment_type == 2:
|
||||||
|
return
|
||||||
|
|
||||||
|
if self.main_guest == bk.party:
|
||||||
for folio in bk.lines:
|
for folio in bk.lines:
|
||||||
if bk.pending_to_pay == 0:
|
if bk.pending_to_pay == 0:
|
||||||
for charge in folio.charges:
|
for charge in folio.charges:
|
||||||
|
|
Loading…
Reference in a new issue