mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 01:54:29 -04:00
Fixes for pre purchase
This commit is contained in:
parent
d91099a279
commit
033ce1af95
@ -267,6 +267,7 @@ class InstantPayment
|
||||
'amount_with_fee' => $invoice_totals + $fee_totals,
|
||||
'client' => $client,
|
||||
'pre_payment' => $this->request->pre_payment,
|
||||
'is_recurring' => $this->request->is_recurring,
|
||||
];
|
||||
|
||||
if ($is_credit_payment || $totals <= 0) {
|
||||
|
@ -21,7 +21,7 @@
|
||||
$checked_off = '';
|
||||
}
|
||||
|
||||
if (isset($pre_payment) && $pre_payment == '1') {
|
||||
if (isset($pre_payment) && $pre_payment == '1' && isset($is_recurring) && $is_recurring == '1') {
|
||||
$token_billing_string = 'true';
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
$token_billing_string = 'false';
|
||||
}
|
||||
|
||||
if (isset($pre_payment) && $pre_payment == '1') {
|
||||
if (isset($pre_payment) && $pre_payment == '1' && isset($is_recurring) && $is_recurring == '1') {
|
||||
$token_billing_string = 'true';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user