mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 09:34:30 -04:00
Check for default payment method
This commit is contained in:
parent
90bce544e9
commit
403a30685e
@ -95,6 +95,10 @@ class PaymentService extends BaseService
|
||||
|
||||
$paymentMethod = $customer->default_payment_method;
|
||||
|
||||
if (! $paymentMethod) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($paymentMethod->requiresDelayedAutoBill()) {
|
||||
$invoiceDate = \DateTime::createFromFormat('Y-m-d', $invoice->invoice_date);
|
||||
$minDueDate = clone $invoiceDate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user