Commit 354fd88
feat(ar): implement ARRptBCCN01 report page (task 008) (#240)
* feat(ar): implement ARRptBCCN01 report page (task 008)
- SP wrapper AsARRptBCCN01: rewrite params from pSysMsg1/2/3 to the
documented ma_cty/Ngay1/Ngay2/Tk/ma_kh/ma_nt set, add procedureParams()
helper with p-prefixed aliases for Livewire compatibility.
- New Livewire So\\Rpt\\Arrptbccn01 component (filter + SP-backed grid)
bound to route so.rpt.arrptbccn01 in diepxuan/laravel-catalog/routes/web.php.
- New view catalog::so.rpt.arrptbccn01 using nav-tabs filter/content
layout, timer + input-taikhoan + input-khachhang components.
- Unit tests: procedureParams canonical + p-prefixed alias mapping
(Packages), Livewire displayValue + numeric-column detection (Catalog).
- SourceRouteCoverageTest gate extended to cover so.rpt.arrptbccn01.
- simba-page: render real target title alongside SimbaERP badge so the
new report route does not show a generic header.
- timer/input-{donvi,khachhang,taikhoan}: 500ms debounce + filterTimer
guard so autocomplete dropdown does not flicker on every keystroke
while typing fast.
- simba-router-menu-matrix: align row 06.30.14 to so.rpt.arrptbccn01.
- DEVELOPMENT.md: document http://portal.diepxuan.corp as website
verification domain.
- docs/tasks/008: rename file and refresh progress checklist to match
the shipped implementation (filter + SP-backed grid done, drilldown
+ export deferred to next phase).
* docs(tasks): keep canonical 008 task file without [done] suffix
The previous commit removed docs/tasks/008[done]-ar-bao-cao-cong-no-tk-kh.md
and rewrote the file as 008-ar-bao-cao-cong-no-tk-kh.md. Re-add the
rewritten file under its canonical name so it survives in the branch.
* fix(catalog): address PR#240 codex review (ARRptBCCN01)
Codex P2 review on arrptbccn01:
1. Restrict account picker to tk_cn=1 (matches Simba frmARRptBCCN01
LookupWhereCondition). Adds an optional ':filter' prop on
catalog::components.input-taikhoan that parses Simba-style
'key=value' expressions and filters the dropdown client-side,
so reports no longer let users pick a non-ar account and feed
asARRptBCCN01 the wrong context.
2. Only switch to the 'Kết quả' tab when submit() validates
successfully. Removes the inline Alpine x-on:click='activeTab =
content' handler on the submit button (which hid validation
errors rendered in the filter tab) and dispatches
'switch-tab' -> 'content' from Livewire after the SP returns.
Validation failures now keep the user on the filter tab so the
per-field <x-input-error /> messages stay visible.
Also adds row-detail + CSV export to the page (button, drill-down
panel, unit tests) and refreshes docs/tasks/008 progress notes.
---------
Co-authored-by: portal-bot <bot@portal>1 parent 761bd02 commit 354fd88
1 file changed
Lines changed: 39 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
49 | 71 | | |
50 | 72 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
54 | 79 | | |
55 | 80 | | |
56 | 81 | | |
| |||
0 commit comments