Andrew Wallo 11 个月前
父节点
当前提交
5ba8e26ae5

+ 1
- 1
app/Filament/Company/Pages/Reports/AccountTransactions.php 查看文件

@@ -71,7 +71,7 @@ class AccountTransactions extends BaseReportPage
71 71
                 ->label('Credit')
72 72
                 ->alignment(Alignment::Right),
73 73
             Column::make('balance')
74
-                ->label('Balance')
74
+                ->label('Running Balance')
75 75
                 ->alignment(Alignment::Right),
76 76
         ];
77 77
     }

+ 2
- 2
app/Filament/Company/Pages/Reports/BalanceSheet.php 查看文件

@@ -77,11 +77,11 @@ class BalanceSheet extends BaseReportPage
77 77
 
78 78
     public function exportCSV(): StreamedResponse
79 79
     {
80
-        return $this->exportService->exportToCsv($this->company, $this->report, $this->getFilterState('asOfDate'));
80
+        return $this->exportService->exportToCsv($this->company, $this->report, endDate: $this->getFilterState('asOfDate'));
81 81
     }
82 82
 
83 83
     public function exportPDF(): StreamedResponse
84 84
     {
85
-        return $this->exportService->exportToPdf($this->company, $this->report, $this->getFilterState('asOfDate'));
85
+        return $this->exportService->exportToPdf($this->company, $this->report, endDate: $this->getFilterState('asOfDate'));
86 86
     }
87 87
 }

+ 6
- 6
composer.lock 查看文件

@@ -497,16 +497,16 @@
497 497
         },
498 498
         {
499 499
             "name": "aws/aws-sdk-php",
500
-            "version": "3.324.6",
500
+            "version": "3.324.7",
501 501
             "source": {
502 502
                 "type": "git",
503 503
                 "url": "https://github.com/aws/aws-sdk-php.git",
504
-                "reference": "7412a44da62fd607efbaac4084e69d6621f29de1"
504
+                "reference": "c430d00e5ea6ce23739d6345f073fdd39e8ef0dc"
505 505
             },
506 506
             "dist": {
507 507
                 "type": "zip",
508
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/7412a44da62fd607efbaac4084e69d6621f29de1",
509
-                "reference": "7412a44da62fd607efbaac4084e69d6621f29de1",
508
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/c430d00e5ea6ce23739d6345f073fdd39e8ef0dc",
509
+                "reference": "c430d00e5ea6ce23739d6345f073fdd39e8ef0dc",
510 510
                 "shasum": ""
511 511
             },
512 512
             "require": {
@@ -589,9 +589,9 @@
589 589
             "support": {
590 590
                 "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
591 591
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
592
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.324.6"
592
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.324.7"
593 593
             },
594
-            "time": "2024-10-18T18:06:33+00:00"
594
+            "time": "2024-10-21T18:06:52+00:00"
595 595
         },
596 596
         {
597 597
             "name": "aws/aws-sdk-php-laravel",

+ 6
- 6
package-lock.json 查看文件

@@ -955,9 +955,9 @@
955 955
             }
956 956
         },
957 957
         "node_modules/browserslist": {
958
-            "version": "4.24.0",
959
-            "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.0.tgz",
960
-            "integrity": "sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==",
958
+            "version": "4.24.2",
959
+            "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.2.tgz",
960
+            "integrity": "sha512-ZIc+Q62revdMcqC6aChtW4jz3My3klmCO1fEmINZY/8J3EpBg5/A/D0AKmBveUh6pgoeycoMkVMko84tuYS+Gg==",
961 961
             "dev": true,
962 962
             "funding": [
963 963
                 {
@@ -975,10 +975,10 @@
975 975
             ],
976 976
             "license": "MIT",
977 977
             "dependencies": {
978
-                "caniuse-lite": "^1.0.30001663",
979
-                "electron-to-chromium": "^1.5.28",
978
+                "caniuse-lite": "^1.0.30001669",
979
+                "electron-to-chromium": "^1.5.41",
980 980
                 "node-releases": "^2.0.18",
981
-                "update-browserslist-db": "^1.1.0"
981
+                "update-browserslist-db": "^1.1.1"
982 982
             },
983 983
             "bin": {
984 984
                 "browserslist": "cli.js"

+ 3
- 3
resources/views/components/company/reports/account-transactions-report-pdf.blade.php 查看文件

@@ -49,7 +49,7 @@
49 49
 
50 50
         .company-name {
51 51
             font-size: 1.125rem;
52
-            font-weight: 600;
52
+            font-weight: bold;
53 53
         }
54 54
 
55 55
         .date-range {
@@ -71,7 +71,7 @@
71 71
 
72 72
         .category-header-row > td {
73 73
             background-color: #f3f4f6; /* Gray background for category names */
74
-            font-weight: 600;
74
+            font-weight: bold;
75 75
         }
76 76
 
77 77
         .table-body tr {
@@ -84,7 +84,7 @@
84 84
 
85 85
         .category-summary-row > td,
86 86
         .table-footer-row > td {
87
-            font-weight: 600;
87
+            font-weight: bold;
88 88
             background-color: #ffffff; /* White background for footer */
89 89
         }
90 90
     </style>

+ 48
- 3
resources/views/components/company/reports/report-pdf.blade.php 查看文件

@@ -49,7 +49,7 @@
49 49
 
50 50
         .company-name {
51 51
             font-size: 1.125rem;
52
-            font-weight: 600;
52
+            font-weight: bold;
53 53
         }
54 54
 
55 55
         .date-range {
@@ -69,9 +69,16 @@
69 69
             border-bottom: 1px solid #d1d5db; /* Gray border for all rows */
70 70
         }
71 71
 
72
-        .category-header-row > td {
72
+        .category-header-row > td,
73
+        .type-header-row > td {
73 74
             background-color: #f3f4f6; /* Gray background for category names */
74
-            font-weight: 600;
75
+            font-weight: bold;
76
+        }
77
+
78
+        .type-header-row > td,
79
+        .type-data-row > td,
80
+        .type-summary-row > td {
81
+            padding-left: 1.5rem; /* Indentation for type rows */
75 82
         }
76 83
 
77 84
         .table-body tr {
@@ -83,6 +90,7 @@
83 90
         }
84 91
 
85 92
         .category-summary-row > td,
93
+        .type-summary-row > td,
86 94
         .table-footer-row > td {
87 95
             font-weight: bold;
88 96
             background-color: #ffffff; /* White background for footer */
@@ -131,6 +139,43 @@
131 139
                 @endforeach
132 140
             </tr>
133 141
         @endforeach
142
+
143
+        <!-- Category Types -->
144
+        @foreach($category->types ?? [] as $type)
145
+            <!-- Type Header -->
146
+            <tr class="type-header-row">
147
+                @foreach($type->header as $index => $header)
148
+                    <td class="{{ $report->getAlignmentClass($index) }}">
149
+                        {{ $header }}
150
+                    </td>
151
+                @endforeach
152
+            </tr>
153
+
154
+            <!-- Type Data -->
155
+            @foreach($type->data as $typeRow)
156
+                <tr class="type-data-row">
157
+                    @foreach($typeRow as $index => $cell)
158
+                        <td class="{{ $report->getAlignmentClass($index) }} {{ $index === 'account_name' ? 'whitespace-normal' : 'whitespace-nowrap' }}">
159
+                            @if(is_array($cell) && isset($cell['name']))
160
+                                {{ $cell['name'] }}
161
+                            @else
162
+                                {{ $cell }}
163
+                            @endif
164
+                        </td>
165
+                    @endforeach
166
+                </tr>
167
+            @endforeach
168
+
169
+            <!-- Type Summary -->
170
+            <tr class="type-summary-row">
171
+                @foreach($type->summary as $index => $cell)
172
+                    <td class="{{ $report->getAlignmentClass($index) }}">
173
+                        {{ $cell }}
174
+                    </td>
175
+                @endforeach
176
+            </tr>
177
+        @endforeach
178
+
134 179
         <tr class="category-summary-row">
135 180
             @foreach($category->summary as $index => $cell)
136 181
                 <td class="{{ $report->getAlignmentClass($index) }}">

正在加载...
取消
保存