tin-spa 20.2.6 → 20.2.8
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/fesm2022/tin-spa.mjs +17 -28
- package/fesm2022/tin-spa.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/tin-spa.mjs
CHANGED
|
@@ -2862,8 +2862,7 @@ class AccountingService {
|
|
|
2862
2862
|
detailsConfig: this.accountBaseDetailsConfig
|
|
2863
2863
|
},
|
|
2864
2864
|
{ name: 'description', type: 'text', required: true, span: true },
|
|
2865
|
-
{ name: 'amount', type: '
|
|
2866
|
-
{ name: 'amount', type: 'money', required: true, hideOnExists: true, span: true },
|
|
2865
|
+
{ name: 'amount', type: 'money', required: true, span: true },
|
|
2867
2866
|
],
|
|
2868
2867
|
};
|
|
2869
2868
|
this.transactionEditButton = { name: 'edit', dialog: true,
|
|
@@ -2905,7 +2904,6 @@ class AccountingService {
|
|
|
2905
2904
|
buttons: [
|
|
2906
2905
|
{ name: 'create', display: 'Create', dialog: true, action: { url: 'transactions/dto?action=create', method: 'post' } },
|
|
2907
2906
|
{ name: 'view', dialog: true, detailsConfig: this.transactionDetailsConfig },
|
|
2908
|
-
// { name: 'edit', dialog: true, detailsConfig: this.transactionDetailsConfig },
|
|
2909
2907
|
this.transactionEditButton,
|
|
2910
2908
|
this.transactionVoidButton,
|
|
2911
2909
|
],
|
|
@@ -2917,6 +2915,10 @@ class AccountingService {
|
|
|
2917
2915
|
causeFormRefresh: true,
|
|
2918
2916
|
tabTitle: 'Account Transactions',
|
|
2919
2917
|
loadAction: { url: 'transactions/account/x' }, loadCriteria: 'account', loadIDField: 'accountID',
|
|
2918
|
+
columns: [
|
|
2919
|
+
...this.transactionsTableConfig.columns,
|
|
2920
|
+
{ name: 'runningBalance', type: 'money', alias: 'Balance' } // Added running balance column
|
|
2921
|
+
],
|
|
2920
2922
|
};
|
|
2921
2923
|
//--------------------------Accounts-------------------------
|
|
2922
2924
|
this.accountDetailsConfig = {
|
|
@@ -2966,7 +2968,6 @@ class AccountingService {
|
|
|
2966
2968
|
{ name: 'profit', type: 'money', alias: 'Profit', colors: [{ name: 'green', condition: x => x.profit > 0 }, { name: 'red', condition: x => x.profit < 0 }] },
|
|
2967
2969
|
{ name: 'equity', type: 'money', alias: 'Equity' }
|
|
2968
2970
|
],
|
|
2969
|
-
buttons: [{ name: 'refresh' }],
|
|
2970
2971
|
loadAction: { url: 'accounts/aggregates/monthly' }
|
|
2971
2972
|
};
|
|
2972
2973
|
// Cumulative aggregates table showing running totals over time
|
|
@@ -2985,7 +2986,6 @@ class AccountingService {
|
|
|
2985
2986
|
{ name: 'expensesYTD', type: 'money', alias: 'Expenses YTD' },
|
|
2986
2987
|
{ name: 'profitYTD', type: 'money', alias: 'Profit YTD', colors: [{ name: 'green', condition: x => x.profitYTD > 0 }, { name: 'red', condition: x => x.profitYTD < 0 }] }
|
|
2987
2988
|
],
|
|
2988
|
-
buttons: [{ name: 'refresh' }],
|
|
2989
2989
|
loadAction: { url: 'accounts/aggregates/cumulative' }
|
|
2990
2990
|
};
|
|
2991
2991
|
// Cash flow aggregates table showing inflows, outflows and running balance
|
|
@@ -3001,7 +3001,6 @@ class AccountingService {
|
|
|
3001
3001
|
{ name: 'netCashFlow', type: 'money', alias: 'Net Cash Flow', colors: [{ name: 'green', condition: x => x.netCashFlow > 0 }, { name: 'red', condition: x => x.netCashFlow < 0 }] },
|
|
3002
3002
|
{ name: 'runningBalance', type: 'money', alias: 'Running Balance', colors: [{ name: 'green', condition: x => x.runningBalance > 0 }, { name: 'red', condition: x => x.runningBalance < 0 }] }
|
|
3003
3003
|
],
|
|
3004
|
-
buttons: [{ name: 'refresh' }],
|
|
3005
3004
|
loadAction: { url: 'accounts/aggregates/cashflow' }
|
|
3006
3005
|
};
|
|
3007
3006
|
// Balance sheet aggregates table showing Assets, Liabilities, and Equity by month
|
|
@@ -3017,7 +3016,6 @@ class AccountingService {
|
|
|
3017
3016
|
{ name: 'totalEquity', type: 'money', alias: 'Total Equity' },
|
|
3018
3017
|
{ name: 'netWorth', type: 'money', alias: 'Net Worth', colors: [{ name: 'green', condition: x => x.netWorth > 0 }, { name: 'red', condition: x => x.netWorth < 0 }] }
|
|
3019
3018
|
],
|
|
3020
|
-
buttons: [{ name: 'refresh' }],
|
|
3021
3019
|
loadAction: { url: 'accounts/aggregates/balancesheet' }
|
|
3022
3020
|
};
|
|
3023
3021
|
}
|
|
@@ -3443,7 +3441,7 @@ class InventoryService {
|
|
|
3443
3441
|
{ name: 'brandName', type: 'text', alias: 'Brand' },
|
|
3444
3442
|
{ name: 'currentInventoryLevel', type: 'number', alias: 'Current Stock', icon: { name: 'warning', color: 'orange', condition: (x) => x.isLowInventory } }, // Changed: Removed separate columns, added low stock icon to current stock
|
|
3445
3443
|
{ name: 'minimumInventoryLevel', type: 'number', alias: 'Min Stock' },
|
|
3446
|
-
{ name: 'sellingPrice', type: 'money',
|
|
3444
|
+
{ name: 'sellingPrice', type: 'money', }
|
|
3447
3445
|
], // Changed: Removed isSerialized, baseUnit, currentAverageCost, isLowInventory columns
|
|
3448
3446
|
buttons: [
|
|
3449
3447
|
this.productCreateButton,
|
|
@@ -3796,9 +3794,10 @@ class InventoryService {
|
|
|
3796
3794
|
flatButtons: true,
|
|
3797
3795
|
minColumns: ['receiptNumber', 'supplierName', 'receiptDate'],
|
|
3798
3796
|
columns: [
|
|
3799
|
-
{ name: 'receiptNumber', type: 'text', alias: 'Receipt #', icon: { name: 'hourglass_empty', color: 'orange', condition: (x) => x.pendingApproval, tip: 'Pending Approval' } },
|
|
3800
|
-
{ name: 'supplierName', type: 'text', alias: 'Supplier' },
|
|
3801
3797
|
{ name: 'receiptDate', type: 'date', alias: 'Date' },
|
|
3798
|
+
{ name: 'supplierName', type: 'text', alias: 'Supplier' },
|
|
3799
|
+
{ name: 'productsDisplay', type: 'text', alias: 'Products' }, // Added: Display product names or count
|
|
3800
|
+
{ name: 'paymentTypeName', type: 'text', alias: 'Payment' },
|
|
3802
3801
|
{ name: 'status', type: 'icon', alias: 'Status', detailsConfig: this.inventoryReceiptDetailsConfig, // Changed: Use status instead of statusName
|
|
3803
3802
|
icons: [
|
|
3804
3803
|
{ name: 'article', color: '#9E9E9E', condition: (x) => x.status === InventoryReceiptStatus.Draft, tip: 'Draft' }, // Changed: Use status enum
|
|
@@ -3806,7 +3805,6 @@ class InventoryService {
|
|
|
3806
3805
|
{ name: 'check_circle', color: '#4CAF50', condition: (x) => x.status === InventoryReceiptStatus.Completed, tip: 'Completed' } // Changed: Use status enum
|
|
3807
3806
|
]
|
|
3808
3807
|
},
|
|
3809
|
-
{ name: 'paymentTypeName', type: 'text', alias: 'Payment' },
|
|
3810
3808
|
{ name: 'totalAmount', type: 'money', alias: 'Total Value' }
|
|
3811
3809
|
],
|
|
3812
3810
|
buttons: [
|
|
@@ -4168,21 +4166,15 @@ class InventoryService {
|
|
|
4168
4166
|
flatButtons: true,
|
|
4169
4167
|
minColumns: ['saleNumber', 'displayCustomerName', 'totalAmount'],
|
|
4170
4168
|
columns: [
|
|
4171
|
-
{ name: 'saleNumber', type: 'text', alias: 'Sale #' },
|
|
4172
|
-
{ name: 'saleTypeName', type: 'chip', alias: 'Type', detailsConfig: this.saleDetailsConfig,
|
|
4173
|
-
colors: [
|
|
4174
|
-
{ name: '#4CAF50', condition: x => x.saleType === 0 },
|
|
4175
|
-
{ name: '#2196F3', condition: x => x.saleType === 1 }
|
|
4176
|
-
]
|
|
4177
|
-
},
|
|
4178
|
-
{ name: 'displayCustomerName', type: 'text', alias: 'Customer' },
|
|
4179
4169
|
{ name: 'saleDate', type: 'date', alias: 'Date' },
|
|
4180
|
-
{ name: '
|
|
4181
|
-
{ name: '
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
{ name: '#
|
|
4170
|
+
{ name: 'displayCustomerName', type: 'text', alias: 'Customer' },
|
|
4171
|
+
{ name: 'productsDisplay', type: 'text', alias: 'Products' }, // Added: Display product names or count
|
|
4172
|
+
{ name: 'paymentMethodName', type: 'text', alias: 'Payment' },
|
|
4173
|
+
{ name: 'paymentStatus', type: 'icon', alias: 'Status', detailsConfig: this.inventoryReceiptDetailsConfig, // Changed: Use status instead of statusName
|
|
4174
|
+
icons: [
|
|
4175
|
+
{ name: 'article', color: '#9E9E9E', condition: (x) => x.paymentStatus === 0, tip: 'Unpaid' }, // Changed: Use status enum
|
|
4176
|
+
{ name: 'inventory_2', color: '#2196F3', condition: (x) => x.paymentStatus === 2, tip: 'Partial' }, // Changed: Use status enum
|
|
4177
|
+
{ name: 'check_circle', color: '#4CAF50', condition: (x) => x.paymentStatus === 1, tip: 'Paid' } // Changed: Use status enum
|
|
4186
4178
|
]
|
|
4187
4179
|
},
|
|
4188
4180
|
{ name: 'totalAmount', type: 'money', alias: 'Total' }
|
|
@@ -14847,7 +14839,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
14847
14839
|
}]
|
|
14848
14840
|
}] });
|
|
14849
14841
|
|
|
14850
|
-
// Migrated from Shift src/app/home/default/fin-accounts/fin-accounts.component.ts
|
|
14851
14842
|
class AccountsComponent {
|
|
14852
14843
|
constructor(dataServiceLib, accountingService) {
|
|
14853
14844
|
this.dataServiceLib = dataServiceLib;
|
|
@@ -14993,7 +14984,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
14993
14984
|
}]
|
|
14994
14985
|
}], ctorParameters: () => [{ type: DataServiceLib }, { type: AccountingService }] });
|
|
14995
14986
|
|
|
14996
|
-
// Migrated from Shift src/app/home/default/fin-transaction-types/fin-transaction-types.component.ts
|
|
14997
14987
|
class TransactionTypesComponent {
|
|
14998
14988
|
constructor() {
|
|
14999
14989
|
this.accountingService = inject(AccountingService);
|
|
@@ -15016,7 +15006,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
|
|
|
15016
15006
|
}]
|
|
15017
15007
|
}] });
|
|
15018
15008
|
|
|
15019
|
-
// Migrated from Shift src/app/home/default/fin-transactions/fin-transactions.component.ts
|
|
15020
15009
|
class TransactionsComponent {
|
|
15021
15010
|
constructor() {
|
|
15022
15011
|
this.accountingService = inject(AccountingService);
|