mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Bug fixes
This commit is contained in:
parent
8cefa9a707
commit
ac58df4441
@ -18,6 +18,7 @@ class InvoiceListener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Auth::check()) {
|
||||||
$invoice = $event->invoice;
|
$invoice = $event->invoice;
|
||||||
$account = Auth::user()->account;
|
$account = Auth::user()->account;
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ class InvoiceListener
|
|||||||
$account->save();
|
$account->save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function updatedInvoice(InvoiceWasUpdated $event)
|
public function updatedInvoice(InvoiceWasUpdated $event)
|
||||||
{
|
{
|
||||||
|
@ -513,6 +513,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
|||||||
$dueDateVal = strtotime($this->due_date);
|
$dueDateVal = strtotime($this->due_date);
|
||||||
$monthVal = (int)date('n', $dueDateVal);
|
$monthVal = (int)date('n', $dueDateVal);
|
||||||
$dayVal = (int)date('j', $dueDateVal);
|
$dayVal = (int)date('j', $dueDateVal);
|
||||||
|
$dueDate = false;
|
||||||
|
|
||||||
if($monthVal == 1) {// January; day of month
|
if($monthVal == 1) {// January; day of month
|
||||||
$currentDay = (int)date('j', $now);
|
$currentDay = (int)date('j', $now);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user