1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00

Updates for recurring invoice transformer

This commit is contained in:
David Bomba 2023-04-19 15:57:49 +10:00
parent bf0d39cbb7
commit 3661f4d50b

View File

@ -59,10 +59,17 @@ class RecurringInvoiceTransformer extends BaseTransformer
'date' => isset($invoice_data['invoice.date'])
? $this->parseDate($invoice_data['invoice.date'])
: now()->format('Y-m-d'),
'next_send_date' => isset($invoice_data['invoice.next_send_date'])
? $this->parseDate($invoice_data['invoice.next_send_date'])
: now()->format('Y-m-d'),
'next_send_date_client' => isset($invoice_data['invoice.next_send_date'])
? $this->parseDate($invoice_data['invoice.next_send_date'])
: now()->format('Y-m-d'),
'due_date' => isset($invoice_data['invoice.due_date'])
? $this->parseDate($invoice_data['invoice.due_date'])
: null,
'terms' => $this->getString($invoice_data, 'invoice.terms'),
'due_date_days' => 'terms',
'public_notes' => $this->getString(
$invoice_data,
'invoice.public_notes'