Roll back types for is_deleted
This commit is contained in:
parent
42350deea6
commit
5db833fae0
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue