1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
This commit is contained in:
David Bomba 2022-09-14 16:24:48 +10:00
parent 90c6f4a48c
commit 60d15f5d9f
5 changed files with 7 additions and 5 deletions

View File

@ -23,6 +23,12 @@ class BankTransaction extends BaseModel
protected $dates = [
];
protected $casts = [
'updated_at' => 'timestamp',
'created_at' => 'timestamp',
'deleted_at' => 'timestamp',
];
public function getEntityType()
{
return self::class;

View File

@ -12,6 +12,7 @@
namespace App\Models;
use App\DataMapper\CompanySettings;
use App\Models\BankTransaction;
use App\Models\Language;
use App\Models\Presenters\CompanyPresenter;
use App\Models\PurchaseOrder;

View File

@ -13,7 +13,6 @@ namespace App\Transformers;
use App\Models\Account;
use App\Models\BankIntegration;
use App\Models\BankTransaction;
use App\Utils\Traits\MakesHash;
/**

View File

@ -12,7 +12,6 @@
namespace App\Transformers;
use App\Models\Account;
use App\Models\BankIntegration;
use App\Models\BankTransaction;
use App\Models\Company;
use App\Models\Expense;

View File

@ -234,9 +234,6 @@ class CompanyTransformer extends EntityTransformer
{
$transformer = new BankTransactionTransformer($this->serializer);
nlog("GEEET");
nlog($company->bank_transactions()->count());
return $this->includeCollection($company->bank_transactions, $transformer, BankTransaction::class);
}