Roll back types for is_deleted

This commit is contained in:
David Bomba 2025-11-23 20:32:05 +11:00 committed by Jonay Marrero
parent 42350deea6
commit 5db833fae0
4 changed files with 6 additions and 4 deletions

View File

@ -126,7 +126,7 @@ class Project extends BaseModel
'name' => ctrans('texts.project') . " " . $this->number . ' | ' . $this->name . " | " . $this->client->present()->name(),
'hashed_id' => $this->hashed_id,
'number' => (string)$this->number,
'is_deleted' => (bool)$this->is_deleted,
'is_deleted' => $this->is_deleted,
'task_rate' => (float) $this->task_rate,
'budgeted_hours' => (float) $this->budgeted_hours,
'due_date' => $this->due_date,

View File

@ -234,7 +234,7 @@ class PurchaseOrder extends BaseModel
'name' => ctrans('texts.purchase_order') . " " . $this->number . " | " . $this->vendor->present()->name() . ' | ' . Number::formatMoney($this->amount, $this->company) . ' | ' . $this->translateDate($this->date, $this->company->date_format(), $locale),
'hashed_id' => $this->hashed_id,
'number' => (string)$this->number,
'is_deleted' => (bool)$this->is_deleted,
'is_deleted' => $this->is_deleted,
'amount' => (float) $this->amount,
'balance' => (float) $this->balance,
'due_date' => $this->due_date,

View File

@ -330,7 +330,7 @@ class RecurringInvoice extends BaseModel
'name' => ctrans('texts.recurring_invoice') . " " . $this->number . " | " . $this->client->present()->name() . ' | ' . Number::formatMoney($this->amount, $this->company) . ' | ' . $this->translateDate($this->date, $this->company->date_format(), $locale),
'hashed_id' => $this->hashed_id,
'number' => (string)$this->number,
'is_deleted' => (bool)$this->is_deleted,
'is_deleted' => $this->is_deleted,
'amount' => (float) $this->amount,
'balance' => (float) $this->balance,
'due_date' => $this->due_date,

View File

@ -1344,7 +1344,9 @@ class Peppol extends AbstractService
}
if (isset($this->invoice->e_invoice->Invoice->InvoicePeriod[0])) {
if (isset($this->invoice->e_invoice->Invoice->InvoicePeriod[0]) &&
isset($this->invoice->e_invoice->Invoice->InvoicePeriod[0]->StartDate) &&
isset($this->invoice->e_invoice->Invoice->InvoicePeriod[0]->EndDate)) {
$ip = new \InvoiceNinja\EInvoice\Models\Peppol\PeriodType\InvoicePeriod();
$ip->StartDate = new \DateTime($this->invoice->e_invoice->Invoice->InvoicePeriod[0]->StartDate);
$ip->EndDate = new \DateTime($this->invoice->e_invoice->Invoice->InvoicePeriod[0]->EndDate);