mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Clean up for preload
This commit is contained in:
parent
8e5c825750
commit
271a81da3e
@ -268,7 +268,11 @@ class InvoiceService
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->invoice->due_date = Carbon::parse($this->invoice->date)->addDays($this->invoice->client->getSetting('payment_terms'));
|
//12-10-2022
|
||||||
|
if($this->invoice->partial > 0 && !$this->invoice->partial_due_date)
|
||||||
|
$this->invoice->partial_due_date = Carbon::parse($this->invoice->date)->addDays($this->invoice->client->getSetting('payment_terms'));
|
||||||
|
else
|
||||||
|
$this->invoice->due_date = Carbon::parse($this->invoice->date)->addDays($this->invoice->client->getSetting('payment_terms'));
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@ class UpdateReminder extends AbstractService
|
|||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We only support setting reminders based on the due date, not the partial due date */
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
if (! $this->settings) {
|
if (! $this->settings) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user