mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
minor fixes
This commit is contained in:
parent
6138f11ece
commit
540dd2f43e
@ -112,8 +112,7 @@ class CreateRawPdf
|
|||||||
try {
|
try {
|
||||||
$pdf = $ps->boot()->getPdf();
|
$pdf = $ps->boot()->getPdf();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
echo "EXCEPTION::".PHP_EOL;
|
nlog($e->getMessage());
|
||||||
echo $e->getMessage().PHP_EOL;
|
|
||||||
throw new FilePermissionsFailure('Unable to generate the raw PDF');
|
throw new FilePermissionsFailure('Unable to generate the raw PDF');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ class UpdateInvoiceActivity implements ShouldQueue
|
|||||||
{
|
{
|
||||||
protected $activity_repo;
|
protected $activity_repo;
|
||||||
|
|
||||||
|
public $delay = 10;
|
||||||
/**
|
/**
|
||||||
* Create the event listener.
|
* Create the event listener.
|
||||||
*
|
*
|
||||||
|
@ -81,6 +81,8 @@ class ActivityRepository extends BaseRepository
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$entity = $entity->fresh();
|
||||||
|
|
||||||
if (get_class($entity) == Invoice::class
|
if (get_class($entity) == Invoice::class
|
||||||
|| get_class($entity) == Quote::class
|
|| get_class($entity) == Quote::class
|
||||||
|| get_class($entity) == Credit::class
|
|| get_class($entity) == Credit::class
|
||||||
|
@ -292,9 +292,9 @@ class InvoiceService
|
|||||||
|
|
||||||
//12-10-2022
|
//12-10-2022
|
||||||
if ($this->invoice->partial > 0 && !$this->invoice->partial_due_date) {
|
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'));
|
$this->invoice->partial_due_date = Carbon::parse($this->invoice->date)->addDays((int)$this->invoice->client->getSetting('payment_terms'));
|
||||||
} else {
|
} else {
|
||||||
$this->invoice->due_date = Carbon::parse($this->invoice->date)->addDays($this->invoice->client->getSetting('payment_terms'));
|
$this->invoice->due_date = Carbon::parse($this->invoice->date)->addDays((int)$this->invoice->client->getSetting('payment_terms'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user