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,13 +18,15 @@ class InvoiceListener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$invoice = $event->invoice;
|
if (Auth::check()) {
|
||||||
$account = Auth::user()->account;
|
$invoice = $event->invoice;
|
||||||
|
$account = Auth::user()->account;
|
||||||
|
|
||||||
if ($invoice->invoice_design_id
|
if ($invoice->invoice_design_id
|
||||||
&& $account->invoice_design_id != $invoice->invoice_design_id) {
|
&& $account->invoice_design_id != $invoice->invoice_design_id) {
|
||||||
$account->invoice_design_id = $invoice->invoice_design_id;
|
$account->invoice_design_id = $invoice->invoice_design_id;
|
||||||
$account->save();
|
$account->save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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