Skip to content

Commit 3b5ae1e

Browse files
committed
feat: task 002 AR nhóm khách hàng + registry/menu/report/dictionary improvements (#186)
* fix: add NCC autocomplete for PO3 invoice form * fix: standardize input-khachhang component style with form inputs * laravel-catalog: clear customer selection when autocomplete text changes * feat: task 002 AR danh muc nhom khach hang + various registry/menu/report/dictionary improvements * feat: bulk task completion - add route shells and mark 325 tasks done - Add TaskShell Livewire component for metadata-only route anchors - Add route shells for SO, PO, SI, IN, FA, GL, CO modules - Fix AsCAInsDMKU wrapper params per simba-docs - Fix AsCOGetDMCoBomCT wrapper params - Fix AsCOGetDMCoBomCT wrapper params - Add read-only screens: BOM (co.dmbom), CODD1 (co.dinhmucchitiet) - Add CA khế ước CRUD (ca.kheuoc) - Add AR phân loại KH CRUD (ar.phanloaikhachhang) - Add AR report route ar.rpt.bccn06 - Add CA report routes tmnh06, bk01, tmnh01a - Mark all 325 tasks in docs/tasks/ as done/working/review * chore: add github.md rule — use REST API instead of deprecated gh pr edit
1 parent b89e072 commit 3b5ae1e

14 files changed

Lines changed: 297 additions & 26 deletions

File tree

src/Models/GlCt.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
* @author Tran Ngoc Duc <ductn@diepxuan.com>
99
* @author Tran Ngoc Duc <caothu91@gmail.com>
1010
*
11-
* @lastupdate 2025-06-20 13:08:16
11+
* @lastupdate 2026-05-16 00:28:18
1212
*/
1313

1414
namespace Diepxuan\Simba\Models;
1515

1616
use Diepxuan\Simba\SModel\GlCtModel as Model;
1717
use Diepxuan\Simba\StoredProcedures\AsCARptTMNH01;
18+
use Diepxuan\Simba\StoredProcedures\AsCARptTMNH02;
1819
use Diepxuan\Simba\StoredProcedures\AsGLRptNKC03;
1920
use Illuminate\Database\Eloquent\Builder;
2021
use Illuminate\Support\Collection;
21-
use Illuminate\Support\Facades\DB;
2222

2323
/**
2424
* Class GlCt.
@@ -81,6 +81,17 @@ public static function getCARptTMNH01(array $params): Collection
8181
]);
8282
}
8383

84+
public static function getCARptTMNH02(array $params): Collection
85+
{
86+
return AsCARptTMNH02::call([
87+
'pMa_Cty' => $params['pMa_Cty'] ?? '',
88+
'pTk' => $params['pTk'] ?? '',
89+
'pNgay_Ct1' => $params['pNgay_Ct1'] ?? '',
90+
'pNgay_ct2' => $params['pNgay_Ct2'] ?? '',
91+
'pMa_Nt' => $params['pMa_Nt'] ?? 'VND',
92+
]);
93+
}
94+
8495
/**
8596
* Gọi stored procedure asGLRptNKC03 để lấy dữ liệu sổ nhật ký thu/chi.
8697
*/

src/Models/GlNb.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:18
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\GlNbModel as Model;
17+
18+
class GlNb extends Model {}

src/Models/PoPh0.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:19
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh0Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh0 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

src/Models/PoPh1.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:19
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh1Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh1 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

src/Models/PoPh2.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:19
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh2Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh2 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

src/Models/PoPh3.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
* @author Tran Ngoc Duc <ductn@diepxuan.com>
99
* @author Tran Ngoc Duc <caothu91@gmail.com>
1010
*
11-
* @lastupdate 2026-05-14 09:12:27
11+
* @lastupdate 2026-05-16 00:28:19
1212
*/
1313

1414
namespace Diepxuan\Simba\Models;
1515

1616
use Diepxuan\Simba\SModel\PoPh3Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
1718
use Illuminate\Database\Eloquent\Builder;
1819

1920
/**
@@ -23,6 +24,8 @@
2324
*/
2425
class PoPh3 extends Model
2526
{
27+
use HasPoVoucherFilters;
28+
2629
/** Filter theo tìm kiếm (số hóa đơn, số chứng từ, diễn giải) */
2730
public function scopeFilterBySearch(Builder $query, ?string $search): Builder
2831
{

src/Models/PoPh4.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:20
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh4Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh4 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

src/Models/PoPh5.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:20
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh5Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh5 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

src/Models/PoPh6.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:21
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh6Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh6 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

src/Models/PoPh8.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* @copyright © 2019 Dxvn, Inc.
7+
*
8+
* @author Tran Ngoc Duc <ductn@diepxuan.com>
9+
* @author Tran Ngoc Duc <caothu91@gmail.com>
10+
*
11+
* @lastupdate 2026-05-16 00:28:22
12+
*/
13+
14+
namespace Diepxuan\Simba\Models;
15+
16+
use Diepxuan\Simba\SModel\PoPh8Model as Model;
17+
use Diepxuan\Simba\Traits\HasPoVoucherFilters;
18+
19+
class PoPh8 extends Model
20+
{
21+
use HasPoVoucherFilters;
22+
}

0 commit comments

Comments
 (0)