|
@@ -599,14 +599,16 @@ if $ARGS[0] = 'cikl':
|
|
|
gs 'homes_properties', 'cancel_rent', $property_code[i]
|
|
|
elseif bankAccount = 1 and karta >= property_rent[i]:
|
|
|
'<b><font color="green">Your rent payment of <<property_rent[i]>> <b>₽</b> for your <<$property_name[i]>>, has automatically been deducted from your bank account.</font></b>'
|
|
|
- karta -= property_rent[i]
|
|
|
- gs 'homes_properties', 'add_rent_days', $property_code[i]
|
|
|
+ gs 'homes_properties', 'pay_rent', $property_code[i], 'card'
|
|
|
+ !karta -= property_rent[i]
|
|
|
+ !gs 'homes_properties', 'add_rent_days', $property_code[i]
|
|
|
elseif bankAccount = 1 and karta + bankDebtLimit >= property_rent[i]:
|
|
|
'<b><font color="green">Your rent payment of <<property_rent[i]>> <b>₽</b> for your <<$property_name[i]>>, has automatically been deducted from your bank account and overdraw facility. Please contact your bank regarding your overdraw repayment.</font></b>'
|
|
|
- karta -= property_rent[i]
|
|
|
- gs 'homes_properties', 'add_rent_days', $property_code[i]
|
|
|
+ gs 'homes_properties', 'pay_rent', $property_code[i], 'card'
|
|
|
+ !karta -= property_rent[i]
|
|
|
+ !gs 'homes_properties', 'add_rent_days', $property_code[i]
|
|
|
elseif bankAccount = 0:
|
|
|
- '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<property_rent[i]>> <b>₽</b> for your <<$property_name[i]>>. To avoid eviction, please make manual payment as soon as possible.</font></b>'
|
|
|
+ '<b><font color="red">You currently do not have a bank account setup for automatic rent deduction of <<property_rent[i]>> <b>₽</b> for your <<$property_name[i]>>. To avoid eviction, please make a manual payment as soon as possible.</font></b>'
|
|
|
else
|
|
|
nl
|
|
|
'<b><b><font color="red">Your card was declined during automatic rent deduction of <<property_rent[i]>> <b>₽</b> for your <<$property_name[i]>>. To avoid eviction, please rectify as soon as possible.</font></b>'
|