mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 15:34:30 -04:00
Merge check for paymentMethod
This commit is contained in:
parent
60c63c8160
commit
ecdc848812
@ -93,6 +93,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