mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Logging
This commit is contained in:
parent
60d15f5d9f
commit
8d91b7d85f
@ -23,12 +23,6 @@ class BankIntegration extends BaseModel
|
||||
protected $dates = [
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'updated_at' => 'timestamp',
|
||||
'created_at' => 'timestamp',
|
||||
'deleted_at' => 'timestamp',
|
||||
];
|
||||
|
||||
public function getEntityType()
|
||||
{
|
||||
return self::class;
|
||||
|
@ -22,13 +22,7 @@ class BankTransaction extends BaseModel
|
||||
|
||||
protected $dates = [
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'updated_at' => 'timestamp',
|
||||
'created_at' => 'timestamp',
|
||||
'deleted_at' => 'timestamp',
|
||||
];
|
||||
|
||||
|
||||
public function getEntityType()
|
||||
{
|
||||
return self::class;
|
||||
|
@ -67,6 +67,7 @@ class CompanyTransformer extends EntityTransformer
|
||||
* @var array
|
||||
*/
|
||||
protected $availableIncludes = [
|
||||
'bank_transactions',
|
||||
'documents',
|
||||
'users',
|
||||
'designs',
|
||||
@ -103,7 +104,6 @@ class CompanyTransformer extends EntityTransformer
|
||||
'recurring_expenses',
|
||||
'purchase_orders',
|
||||
'bank_integrations',
|
||||
'bank_transactions',
|
||||
];
|
||||
|
||||
/**
|
||||
@ -223,6 +223,16 @@ class CompanyTransformer extends EntityTransformer
|
||||
return $this->includeCollection($company->tokens, $transformer, CompanyToken::class);
|
||||
}
|
||||
|
||||
public function includeBankTransactions(Company $company)
|
||||
{
|
||||
$transformer = new BankTransactionTransformer($this->serializer);
|
||||
|
||||
nlog("GEET");
|
||||
nlog($company->bank_transactions()->count());
|
||||
|
||||
return $this->includeCollection($company->bank_transactions, $transformer, BankTransaction::class);
|
||||
}
|
||||
|
||||
public function includeBankIntegrations(Company $company)
|
||||
{
|
||||
$transformer = new BankIntegrationTransformer($this->serializer);
|
||||
@ -230,13 +240,6 @@ class CompanyTransformer extends EntityTransformer
|
||||
return $this->includeCollection($company->bank_integrations, $transformer, BankIntegration::class);
|
||||
}
|
||||
|
||||
public function includeBankTransactions(Company $company)
|
||||
{
|
||||
$transformer = new BankTransactionTransformer($this->serializer);
|
||||
|
||||
return $this->includeCollection($company->bank_transactions, $transformer, BankTransaction::class);
|
||||
}
|
||||
|
||||
public function includeTokensHashed(Company $company)
|
||||
{
|
||||
$transformer = new CompanyTokenHashedTransformer($this->serializer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user