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

Add types to report exports

This commit is contained in:
David Bomba 2023-03-09 07:49:18 +11:00
parent 7219345ca6
commit 8c701d2de2
14 changed files with 27 additions and 1 deletions

View File

@ -28,6 +28,8 @@ class ClientExport extends BaseExport
private $contact_transformer;
public Writer $csv;
public string $date_key = 'created_at';
public array $entity_keys = [

View File

@ -29,6 +29,8 @@ class ContactExport extends BaseExport
private ClientContactTransformer $contact_transformer;
public Writer $csv;
public string $date_key = 'created_at';
public array $entity_keys = [

View File

@ -27,6 +27,8 @@ class CreditExport extends BaseExport
public string $date_key = 'created_at';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'balance' => 'balance',

View File

@ -27,6 +27,8 @@ class DocumentExport extends BaseExport
public string $date_key = 'created_at';
public Writer $csv;
public array $entity_keys = [
'record_type' => 'record_type',
// 'record_name' => 'record_name',

View File

@ -27,6 +27,8 @@ class ExpenseExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'category' => 'category_id',

View File

@ -27,6 +27,8 @@ class InvoiceExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'balance' => 'balance',

View File

@ -28,6 +28,8 @@ class InvoiceItemExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'balance' => 'balance',

View File

@ -27,6 +27,8 @@ class PaymentExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'applied' => 'applied',

View File

@ -28,6 +28,8 @@ class ProductExport extends BaseExport
public string $date_key = 'created_at';
public Writer $csv;
public array $entity_keys = [
'project' => 'project_id',
'vendor' => 'vendor_id',

View File

@ -27,6 +27,8 @@ class QuoteExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'balance' => 'balance',

View File

@ -27,6 +27,8 @@ class QuoteItemExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'balance' => 'balance',

View File

@ -27,6 +27,8 @@ class RecurringInvoiceExport extends BaseExport
public string $date_key = 'date';
public Writer $csv;
public array $entity_keys = [
'amount' => 'amount',
'balance' => 'balance',

View File

@ -32,6 +32,8 @@ class TaskExport extends BaseExport
private string $date_format = 'YYYY-MM-DD';
public Writer $csv;
public array $entity_keys = [
'start_date' => 'start_date',
'end_date' => 'end_date',

View File

@ -56,8 +56,8 @@ class GenericReportRequest extends Request
$input['start_date'] = null;
$input['end_date'] = null;
}
nlog($input);
$this->replace($input);
}
}