@sachin9822/reports-lib 0.0.213 → 0.0.215
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +240 -0
- package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +614 -0
- package/esm2020/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.mjs +218 -0
- package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +263 -0
- package/esm2020/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.mjs +718 -0
- package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +275 -0
- package/esm2020/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.mjs +192 -0
- package/esm2020/lib/components/funding-report/funding-report.component.mjs +198 -0
- package/esm2020/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.mjs +244 -0
- package/esm2020/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.mjs +776 -0
- package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +282 -0
- package/esm2020/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.mjs +332 -0
- package/esm2020/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.mjs +631 -0
- package/esm2020/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.mjs +2 -0
- package/esm2020/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-branch-group.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-entry-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-sub-group.mjs +2 -0
- package/esm2020/lib/models/app-config.model.mjs +2 -0
- package/esm2020/lib/models/branch-activity-receive-report/branch-activity-receive.model.mjs +2 -0
- package/esm2020/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.mjs +6 -0
- package/esm2020/lib/models/branch-activity-report/branch-activity-send-report.mjs +3 -0
- package/esm2020/lib/models/cancellation-transaction-report/cancellation-transaction.model.mjs +10 -0
- package/esm2020/lib/models/component-loading-states.mjs +7 -0
- package/esm2020/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.mjs +5 -0
- package/esm2020/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.mjs +2 -0
- package/esm2020/lib/models/statement-of-account-report/statement-of-accounts.model.mjs +2 -0
- package/esm2020/lib/models/transaction-enquiry-report/transaction-enquiry.model.mjs +8 -0
- package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.mjs +6 -0
- package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report.mjs +5 -0
- package/esm2020/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.mjs +3 -0
- package/esm2020/lib/reports-lib-routing.module.mjs +24 -0
- package/esm2020/lib/reports-lib.component.mjs +22 -0
- package/esm2020/lib/reports-lib.module.mjs +172 -0
- package/esm2020/lib/reports-lib.service.mjs +14 -0
- package/esm2020/lib/services/config.service.mjs +39 -0
- package/esm2020/lib/services/report.service.mjs +374 -0
- package/esm2020/lib/shared/export-generic.service.mjs +443 -0
- package/esm2020/lib/shared/export.service.mjs +379 -0
- package/esm2020/lib/shared/loader/loader.component.mjs +11 -0
- package/esm2020/lib/shared/metadata/metadata.component.mjs +51 -0
- package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +44 -0
- package/esm2020/lib/shared/search-filter/search-filter.component.mjs +2147 -0
- package/esm2020/lib/shared/shared.module.mjs +21 -0
- package/esm2020/public-api.mjs +41 -0
- package/esm2020/sachin9822-reports-lib.mjs +5 -0
- package/fesm2015/sachin9822-reports-lib.mjs +8649 -0
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -0
- package/fesm2020/sachin9822-reports-lib.mjs +8510 -0
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +70 -0
- package/lib/components/accounting-report/accounting-report.component.d.ts +76 -0
- package/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.d.ts +58 -0
- package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +69 -0
- package/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.d.ts +78 -0
- package/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.d.ts +108 -0
- package/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.d.ts +55 -0
- package/lib/components/funding-report/funding-report.component.d.ts +55 -0
- package/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.d.ts +57 -0
- package/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.d.ts +109 -0
- package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +76 -0
- package/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.d.ts +69 -0
- package/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.d.ts +71 -0
- package/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.d.ts +8 -0
- package/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.d.ts +18 -0
- package/lib/models/accounting-report/accounting-report-branch-group.d.ts +6 -0
- package/lib/models/accounting-report/accounting-report-entry-model.d.ts +24 -0
- package/lib/models/accounting-report/accounting-report-model.d.ts +6 -0
- package/{src/lib/models/accounting-report/accounting-report-sub-group.ts → lib/models/accounting-report/accounting-report-sub-group.d.ts} +2 -3
- package/{src/lib/models/app-config.model.ts → lib/models/app-config.model.d.ts} +7 -8
- package/lib/models/branch-activity-receive-report/branch-activity-receive.model.d.ts +18 -0
- package/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.d.ts +13 -0
- package/lib/models/branch-activity-report/branch-activity-send-report.d.ts +24 -0
- package/lib/models/cancellation-transaction-report/cancellation-transaction.model.d.ts +44 -0
- package/lib/models/component-loading-states.d.ts +5 -0
- package/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.d.ts +26 -0
- package/{src/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.ts → lib/models/revenue-per-transaction-report/revenue-per-transaction.model.d.ts} +1 -1
- package/lib/models/statement-of-account-report/statement-of-accounts.model.d.ts +18 -0
- package/lib/models/transaction-enquiry-report/transaction-enquiry.model.d.ts +113 -0
- package/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.d.ts +13 -0
- package/lib/models/transaction-monitoring-report/transaction-monitoring-report.d.ts +23 -0
- package/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.d.ts +38 -0
- package/lib/reports-lib-routing.module.d.ts +7 -0
- package/lib/reports-lib.component.d.ts +8 -0
- package/lib/reports-lib.module.d.ts +33 -0
- package/lib/reports-lib.service.d.ts +6 -0
- package/lib/services/config.service.d.ts +20 -0
- package/lib/services/report.service.d.ts +80 -0
- package/lib/shared/export-generic.service.d.ts +50 -0
- package/lib/shared/export.service.d.ts +32 -0
- package/lib/shared/loader/loader.component.d.ts +5 -0
- package/lib/shared/metadata/metadata.component.d.ts +24 -0
- package/lib/shared/page-size-selector/page-size-selector.component.d.ts +15 -0
- package/lib/shared/search-filter/search-filter.component.d.ts +127 -0
- package/lib/shared/shared.module.d.ts +11 -0
- package/package.json +31 -16
- package/{src/public-api.ts → public-api.d.ts} +7 -17
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -17
- package/src/assets/images/BreadcrumbArrow.png +0 -0
- package/src/assets/images/XMCoral.png +0 -0
- package/src/lib/assets/images/Search.svg +0 -10
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.html +0 -27
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.scss +0 -46
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.spec.ts +0 -23
- package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.ts +0 -292
- package/src/lib/components/accounting-report/accounting-report.component.html +0 -64
- package/src/lib/components/accounting-report/accounting-report.component.scss +0 -24
- package/src/lib/components/accounting-report/accounting-report.component.spec.ts +0 -23
- package/src/lib/components/accounting-report/accounting-report.component.ts +0 -738
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.html +0 -46
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.scss +0 -2
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.spec.ts +0 -23
- package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.ts +0 -247
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.html +0 -46
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.scss +0 -3
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.spec.ts +0 -23
- package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.ts +0 -276
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.html +0 -51
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.scss +0 -7
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.spec.ts +0 -23
- package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.ts +0 -840
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.html +0 -68
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.scss +0 -65
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.spec.ts +0 -23
- package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.ts +0 -290
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.html +0 -25
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.scss +0 -1
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.spec.ts +0 -23
- package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.ts +0 -213
- package/src/lib/components/funding-report/funding-report.component.html +0 -49
- package/src/lib/components/funding-report/funding-report.component.scss +0 -1
- package/src/lib/components/funding-report/funding-report.component.spec.ts +0 -23
- package/src/lib/components/funding-report/funding-report.component.ts +0 -221
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.html +0 -26
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.scss +0 -1
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.spec.ts +0 -23
- package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.ts +0 -267
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.html +0 -95
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.scss +0 -54
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.spec.ts +0 -23
- package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.ts +0 -904
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.html +0 -49
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.scss +0 -2
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.spec.ts +0 -32
- package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.ts +0 -304
- package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.html +0 -46
- package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.scss +0 -7
- package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.ts +0 -343
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.html +0 -25
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.scss +0 -23
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.spec.ts +0 -23
- package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.ts +0 -745
- package/src/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.ts +0 -10
- package/src/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.ts +0 -20
- package/src/lib/models/accounting-report/accounting-report-branch-group.ts +0 -7
- package/src/lib/models/accounting-report/accounting-report-entry-model.ts +0 -25
- package/src/lib/models/accounting-report/accounting-report-model.ts +0 -7
- package/src/lib/models/branch-activity-receive-report/branch-activity-receive.model.ts +0 -18
- package/src/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.ts +0 -16
- package/src/lib/models/branch-activity-report/branch-activity-send-report.ts +0 -26
- package/src/lib/models/cancellation-transaction-report/cancellation-transaction.model.ts +0 -65
- package/src/lib/models/component-loading-states.ts +0 -5
- package/src/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.ts +0 -28
- package/src/lib/models/statement-of-account-report/statement-of-accounts.model.ts +0 -21
- package/src/lib/models/transaction-enquiry-report/transaction-enquiry.model.ts +0 -127
- package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.ts +0 -16
- package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report.ts +0 -29
- package/src/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.ts +0 -46
- package/src/lib/reports-lib-routing.module.ts +0 -20
- package/src/lib/reports-lib.component.spec.ts +0 -23
- package/src/lib/reports-lib.component.ts +0 -20
- package/src/lib/reports-lib.module.ts +0 -102
- package/src/lib/reports-lib.service.spec.ts +0 -16
- package/src/lib/reports-lib.service.ts +0 -9
- package/src/lib/services/config.service.ts +0 -43
- package/src/lib/services/report.service.spec.ts +0 -16
- package/src/lib/services/report.service.ts +0 -463
- package/src/lib/shared/export-generic.service.ts +0 -557
- package/src/lib/shared/export.service.spec.ts +0 -16
- package/src/lib/shared/export.service.ts +0 -457
- package/src/lib/shared/loader/loader.component.html +0 -8
- package/src/lib/shared/loader/loader.component.scss +0 -52
- package/src/lib/shared/loader/loader.component.ts +0 -10
- package/src/lib/shared/metadata/metadata.component.html +0 -42
- package/src/lib/shared/metadata/metadata.component.scss +0 -95
- package/src/lib/shared/metadata/metadata.component.spec.ts +0 -23
- package/src/lib/shared/metadata/metadata.component.ts +0 -38
- package/src/lib/shared/page-size-selector/page-size-selector.component.html +0 -7
- package/src/lib/shared/page-size-selector/page-size-selector.component.scss +0 -42
- package/src/lib/shared/page-size-selector/page-size-selector.component.spec.ts +0 -23
- package/src/lib/shared/page-size-selector/page-size-selector.component.ts +0 -38
- package/src/lib/shared/search-filter/search-filter.component.html +0 -601
- package/src/lib/shared/search-filter/search-filter.component.scss +0 -203
- package/src/lib/shared/search-filter/search-filter.component.spec.ts +0 -23
- package/src/lib/shared/search-filter/search-filter.component.ts +0 -2387
- package/src/lib/shared/shared.module.ts +0 -13
- package/src/styles/ag-grid-report-style.scss +0 -71
- package/src/styles/common-ag-grid-style.scss +0 -146
- package/src/styles/common-report-style.scss +0 -395
- package/src/styles/common-style.scss +0 -615
- package/src/test.ts +0 -27
- package/tsconfig.lib.json +0 -15
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
- /package/{src/lib → lib}/assets/config/app-config.json +0 -0
- /package/{src → lib}/assets/images/Search.svg +0 -0
- /package/{src/lib → lib}/assets/images/XMLogo.png +0 -0
- /package/{src/lib → lib}/assets/svg-loaders/blue-tail-spin.svg +0 -0
package/package.json
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sachin9822/reports-lib",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^14.2.0",
|
|
6
|
-
"@angular/core": "^14.2.0"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"tslib": "^2.3.0"
|
|
10
|
-
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@sachin9822/reports-lib",
|
|
3
|
+
"version": "0.0.215",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^14.2.0",
|
|
6
|
+
"@angular/core": "^14.2.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"module": "fesm2015/sachin9822-reports-lib.mjs",
|
|
12
|
+
"es2020": "fesm2020/sachin9822-reports-lib.mjs",
|
|
13
|
+
"esm2020": "esm2020/sachin9822-reports-lib.mjs",
|
|
14
|
+
"fesm2020": "fesm2020/sachin9822-reports-lib.mjs",
|
|
15
|
+
"fesm2015": "fesm2015/sachin9822-reports-lib.mjs",
|
|
16
|
+
"typings": "index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"esm2020": "./esm2020/sachin9822-reports-lib.mjs",
|
|
24
|
+
"es2020": "./fesm2020/sachin9822-reports-lib.mjs",
|
|
25
|
+
"es2015": "./fesm2015/sachin9822-reports-lib.mjs",
|
|
26
|
+
"node": "./fesm2015/sachin9822-reports-lib.mjs",
|
|
27
|
+
"default": "./fesm2020/sachin9822-reports-lib.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false
|
|
31
|
+
}
|
|
@@ -1,34 +1,24 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of reports-lib
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Services
|
|
6
1
|
export * from './lib/reports-lib.service';
|
|
7
2
|
export * from './lib/services/report.service';
|
|
8
|
-
export * from './lib/services/config.service'
|
|
3
|
+
export * from './lib/services/config.service';
|
|
9
4
|
export * from './lib/shared/export.service';
|
|
10
5
|
export * from './lib/shared/export-generic.service';
|
|
11
6
|
export * from './lib/shared/loader/loader.component';
|
|
12
|
-
|
|
13
|
-
// Components
|
|
14
7
|
export * from './lib/reports-lib.component';
|
|
15
8
|
export * from './lib/reports-lib.module';
|
|
16
9
|
export * from './lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component';
|
|
17
10
|
export * from './lib/components/transaction-enquiry-report/transaction-enquiry-report.component';
|
|
18
11
|
export * from './lib/components/branch-activity-send-report/branch-activity-send-report.component';
|
|
19
|
-
export * from './lib/components/branch-activity-receive-report/branch-activity-receive-report.component'
|
|
12
|
+
export * from './lib/components/branch-activity-receive-report/branch-activity-receive-report.component';
|
|
20
13
|
export * from './lib/components/cancellation-transaction-report/cancellation-transaction-report.component';
|
|
21
14
|
export * from './lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component';
|
|
22
|
-
export * from './lib/components/statement-of-accounts-report/statement-of-accounts-report.component'
|
|
15
|
+
export * from './lib/components/statement-of-accounts-report/statement-of-accounts-report.component';
|
|
23
16
|
export * from './lib/components/accounting-report/accounting-report.component';
|
|
24
17
|
export * from './lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component';
|
|
25
18
|
export * from './lib/components/funding-report/funding-report.component';
|
|
26
19
|
export * from './lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component';
|
|
27
20
|
export * from './lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component';
|
|
28
21
|
export * from './lib/components/transaction-monitoring-report/transaction-monitoring-report.component';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// Models
|
|
32
22
|
export * from './lib/models/transaction-enquiry-report/transaction-enquiry.model';
|
|
33
23
|
export * from './lib/models/app-config.model';
|
|
34
24
|
export * from './lib/models/branch-activity-report/branch-activity-send-report';
|
|
@@ -36,9 +26,9 @@ export * from './lib/models/branch-activity-report/branch-activity-send-report-r
|
|
|
36
26
|
export * from './lib/models/branch-activity-receive-report/branch-activity-receive.model';
|
|
37
27
|
export * from './lib/models/cancellation-transaction-report/cancellation-transaction.model';
|
|
38
28
|
export * from './lib/models/revenue-per-transaction-report/revenue-per-transaction.model';
|
|
39
|
-
export * from './lib/models/statement-of-account-report/statement-of-accounts.model'
|
|
29
|
+
export * from './lib/models/statement-of-account-report/statement-of-accounts.model';
|
|
40
30
|
export * from './lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model';
|
|
41
31
|
export * from './lib/models/statement-of-account-report/statement-of-accounts.model';
|
|
42
|
-
export * from './lib/models/trial-balance-accounts-report/trial-balance-accounts.models'
|
|
43
|
-
export * from './lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model'
|
|
44
|
-
export * from './lib/models/transaction-monitoring-report/transaction-monitoring-report'
|
|
32
|
+
export * from './lib/models/trial-balance-accounts-report/trial-balance-accounts.models';
|
|
33
|
+
export * from './lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model';
|
|
34
|
+
export * from './lib/models/transaction-monitoring-report/transaction-monitoring-report';
|
package/karma.conf.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Karma configuration file, see link for more information
|
|
2
|
-
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
-
|
|
4
|
-
module.exports = function (config) {
|
|
5
|
-
config.set({
|
|
6
|
-
basePath: '',
|
|
7
|
-
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
-
plugins: [
|
|
9
|
-
require('karma-jasmine'),
|
|
10
|
-
require('karma-chrome-launcher'),
|
|
11
|
-
require('karma-jasmine-html-reporter'),
|
|
12
|
-
require('karma-coverage'),
|
|
13
|
-
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
-
],
|
|
15
|
-
client: {
|
|
16
|
-
jasmine: {
|
|
17
|
-
// you can add configuration options for Jasmine here
|
|
18
|
-
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
-
// for example, you can disable the random execution with `random: false`
|
|
20
|
-
// or set a specific seed with `seed: 4321`
|
|
21
|
-
},
|
|
22
|
-
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
-
},
|
|
24
|
-
jasmineHtmlReporter: {
|
|
25
|
-
suppressAll: true // removes the duplicated traces
|
|
26
|
-
},
|
|
27
|
-
coverageReporter: {
|
|
28
|
-
dir: require('path').join(__dirname, '../../coverage/reports-lib'),
|
|
29
|
-
subdir: '.',
|
|
30
|
-
reporters: [
|
|
31
|
-
{ type: 'html' },
|
|
32
|
-
{ type: 'text-summary' }
|
|
33
|
-
]
|
|
34
|
-
},
|
|
35
|
-
reporters: ['progress', 'kjhtml'],
|
|
36
|
-
port: 9876,
|
|
37
|
-
colors: true,
|
|
38
|
-
logLevel: config.LOG_INFO,
|
|
39
|
-
autoWatch: true,
|
|
40
|
-
browsers: ['Chrome'],
|
|
41
|
-
singleRun: false,
|
|
42
|
-
restartOnFileChange: true
|
|
43
|
-
});
|
|
44
|
-
};
|
package/ng-package.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
-
"dest": "../../dist/reports-lib",
|
|
4
|
-
"assets": [
|
|
5
|
-
"src/assets"
|
|
6
|
-
],
|
|
7
|
-
"lib": {
|
|
8
|
-
"entryFile": "src/public-api.ts"
|
|
9
|
-
},
|
|
10
|
-
"assets": [
|
|
11
|
-
{
|
|
12
|
-
"glob": "**/*",
|
|
13
|
-
"input": "src/lib/assets",
|
|
14
|
-
"output": "lib/assets"
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg width="22px" height="23px" viewBox="0 0 22 23" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
-
<!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch -->
|
|
4
|
-
<title>Search</title>
|
|
5
|
-
<desc>Created with Sketch.</desc>
|
|
6
|
-
<defs></defs>
|
|
7
|
-
<g id="BFC" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
8
|
-
<path d="M15.6218838,15.1278344 C15.5300122,15.2308419 15.4399966,15.3366335 15.3425571,15.4350011 C15.1495339,15.6298802 14.9472308,15.8145514 14.7347197,15.9880866 C14.6354241,16.0706783 14.5277766,16.14399 14.4238411,16.2210136 C14.2744337,16.3314451 14.1231704,16.4381647 13.9663391,16.5374602 C13.8596195,16.6052039 13.751972,16.6720197 13.6415405,16.7341954 C13.4345974,16.8529789 13.2220863,16.9615544 13.0049353,17.059922 C12.9436875,17.0877618 12.8861518,17.1202417 12.824904,17.1471536 C12.5418653,17.2668651 12.2504745,17.3670886 11.9535158,17.4533922 C11.8681402,17.4784481 11.7799806,17.4979361 11.692749,17.520208 C11.46075,17.5795997 11.225967,17.6278555 10.9874721,17.6659033 C10.8965285,17.6807513 10.8065128,17.6965272 10.7155692,17.7076631 C10.3954106,17.747567 10.0715401,17.7744788 9.74395748,17.7744788 C9.41637491,17.7744788 9.09250432,17.747567 8.77327372,17.7076631 C8.68140212,17.6965272 8.59138651,17.6807513 8.50044291,17.6659033 C8.26194795,17.6278555 8.02716497,17.5795997 7.79516598,17.520208 C7.70793437,17.4979361 7.61977475,17.4784481 7.53439912,17.4533922 C7.23744042,17.3670886 6.94604969,17.2668651 6.66301093,17.1462256 C6.60176319,17.1202417 6.54422744,17.0877618 6.48390771,17.06085 C6.26582866,16.9615544 6.05331759,16.8529789 5.84637449,16.7341954 C5.73594297,16.6720197 5.62829544,16.6052039 5.52157591,16.5374602 C5.36474459,16.4381647 5.21348125,16.3314451 5.0640739,16.2210136 C4.96013836,16.14399 4.85341882,16.0706783 4.75319526,15.9880866 C4.54068419,15.8145514 4.33838107,15.6298802 4.14442992,15.4340731 C4.04791834,15.3366335 3.95883073,15.2308419 3.86695913,15.1278344 C3.74910364,14.996987 3.63496014,14.8624276 3.52638461,14.7223002 C3.44193698,14.6146526 3.35841735,14.5060771 3.27953769,14.3928616 C3.13662631,14.1877745 3.0020669,13.9752634 2.87771544,13.7544004 C2.22997427,12.6101814 1.8559919,11.2914991 1.8559919,9.88651326 C1.8559919,8.08156114 2.47218121,6.42137638 3.49576075,5.09063019 C3.58670435,4.97277471 3.67857595,4.85677521 3.77508753,4.7444877 C3.86603113,4.63962416 3.95975872,4.53661661 4.0553423,4.43639305 C4.16484583,4.32132155 4.27898933,4.21274602 4.39406083,4.10602649 C4.48500443,4.02250685 4.57316404,3.93713122 4.66689164,3.85825157 C4.8580588,3.69770827 5.05572194,3.54551693 5.26080904,3.40446155 C5.28586493,3.38682963 5.30813684,3.36734171 5.33319273,3.34970979 C5.57354368,3.1873105 5.82503058,3.04068714 6.08208546,2.90612772 C6.13962121,2.87550386 6.20086894,2.84951997 6.26026068,2.8198241 C6.46441979,2.71867254 6.67229088,2.62494495 6.88480196,2.54235331 C6.95811364,2.51358544 7.03235331,2.48760155 7.10659299,2.46161766 C7.31168009,2.38830598 7.52047918,2.32427426 7.73113426,2.26859451 C7.81094192,2.2472506 7.88889358,2.22590669 7.96870123,2.20734677 C8.18585228,2.156307 8.40578732,2.11825916 8.62757835,2.0867073 C8.70181803,2.07649934 8.7760577,2.06072341 8.85122538,2.05237145 C9.14632809,2.01896359 9.44421479,1.99854768 9.74395748,1.99854768 C10.0437002,1.99854768 10.3415869,2.01896359 10.6366896,2.05237145 C10.7118573,2.06072341 10.7860969,2.07649934 10.8603366,2.0867073 C11.0821276,2.11825916 11.3020627,2.156307 11.5182857,2.20734677 C11.5990214,2.22590669 11.677901,2.2472506 11.7567807,2.26859451 C11.9674358,2.32427426 12.1762349,2.38830598 12.381322,2.46161766 C12.4555616,2.48760155 12.5298013,2.51358544 12.603113,2.54235331 C12.8156241,2.62587295 13.0234952,2.71867254 13.2267263,2.8198241 C13.286118,2.84951997 13.3482938,2.87550386 13.4067575,2.90612772 C13.6638124,3.04068714 13.9134433,3.1873105 14.1547222,3.34970979 C14.1807061,3.36734171 14.203906,3.38868562 14.2298899,3.40631754 C14.433121,3.54737293 14.6298562,3.69770827 14.8200953,3.85732357 C14.9147509,3.93713122 15.0038385,4.02343485 15.0947821,4.10695448 C15.2098536,4.21367402 15.3230691,4.32132155 15.4316447,4.43546505 C15.5281562,4.53568861 15.6218838,4.63962416 15.7137554,4.7454157 C15.809339,4.85677521 15.9012106,4.97277471 15.9912262,5.0897022 C17.0157337,6.42044839 17.6319231,8.08063314 17.6319231,9.88651326 C17.6319231,11.2924271 17.2579407,12.6101814 16.6101995,13.7553284 C16.4858481,13.9752634 16.3512886,14.1877745 16.2083773,14.3928616 C16.1294976,14.5060771 16.045978,14.6146526 15.9615303,14.7232282 C15.8529548,14.8624276 15.7388113,14.996059 15.6218838,15.1278344 L15.6218838,15.1278344 Z M17.2551567,16.0855262 C17.6105792,15.6567921 17.9223858,15.1927941 18.1998566,14.7074522 C18.2406884,14.6378525 18.2889442,14.5738208 18.326992,14.5032931 L18.32328,14.5005091 C18.558063,14.065279 18.7520142,13.605921 18.9199814,13.1335711 C19.1306365,12.5387257 19.2846838,11.9188244 19.3765554,11.2775792 C19.4210993,10.9713405 19.4498671,10.6623179 19.4647151,10.3477273 C19.471211,10.1936799 19.487915,10.0424166 19.487915,9.88651326 C19.487915,8.47595942 19.1798203,7.13778926 18.6378707,5.92582655 C18.3733918,5.33283713 18.0504492,4.77232758 17.6773949,4.24893786 L17.6876028,4.24244189 C17.6217151,4.1496423 17.5446914,4.06983465 17.4769477,3.98074703 C17.3581643,3.82577171 17.2375248,3.67358037 17.1103893,3.52788501 C17.0008858,3.40074957 16.8885983,3.27639811 16.7735268,3.15575863 C16.6371114,3.01377525 16.496056,2.87921584 16.3522166,2.74558442 C16.2399291,2.64257687 16.1304256,2.53678534 16.0134981,2.43841776 C15.7861391,2.2472506 15.5504281,2.06629139 15.3072932,1.89739613 C15.2673894,1.86955625 15.2302695,1.83707639 15.1894377,1.80923651 C14.894335,1.61064538 14.5871683,1.43061416 14.2725777,1.26543088 C14.1946261,1.22459906 14.1138904,1.19026321 14.0359388,1.15128738 C13.7881638,1.02971991 13.5376049,0.917432401 13.281478,0.816280843 C13.1868225,0.780089001 13.0912389,0.745753151 12.9956553,0.712345296 C12.7460244,0.623257685 12.4917535,0.545306025 12.2346986,0.476634325 C12.134475,0.450650438 12.0351795,0.42281056 11.9340279,0.399610661 C11.6686211,0.337434932 11.3995023,0.291035135 11.1275994,0.252059305 C11.0338719,0.239067362 10.9410723,0.219579447 10.8454887,0.208443495 C10.4817143,0.166683677 10.1142279,0.142555783 9.74395748,0.142555783 C9.3736871,0.142555783 9.0062007,0.166683677 8.64242629,0.208443495 C8.5468427,0.219579447 8.45404311,0.239067362 8.36031552,0.252059305 C8.08841271,0.291035135 7.81929388,0.337434932 7.55388704,0.399610661 C7.45273548,0.42281056 7.35343991,0.450650438 7.25321635,0.476634325 C6.99616147,0.545306025 6.74189058,0.623257685 6.49225967,0.712345296 C6.39667609,0.745753151 6.3010925,0.780089001 6.20643692,0.817208839 C5.95031004,0.917432401 5.69975113,1.02971991 5.45290421,1.15035939 C5.37495255,1.19026321 5.2932889,1.22459906 5.21533724,1.26543088 C4.90074661,1.43154216 4.59357996,1.61064538 4.29847724,1.80923651 C4.25764542,1.83707639 4.22145358,1.86955625 4.18062176,1.89739613 C3.93748682,2.06629139 3.70177585,2.2472506 3.47441684,2.43841776 C3.35748935,2.53678534 3.24798583,2.64164888 3.13662631,2.74558442 C2.99278694,2.87828784 2.85080356,3.01377525 2.71438816,3.15668663 C2.59838866,3.27639811 2.48702915,3.40074957 2.37752563,3.52788501 C2.25039018,3.67358037 2.12975071,3.82669971 2.01096722,3.98167503 C1.94322352,4.06983465 1.86619986,4.15057029 1.80031214,4.24244189 L1.8105201,4.24893786 C0.675581052,5.84230691 0,7.78460244 0,9.88651326 C0,11.55505 0.423166153,13.1261471 1.16463492,14.5005091 L1.16092293,14.5032931 C1.19897077,14.5719648 1.24537057,14.6341405 1.2843464,14.7028122 C1.56367318,15.1900101 1.87640781,15.6549361 2.23275826,16.0855262 C2.62808453,16.5634441 3.06702662,17.0033142 3.54494453,17.3977125 C3.73703969,17.5563998 3.93934281,17.7030232 4.14350192,17.8468625 C4.16855781,17.8644945 4.19175771,17.8839824 4.2168136,17.9016143 C4.38292487,18.0166858 4.55646012,18.1206213 4.72906736,18.2245569 C4.80701902,18.2718847 4.88311469,18.3219965 4.96292234,18.3665403 C5.12532163,18.4584119 5.2932889,18.5419315 5.46032817,18.6245231 C5.55869574,18.6727789 5.65613532,18.7219627 5.75543089,18.7665065 C5.91597418,18.8398182 6.08022947,18.9057059 6.24448475,18.9697376 C6.36048425,19.0142814 6.47648374,19.0569692 6.59433922,19.0978011 C6.75117054,19.1516248 6.90892985,19.2017366 7.06854516,19.2472084 C7.20681655,19.2871122 7.34694394,19.3223761 7.48707133,19.3557839 C7.63369469,19.3910478 7.77939005,19.4253836 7.92694141,19.4541515 C8.10233264,19.4875594 8.28143586,19.5116873 8.45961109,19.5358152 C8.58025056,19.5515911 8.69810604,19.572007 8.81874552,19.583143 C9.12405619,19.6119108 9.43215084,19.6304707 9.74395748,19.6304707 C10.0557641,19.6304707 10.3638588,19.6119108 10.6691694,19.583143 C10.7898089,19.572007 10.9076644,19.5515911 11.0283039,19.5358152 C11.2064791,19.5116873 11.3855823,19.4875594 11.5609736,19.4541515 C11.7085249,19.4253836 11.8551483,19.3910478 12.0008436,19.3557839 C12.141899,19.3223761 12.2810984,19.2871122 12.4193698,19.2472084 C12.5789851,19.2017366 12.7367444,19.1516248 12.8935757,19.0978011 C13.0114312,19.0569692 13.1274307,19.0142814 13.2434302,18.9697376 C13.4086135,18.9057059 13.5719408,18.8398182 13.7324841,18.7665065 C13.8317796,18.7219627 13.9292192,18.6727789 14.0266588,18.6254511 C14.1946261,18.5419315 14.3625933,18.4584119 14.5249926,18.3665403 C14.6048003,18.3219965 14.6799679,18.2718847 14.7579196,18.2254849 C14.9314548,18.1206213 15.1049901,18.0166858 15.2711014,17.9016143 C15.2961573,17.8839824 15.3202851,17.8635665 15.345341,17.8459345 C15.5485722,17.7020952 15.7518033,17.5563998 15.9429704,17.3977125 L20.6878137,22.1416278 L22,20.8303695 L17.2551567,16.0855262 Z" id="Search" fill="#FFFFFF"></path>
|
|
9
|
-
</g>
|
|
10
|
-
</svg>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<lib-search-filter [ReportName]="ReportName" (searchClicked)="handleSearch($event)"
|
|
2
|
-
(formValid)="handleFormValid($event)">
|
|
3
|
-
</lib-search-filter>
|
|
4
|
-
<app-loader class="" *ngIf="loadingState == ComponentLoadingState.Loading"></app-loader>
|
|
5
|
-
<div class="main-container">
|
|
6
|
-
<div class="report-container"
|
|
7
|
-
*ngIf="accGlDetailsEnquiryReportModel != undefined && isFormValid && dataReady && accGlDetailsEnquiryReportModel?.journalVoucherEntries?.length!=0">
|
|
8
|
-
<div class="main-report" *ngIf="accGlDetailsEnquiryReportModel != undefined && dataReady">
|
|
9
|
-
<lib-metadata [reportName]="ReportName" [showmetaDataOne]="true" [showmetaDataTwo]="true"
|
|
10
|
-
[metaDataOne]="metaDataOne" [metaDataTwo]="metaDataTwo" (exportEvent)="handleExport($event)"
|
|
11
|
-
(searchEvent)="onSearch($event)"></lib-metadata>
|
|
12
|
-
<div style="position: relative;" *ngIf="rowData && rowData.length > 0">
|
|
13
|
-
<lib-page-size-selector [totalEntries]="accGlDetailsEnquiryReportModel?.journalVoucherEntries?.length"
|
|
14
|
-
[defaultSize]="'15'" [gridApi]="gridApi">
|
|
15
|
-
></lib-page-size-selector>
|
|
16
|
-
<ag-grid-angular class="ag-theme-alpine transaction-grid" style="width: 100%;height: 375px;"
|
|
17
|
-
[columnDefs]="columnDefs" [defaultColDef]="defaultColDef" [rowData]="rowData" [rowHeight]="20"
|
|
18
|
-
[headerHeight]="22" [pagination]="true" [paginationPageSize]="pageSize" (gridReady)="onGridReady($event)">
|
|
19
|
-
</ag-grid-angular>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div class="alert alert-warning mt-3" *ngIf="accGlDetailsEnquiryReportModel?.journalVoucherEntries?.length==0">
|
|
25
|
-
No Data found matching your search criteria.
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
@import 'src/styles/common-report-style.scss';
|
|
2
|
-
@import 'src/styles/ag-grid-report-style.scss';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.main-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding: 0px;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.report-loader {
|
|
14
|
-
display: flex;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
align-items: center;
|
|
17
|
-
height: 320px;
|
|
18
|
-
background-color: rgba(255, 255, 255, 0.7);
|
|
19
|
-
border: none none none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.report-container {
|
|
23
|
-
min-height: 350px;
|
|
24
|
-
font-size: 0.7rem;
|
|
25
|
-
line-height: 1.4;
|
|
26
|
-
margin: 0px;
|
|
27
|
-
overflow: visible;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.main-report {
|
|
31
|
-
overflow: visible;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.grid-size {
|
|
35
|
-
width: 100% !important;
|
|
36
|
-
font-weight: 500 !important;
|
|
37
|
-
height: 390px !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// ::ng-deep app-page-size-selector .entries-selecter-div {
|
|
41
|
-
// bottom: 5.5px !important;
|
|
42
|
-
// }
|
|
43
|
-
|
|
44
|
-
// ::ng-deep .compact-grid .ag-header-cell {
|
|
45
|
-
// height: auto !important;
|
|
46
|
-
// }
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { AccGlDetailsEnquiryReportComponent } from './acc-gl-details-enquiry-report.component';
|
|
4
|
-
|
|
5
|
-
describe('AccGlDetailsEnquiryReportComponent', () => {
|
|
6
|
-
let component: AccGlDetailsEnquiryReportComponent;
|
|
7
|
-
let fixture: ComponentFixture<AccGlDetailsEnquiryReportComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(async () => {
|
|
10
|
-
await TestBed.configureTestingModule({
|
|
11
|
-
declarations: [ AccGlDetailsEnquiryReportComponent ]
|
|
12
|
-
})
|
|
13
|
-
.compileComponents();
|
|
14
|
-
|
|
15
|
-
fixture = TestBed.createComponent(AccGlDetailsEnquiryReportComponent);
|
|
16
|
-
component = fixture.componentInstance;
|
|
17
|
-
fixture.detectChanges();
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
it('should create', () => {
|
|
21
|
-
expect(component).toBeTruthy();
|
|
22
|
-
});
|
|
23
|
-
});
|
package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.ts
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { ReportService } from '../../services/report.service';
|
|
3
|
-
import { AccGlDetailsEnquiryReportModel } from '../../models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel';
|
|
4
|
-
import { ColDef, ColumnApi, GridApi, GridReadyEvent } from 'ag-grid-community';
|
|
5
|
-
import { formatDate } from '@angular/common';
|
|
6
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
7
|
-
import { HttpClient } from '@angular/common/http';
|
|
8
|
-
import 'jspdf-autotable';
|
|
9
|
-
import { ExportService } from '../../shared/export.service';
|
|
10
|
-
import { ComponentLoadingStates } from '../../models/component-loading-states';
|
|
11
|
-
|
|
12
|
-
declare module 'jspdf' {
|
|
13
|
-
interface jsPDF {
|
|
14
|
-
autoTable: (options: any) => jsPDF;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@Component({
|
|
19
|
-
selector: 'lib-acc-gl-details-enquiry-report',
|
|
20
|
-
templateUrl: './acc-gl-details-enquiry-report.component.html',
|
|
21
|
-
styleUrls: ['./acc-gl-details-enquiry-report.component.scss'],
|
|
22
|
-
|
|
23
|
-
})
|
|
24
|
-
export class AccGlDetailsEnquiryReportComponent implements OnInit {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
searchText: string = '';
|
|
28
|
-
gridApi: GridApi<any>;
|
|
29
|
-
gridColumnApi!: ColumnApi;
|
|
30
|
-
selectedExportOption: string = 'excel';
|
|
31
|
-
svgLoader: SafeHtml = '';
|
|
32
|
-
loading: boolean = false;
|
|
33
|
-
dataReady: boolean = false;
|
|
34
|
-
dateTypeFilter: number = 1;
|
|
35
|
-
dateType: any;
|
|
36
|
-
sysCompanyCode: any;
|
|
37
|
-
sysUserId: any;
|
|
38
|
-
companyName: any;
|
|
39
|
-
reportUser: any;
|
|
40
|
-
reportTime: any;
|
|
41
|
-
currentReportValueOrPostDate: any;
|
|
42
|
-
accGlDetailsEnquiryReportModel: AccGlDetailsEnquiryReportModel;
|
|
43
|
-
rowData = [];
|
|
44
|
-
date: string;
|
|
45
|
-
pageSize: number = 15;
|
|
46
|
-
ReportName = 'ACC GL Details Enquiry';
|
|
47
|
-
exportFormats = [
|
|
48
|
-
{ formatName: 'Excel', code: 'excel' },
|
|
49
|
-
{ formatName: 'PDF', code: 'pdf' },
|
|
50
|
-
{ formatName: 'CSV', code: 'csv' },
|
|
51
|
-
];
|
|
52
|
-
metaDataOne: Record<string, string>;
|
|
53
|
-
metaDataTwo: Record<string, string>;
|
|
54
|
-
ComponentLoadingState = ComponentLoadingStates;
|
|
55
|
-
loadingState: ComponentLoadingStates = ComponentLoadingStates.Complete;
|
|
56
|
-
searchCriteria: [string, string][];
|
|
57
|
-
isFormValid: boolean = false;
|
|
58
|
-
|
|
59
|
-
defaultColDef: ColDef = {
|
|
60
|
-
resizable: true,
|
|
61
|
-
sortable: true,
|
|
62
|
-
filter: true,
|
|
63
|
-
minWidth: 40,
|
|
64
|
-
suppressSizeToFit: false,
|
|
65
|
-
cellStyle: {
|
|
66
|
-
userSelect: 'text',
|
|
67
|
-
'line-height': '1.2',
|
|
68
|
-
'white-space': 'normal',
|
|
69
|
-
'word-break': 'normal',
|
|
70
|
-
'overflow-wrap': 'break-word',
|
|
71
|
-
},
|
|
72
|
-
wrapHeaderText: true,
|
|
73
|
-
autoHeaderHeight: true,
|
|
74
|
-
wrapText: true,
|
|
75
|
-
autoHeight: true,
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
columnDefs: ColDef[] = [
|
|
79
|
-
{ headerName: 'Journal ID', field: 'journalID', flex: 1.8, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 95, tooltipField: 'journalID' },
|
|
80
|
-
{ headerName: 'Trans No', field: 'transactionNo', flex: 1.8, cellClass: 'ag-left-cols-cell compact-cell-transaction', minWidth: 73, tooltipField: 'transactionNo' },
|
|
81
|
-
{ headerName: 'Trans Code', field: 'transactionCode', flex: 1.1, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 60, tooltipField: 'transactionCode' },
|
|
82
|
-
{ headerName: 'Journal Type', field: 'journalType', flex: 1, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 73, tooltipField: 'journalType' },
|
|
83
|
-
{ headerName: 'Posting Date', field: 'postingDate', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 69, tooltipField: 'postingDate' },
|
|
84
|
-
{ headerName: 'Value Date', field: 'valueDate', flex: 1.1, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 68, tooltipField: 'valueDate' },
|
|
85
|
-
{ headerName: 'Description', field: 'description', flex: 3, minWidth: 119, wrapText: true, autoHeight: true, cellStyle: { 'line-height': '1.2', 'white-space': 'normal', 'word-break': 'normal', 'overflow-wrap': 'break-word' }, tooltipField: 'description' },
|
|
86
|
-
{ headerName: 'Account Code', field: 'accountCode', flex: 1.1, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 73, tooltipField: 'accountCode' },
|
|
87
|
-
{ headerName: 'Ccy', field: 'currency', flex: 1, cellClass: 'ag-left-cols-cell', minWidth: 35, tooltipField: 'currency' },
|
|
88
|
-
{ headerName: 'Rate', field: 'rate', flex: 1.1, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 69, tooltipField: 'rate' },
|
|
89
|
-
{ headerName: 'FxDebit', field: 'forexDebit', flex: 1, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 58, tooltipField: 'forexDebit' },
|
|
90
|
-
{ headerName: 'Local Debit', field: 'localDebit', flex: 1, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 62, tooltipField: 'localDebit' },
|
|
91
|
-
{ headerName: 'FxCredit', field: 'forexCredit', flex: 1.4, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 58, tooltipField: 'forexCredit' },
|
|
92
|
-
{ headerName: 'Local Credit', field: 'localCredit', flex: 1, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 62, tooltipField: 'localCredit' },
|
|
93
|
-
];
|
|
94
|
-
|
|
95
|
-
constructor(
|
|
96
|
-
private exportService: ExportService,
|
|
97
|
-
private reportService: ReportService,
|
|
98
|
-
private http: HttpClient,
|
|
99
|
-
private sanitizer: DomSanitizer
|
|
100
|
-
) { }
|
|
101
|
-
|
|
102
|
-
ngOnInit(): void {
|
|
103
|
-
// this.http
|
|
104
|
-
// .get('assets/reports-lib/assets/svg-loaders/blue-tail-spin.svg', { responseType: 'text' })
|
|
105
|
-
// .subscribe((svg) => {
|
|
106
|
-
// this.svgLoader = this.sanitizer.bypassSecurityTrustHtml(svg);
|
|
107
|
-
// });
|
|
108
|
-
this.date = new Date().toISOString().split('T')[0];
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
public getAccGLDetailsReport() {
|
|
112
|
-
this.loadingState = ComponentLoadingStates.Loading;
|
|
113
|
-
this.accGlDetailsEnquiryReportModel = undefined;
|
|
114
|
-
this.loading = true;
|
|
115
|
-
this.dataReady = false;
|
|
116
|
-
this.selectedExportOption = 'excel';
|
|
117
|
-
this.sysCompanyCode = 'BH';
|
|
118
|
-
this.sysUserId = this.reportService.getUserNameFromSessionStorage();
|
|
119
|
-
this.companyName = 'Xpress Money';
|
|
120
|
-
this.searchText = '';
|
|
121
|
-
|
|
122
|
-
this.dateType = this.dateTypeFilter === 1 ? 'VD' : 'PD';
|
|
123
|
-
|
|
124
|
-
this.reportService.getAccGLDetailsReport(this.date.split('T')[0], this.dateType).subscribe(
|
|
125
|
-
(data) => {
|
|
126
|
-
if (data) {
|
|
127
|
-
// Pre-format entries before storing
|
|
128
|
-
const formattedEntries = data.journalVoucherEntries.map((entry) => ({
|
|
129
|
-
...entry,
|
|
130
|
-
postingDate: this.formatDateValue(entry.postingDate),
|
|
131
|
-
valueDate: this.formatDateValue(entry.valueDate),
|
|
132
|
-
rate: this.formatNumberValue(entry.rate, 'rate'),
|
|
133
|
-
forexDebit: this.formatNumberValue(entry.forexDebit, 'forexDebit'),
|
|
134
|
-
localDebit: this.formatNumberValue(entry.localDebit, 'localDebit'),
|
|
135
|
-
forexCredit: this.formatNumberValue(entry.forexCredit, 'forexCredit'),
|
|
136
|
-
localCredit: this.formatNumberValue(entry.localCredit, 'localCredit'),
|
|
137
|
-
}));
|
|
138
|
-
|
|
139
|
-
this.accGlDetailsEnquiryReportModel = {
|
|
140
|
-
...data,
|
|
141
|
-
journalVoucherEntries: formattedEntries,
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
this.rowData = formattedEntries;
|
|
145
|
-
this.companyName = data.companyName;
|
|
146
|
-
this.reportUser = data.reportUser.toLowerCase();
|
|
147
|
-
this.reportTime = formatDate(new Date(), 'dd/MM/yyyy hh:mm a', 'en-US');
|
|
148
|
-
this.currentReportValueOrPostDate = formatDate(data.date, 'dd/MM/yyyy', 'en-US');
|
|
149
|
-
const DateType = this.dateType === 'VD' ? 'Value Date' : 'Posting Date';
|
|
150
|
-
|
|
151
|
-
this.metaDataOne = {
|
|
152
|
-
[DateType]: this.currentReportValueOrPostDate,
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
this.metaDataTwo = {
|
|
156
|
-
'Report User & Time ': `${this.reportUser} @ ${this.reportTime}`
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
this.loadingState = ComponentLoadingStates.Complete;
|
|
160
|
-
this.loading = false;
|
|
161
|
-
this.dataReady = true;
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
(error) => {
|
|
165
|
-
this.loading = false;
|
|
166
|
-
window.alert(error.message);
|
|
167
|
-
}
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
private formatDateValue(value: any): string {
|
|
172
|
-
if (!value) return '';
|
|
173
|
-
return formatDate(new Date(value), 'dd/MM/yyyy', 'en-US');
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
private formatNumberValue(value: any, field: string): string {
|
|
177
|
-
if (value == null) return '';
|
|
178
|
-
return field === 'rate' ? Number(value).toFixed(8) : Number(value).toFixed(3);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
onGridReady(params: GridReadyEvent) {
|
|
182
|
-
this.gridApi = params.api;
|
|
183
|
-
this.gridColumnApi = params.columnApi;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
onGridSizeChanged(params: any) {
|
|
187
|
-
params.api.sizeColumnsToFit();
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
getRowHeight(params: any): number {
|
|
191
|
-
const description = params.data?.description || '';
|
|
192
|
-
return description.length > 50 ? 40 : 20;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
onSearch(text: string): void {
|
|
196
|
-
const normalize = (str: any): string =>
|
|
197
|
-
str
|
|
198
|
-
?.toString()
|
|
199
|
-
.toLowerCase()
|
|
200
|
-
.replace(/,/g, '')
|
|
201
|
-
.replace(/\s+/g, ' ')
|
|
202
|
-
.replace(/[\u200B-\u200D\uFEFF]/g, '')
|
|
203
|
-
.trim();
|
|
204
|
-
|
|
205
|
-
this.searchText = text;
|
|
206
|
-
const search = normalize(this.searchText);
|
|
207
|
-
|
|
208
|
-
if (search) {
|
|
209
|
-
this.rowData = this.accGlDetailsEnquiryReportModel.journalVoucherEntries.filter((item) =>
|
|
210
|
-
Object.values(item).some((value) => normalize(value).includes(search))
|
|
211
|
-
);
|
|
212
|
-
} else {
|
|
213
|
-
this.rowData = this.accGlDetailsEnquiryReportModel.journalVoucherEntries;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
handleExport(option: string): void {
|
|
218
|
-
this.selectedExportOption = option;
|
|
219
|
-
switch (this.selectedExportOption) {
|
|
220
|
-
case 'excel':
|
|
221
|
-
this.exportToExcel();
|
|
222
|
-
break;
|
|
223
|
-
case 'pdf':
|
|
224
|
-
this.exportToPdf();
|
|
225
|
-
break;
|
|
226
|
-
case 'csv':
|
|
227
|
-
this.exportToCsv();
|
|
228
|
-
break;
|
|
229
|
-
default:
|
|
230
|
-
alert('Please select an export format.');
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
async exportToPdf(): Promise<void> {
|
|
235
|
-
if (!this.accGlDetailsEnquiryReportModel.journalVoucherEntries?.length) return;
|
|
236
|
-
|
|
237
|
-
const title = `${this.companyName} - General Ledger Account Details Enquiry Report`;
|
|
238
|
-
const metadata = this.exportService.generateReportMetadata([
|
|
239
|
-
['Report User & Time : ', `${this.reportUser}@${this.reportTime}`],
|
|
240
|
-
]);
|
|
241
|
-
|
|
242
|
-
const { headers, rows } = this.exportService.prepareExportTable(this.accGlDetailsEnquiryReportModel.journalVoucherEntries, this.columnDefs, {
|
|
243
|
-
currencyFields: ['localCredit', 'forexCredit', 'localDebit', 'forexDebit'],
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
await this.exportService.exportToPdfUniversal(title, metadata, this.searchCriteria, headers, rows, 'ACC-GL-Details-Enquiry-Report.pdf');
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
exportToExcel(): void {
|
|
250
|
-
if (!this.accGlDetailsEnquiryReportModel.journalVoucherEntries?.length) return;
|
|
251
|
-
|
|
252
|
-
const title = `${this.companyName} - General Ledger Account Details Enquiry Report`;
|
|
253
|
-
const metadata = this.exportService.generateReportMetadata([
|
|
254
|
-
['Report User & Time : ', `${this.reportUser}@${this.reportTime}`],
|
|
255
|
-
]);
|
|
256
|
-
|
|
257
|
-
const { headers, rows } = this.exportService.prepareExportTable(this.accGlDetailsEnquiryReportModel.journalVoucherEntries, this.columnDefs, {
|
|
258
|
-
currencyFields: ['localCredit', 'forexCredit', 'localDebit', 'forexDebit'],
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
this.exportService.exportToExcelUniversal(title, metadata, this.searchCriteria, headers, rows, 'ACC-GL-Details-Enquiry-Report.xlsx');
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
exportToCsv(): void {
|
|
265
|
-
if (!this.accGlDetailsEnquiryReportModel.journalVoucherEntries?.length) return;
|
|
266
|
-
|
|
267
|
-
const title = `${this.companyName} - General Ledger Account Details Enquiry Report`;
|
|
268
|
-
const metadata = this.exportService.generateReportMetadata([
|
|
269
|
-
['Report User & Time : ', `${this.reportUser}@${this.reportTime}`],
|
|
270
|
-
]);
|
|
271
|
-
|
|
272
|
-
const { headers, rows } = this.exportService.prepareExportTable(this.accGlDetailsEnquiryReportModel.journalVoucherEntries, this.columnDefs, {
|
|
273
|
-
currencyFields: ['localCredit', 'forexCredit', 'localDebit', 'forexDebit'],
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
this.exportService.exportToCsvUniversal(title, metadata, this.searchCriteria, headers, rows, 'ACC-GL-Details-Enquiry-Report.csv');
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
handleSearch(criteria: any): void {
|
|
280
|
-
this.dateTypeFilter = criteria.selectedDateType;
|
|
281
|
-
this.date = criteria.selectedDate.split('T')[0];
|
|
282
|
-
this.searchCriteria = [
|
|
283
|
-
['Date Type:', `${this.dateTypeFilter === 1 ? 'Value Date' : 'Posting Date'}`],
|
|
284
|
-
['Date:', formatDate(this.date, 'dd/MM/yyyy', 'en-US')],
|
|
285
|
-
];
|
|
286
|
-
this.getAccGLDetailsReport();
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
handleFormValid(isValid: boolean): void {
|
|
290
|
-
this.isFormValid = isValid;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
<lib-search-filter [ReportName]="ReportName" (searchClicked)="getReport($event)" (formValid)="handleFormValid($event)"></lib-search-filter>
|
|
2
|
-
|
|
3
|
-
<app-loader class="" *ngIf="loadingState == ComponentLoadingState.Loading"></app-loader>
|
|
4
|
-
|
|
5
|
-
<div *ngIf="accountingReportModel!=undefined && loadingState == ComponentLoadingState.Complete && !noDataFound && isFormValid"
|
|
6
|
-
style="margin-bottom: 30px;">
|
|
7
|
-
|
|
8
|
-
<lib-metadata [reportName]="ReportName" [showmetaDataOne]="true" [showmetaDataTwo]="true" [metaDataOne]="leftData"
|
|
9
|
-
[metaDataTwo]="rightData" (exportEvent)="handleExport($event)" (searchEvent)="onSearch($event)"></lib-metadata>
|
|
10
|
-
|
|
11
|
-
<div *ngIf="accountingReportModel.accountingReportByBranchGroups?.length">
|
|
12
|
-
<ngb-accordion #acc="ngbAccordion" [closeOthers]="false">
|
|
13
|
-
<ng-container *ngFor="let group of accountingReportModel?.accountingReportByBranchGroups; let i = index">
|
|
14
|
-
<ngb-panel [id]="'panel-' + i">
|
|
15
|
-
<ng-template ngbPanelTitle>
|
|
16
|
-
<label class="panel-cls">
|
|
17
|
-
{{ group.branchNameAndCode }}
|
|
18
|
-
</label>
|
|
19
|
-
</ng-template>
|
|
20
|
-
|
|
21
|
-
<ng-template ngbPanelContent>
|
|
22
|
-
<!-- Send Transactions -->
|
|
23
|
-
<div *ngIf="group.sendTransactions.entries.length">
|
|
24
|
-
<h6 class="subgroupcolumn">{{ group.sendTransactions.subGroupName }}</h6>
|
|
25
|
-
<div style="position: relative;">
|
|
26
|
-
<lib-page-size-selector [totalEntries]="group.sendTransactions.entries.length" [defaultSize]="'15'"
|
|
27
|
-
[gridApi]="gridApis[i * 2]">
|
|
28
|
-
</lib-page-size-selector>
|
|
29
|
-
|
|
30
|
-
<ag-grid-angular class="ag-theme-alpine transaction-grid grid-size" style="width: 100%;"
|
|
31
|
-
[columnDefs]="columnDefs" [defaultColDef]="defaultColDef" [rowData]="group.sendTransactions.entries"
|
|
32
|
-
[rowHeight]="20" [headerHeight]="24" [pagination]="true" [paginationPageSize]="paginationArray[i]"
|
|
33
|
-
(gridReady)="onGridReady($event, i * 2)" (gridSizeChanged)="onGridSizeChanged($event, i * 2)">
|
|
34
|
-
</ag-grid-angular>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<!-- Receive Transactions -->
|
|
39
|
-
<div *ngIf="group.receiveTransactions.entries.length" class="mt-3">
|
|
40
|
-
<h6 class="subgroupcolumn">{{ group.receiveTransactions.subGroupName }}</h6>
|
|
41
|
-
<div style="position: relative;">
|
|
42
|
-
<lib-page-size-selector [totalEntries]="group.receiveTransactions.entries.length" [defaultSize]="'15'"
|
|
43
|
-
[gridApi]="gridApis[i * 2 + 1]">
|
|
44
|
-
</lib-page-size-selector>
|
|
45
|
-
|
|
46
|
-
<ag-grid-angular class="ag-theme-alpine transaction-grid grid-size" style="width: 100%;"
|
|
47
|
-
[columnDefs]="columnDefs" [defaultColDef]="defaultColDef"
|
|
48
|
-
[rowData]="group.receiveTransactions.entries" [rowHeight]="20" [headerHeight]="24" [pagination]="true"
|
|
49
|
-
[paginationPageSize]="paginationArray[i]" (gridReady)="onGridReady($event, i * 2 + 1)"
|
|
50
|
-
(gridSizeChanged)="onGridSizeChanged($event, i * 2)">
|
|
51
|
-
</ag-grid-angular>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</ng-template>
|
|
55
|
-
</ngb-panel>
|
|
56
|
-
</ng-container>
|
|
57
|
-
</ngb-accordion>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
<div class="alert alert-warning mt-3" *ngIf="noDataFound && loadingState!=ComponentLoadingState.Loading">
|
|
63
|
-
No Data found matching your search criteria.
|
|
64
|
-
</div>
|