Skip to content

Commit

Permalink
Merge pull request #31 from coolerParty/feature_24_detailed_statement…
Browse files Browse the repository at this point in the history
…_of_financial_position

Detailed Statement of financial position Report/PDF added. Account Ch…
  • Loading branch information
coolerParty authored Nov 25, 2022
2 parents b5b0b3c + 579820f commit 66af0d2
Show file tree
Hide file tree
Showing 8 changed files with 1,279 additions and 588 deletions.
373 changes: 357 additions & 16 deletions app/Http/Controllers/FinancialStatementReportController.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/Models/AccountChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AccountChart extends Model
protected $table = "account_charts";

protected $fillable = [
'code', 'name','acctgrp_id','mjracctgrp_id','submjracctgrp_id'
'code', 'name','acctgrp_id','mjracctgrp_id','submjracctgrp_id', 'current_non'
];

public function accountGroup()
Expand Down
6 changes: 6 additions & 0 deletions app/Models/AccountGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class AccountGroup extends Model
{
Expand All @@ -14,4 +15,9 @@ class AccountGroup extends Model
protected $fillable = [
'code', 'name','seq_no'
];

public function accountCharts() : HasMany
{
return $this->hasMany(AccountChart::Class,'acctgrp_id');
}
}
5 changes: 5 additions & 0 deletions app/Models/MajorAccountGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class MajorAccountGroup extends Model
{
Expand All @@ -15,4 +16,8 @@ class MajorAccountGroup extends Model
'code', 'name','seq_no'
];

public function accountCharts() : HasMany
{
return $this->hasMany(AccountChart::Class,'mjracctgrp_id');
}
}
6 changes: 6 additions & 0 deletions app/Models/SubMajorAccountGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class SubMajorAccountGroup extends Model
{
Expand All @@ -15,4 +16,9 @@ class SubMajorAccountGroup extends Model
'code', 'name','seq_no'
];

public function accountCharts() : HasMany
{
return $this->hasMany(AccountChart::Class,'submjracctgrp_id');
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function up()
$table->BigInteger('acctgrp_id')->unsigned()->nullable();
$table->BigInteger('mjracctgrp_id')->unsigned()->nullable();
$table->BigInteger('submjracctgrp_id')->unsigned()->nullable();
$table->tinyInteger('current_non')->nullable(); // 1=Current, 2, Non-current,
$table->timestamps();
$table->foreign('acctgrp_id')->references('id')->on('account_groups');
$table->foreign('mjracctgrp_id')->references('id')->on('major_account_groups');
Expand Down
1,142 changes: 571 additions & 571 deletions database/seeders/AccountChartSeeder.php

Large diffs are not rendered by default.

Loading

0 comments on commit 66af0d2

Please sign in to comment.