tin-spa 20.6.1 → 20.6.2

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.
@@ -2262,7 +2262,7 @@ class DataServiceLib {
2262
2262
  ],
2263
2263
  loadAction: { url: 'employees/all/x' },
2264
2264
  formConfig: this.employeeFormConfig,
2265
- // realTime: true, // Disabled: testing realtime on transactions table only
2265
+ realTime: true,
2266
2266
  entityName: 'Employee' // Changed: Match backend entity name for SignalR broadcasts
2267
2267
  };
2268
2268
  //--------------------------Positions-------------------------
@@ -2299,7 +2299,7 @@ class DataServiceLib {
2299
2299
  ],
2300
2300
  loadAction: { url: 'positions/all/x' },
2301
2301
  formConfig: this.positionFormConfig,
2302
- // realTime: true, // Disabled: testing realtime on transactions table only
2302
+ realTime: true,
2303
2303
  entityName: 'Position' // Changed: Match backend entity name for SignalR broadcasts
2304
2304
  };
2305
2305
  //--------------------------Departments-------------------------
@@ -2342,7 +2342,7 @@ class DataServiceLib {
2342
2342
  ],
2343
2343
  loadAction: { url: 'departments/all/x' },
2344
2344
  formConfig: this.departmentFormConfig,
2345
- // realTime: true, // Disabled: testing realtime on transactions table only
2345
+ realTime: true,
2346
2346
  entityName: 'Department' // Changed: Match backend entity name for SignalR broadcasts
2347
2347
  };
2348
2348
  //--------------------------Contact Persons-------------------------
@@ -2444,7 +2444,7 @@ class DataServiceLib {
2444
2444
  ],
2445
2445
  loadAction: { url: 'customers/all/x' },
2446
2446
  formConfig: this.customerFormConfig,
2447
- // realTime: true, // Disabled: testing realtime on transactions table only — no re-fetch after CUD
2447
+ realTime: true,
2448
2448
  entityName: 'Customer' // Changed: Match backend typeof(Customer).Name for SignalR broadcasts
2449
2449
  };
2450
2450
  //--------------------------Suppliers-------------------------
@@ -3960,7 +3960,7 @@ class AccountingService {
3960
3960
  ],
3961
3961
  loadAction: { url: 'taxrates/all/x' },
3962
3962
  formConfig: this.taxRateFormConfig,
3963
- // realTime: true, // Disabled: testing realtime on transactions table only
3963
+ realTime: true,
3964
3964
  entityName: 'TaxRate'
3965
3965
  };
3966
3966
  //--------------------------Currencies-------------------------
@@ -4007,7 +4007,7 @@ class AccountingService {
4007
4007
  ],
4008
4008
  loadAction: { url: 'currencies/all/x' },
4009
4009
  formConfig: this.currencyFormConfig,
4010
- // realTime: true, // Disabled: testing realtime on transactions table only
4010
+ realTime: true,
4011
4011
  entityName: 'Currency'
4012
4012
  };
4013
4013
  //--------------------------Transaction Types-------------------------
@@ -4480,7 +4480,7 @@ class AccountingService {
4480
4480
  ],
4481
4481
  loadAction: { url: 'accounts/all/x' },
4482
4482
  formConfig: this.accountFormConfig,
4483
- // realTime: true, // Disabled: testing realtime on transactions table only
4483
+ realTime: true,
4484
4484
  entityName: 'Account'
4485
4485
  };
4486
4486
  //--------------------------Financial Reports-------------------------
@@ -4952,7 +4952,9 @@ class LoansService {
4952
4952
  ],
4953
4953
  loadAction: { url: 'loanproducts/all' },
4954
4954
  formConfig: this.loanProductFormConfig,
4955
- buttons: [this.loanProductCreateButton, this.loanProductEditButton, this.loanProductDeleteButton]
4955
+ buttons: [this.loanProductCreateButton, this.loanProductEditButton, this.loanProductDeleteButton],
4956
+ realTime: true,
4957
+ entityName: 'LoanProduct'
4956
4958
  };
4957
4959
  // ========== LOANS BUTTONS ==========
4958
4960
  this.loanCreateButton = { name: 'create', display: 'New Loan', dialog: true, action: { url: 'loans?action=create', method: 'post' } };
@@ -5161,7 +5163,7 @@ class GeneralService {
5161
5163
  ],
5162
5164
  loadAction: { url: 'categories/all/x' },
5163
5165
  formConfig: this.categoryFormConfig,
5164
- // realTime: true, // Disabled: testing realtime on transactions table only
5166
+ realTime: true,
5165
5167
  entityName: 'Category'
5166
5168
  };
5167
5169
  //--------------------------SubCategories-------------------------
@@ -5202,7 +5204,7 @@ class GeneralService {
5202
5204
  ],
5203
5205
  loadAction: { url: 'subcategories/all/x' },
5204
5206
  formConfig: this.subCategoryFormConfig,
5205
- // realTime: true, // Disabled: testing realtime on transactions table only
5207
+ realTime: true,
5206
5208
  entityName: 'SubCategory'
5207
5209
  };
5208
5210
  //--------------------------Brands-------------------------
@@ -5240,7 +5242,7 @@ class GeneralService {
5240
5242
  ],
5241
5243
  loadAction: { url: 'brands/all/x' },
5242
5244
  formConfig: this.brandFormConfig,
5243
- // realTime: true, // Disabled: testing realtime on transactions table only
5245
+ realTime: true,
5244
5246
  entityName: 'Brand'
5245
5247
  };
5246
5248
  //--------------------------ListItems-------------------------
@@ -5278,7 +5280,7 @@ class GeneralService {
5278
5280
  ],
5279
5281
  loadAction: { url: 'listitems/all/x' },
5280
5282
  formConfig: this.listItemFormConfig,
5281
- // realTime: true, // Disabled: testing realtime on transactions table only
5283
+ realTime: true,
5282
5284
  entityName: 'ListItem'
5283
5285
  };
5284
5286
  }
@@ -5354,7 +5356,7 @@ class InventoryService {
5354
5356
  ],
5355
5357
  loadAction: { url: 'products/all/x' },
5356
5358
  formConfig: this.productFormConfig,
5357
- // realTime: true, // Disabled: testing realtime on transactions table only
5359
+ realTime: true,
5358
5360
  entityName: 'Product'
5359
5361
  };
5360
5362
  //--------------------------Product Components (Bundle Configuration)-------------------------
@@ -5451,7 +5453,9 @@ class InventoryService {
5451
5453
  { name: 'delete', dialog: true, action: { url: 'products?action=delete', method: 'post' } }
5452
5454
  ],
5453
5455
  loadAction: { url: 'products/bundles/x' },
5454
- formConfig: this.bundleProductFormConfig
5456
+ formConfig: this.bundleProductFormConfig,
5457
+ realTime: true,
5458
+ entityName: 'Product'
5455
5459
  };
5456
5460
  //--------------------------ServiceItems-------------------------
5457
5461
  // ServiceItem form configuration - follows Product pattern
@@ -5498,7 +5502,7 @@ class InventoryService {
5498
5502
  ],
5499
5503
  loadAction: { url: 'serviceitems/all/x' },
5500
5504
  formConfig: this.serviceItemFormConfig,
5501
- // realTime: true, // Disabled: testing realtime on transactions table only
5505
+ realTime: true,
5502
5506
  entityName: 'ServiceItem'
5503
5507
  };
5504
5508
  //--------------------------Requisitions-------------------------
@@ -5635,7 +5639,7 @@ class InventoryService {
5635
5639
  ],
5636
5640
  loadAction: { url: 'inventoryitems/all/x' },
5637
5641
  formConfig: this.inventoryItemFormConfig,
5638
- // realTime: true, // Disabled: testing realtime on transactions table only
5642
+ realTime: true,
5639
5643
  entityName: 'InventoryItem'
5640
5644
  };
5641
5645
  //--------------------------Inventory Adjustments-------------------------
@@ -5690,7 +5694,7 @@ class InventoryService {
5690
5694
  ],
5691
5695
  loadAction: { url: 'inventoryadjustments/all/x' },
5692
5696
  formConfig: this.inventoryAdjustmentFormConfig,
5693
- // realTime: true, // Disabled: testing realtime on transactions table only
5697
+ realTime: true,
5694
5698
  entityName: 'InventoryAdjustment'
5695
5699
  };
5696
5700
  //--------------------------Inventory Returns-------------------------
@@ -11245,9 +11249,9 @@ class TableComponent {
11245
11249
  return "mat-elevation-z5";
11246
11250
  }
11247
11251
  }
11248
- // Changed: Real-time tables rely entirely on SignalR no fallback full refresh
11252
+ // Changed: Real-time tables fall back to full refresh when SignalR is disconnected
11249
11253
  realTimeRefreshOrFallback() {
11250
- if (!this.config.realTime) {
11254
+ if (!this.config.realTime || !this.isSignalRConnected) {
11251
11255
  this.refreshClicked();
11252
11256
  }
11253
11257
  }
@@ -17830,7 +17834,7 @@ class PayrollService {
17830
17834
  ],
17831
17835
  loadAction: { url: 'salarystructures/all/x' },
17832
17836
  formConfig: this.salaryStructureFormConfig,
17833
- // realTime: true, // Disabled: testing realtime on transactions table only
17837
+ realTime: true,
17834
17838
  entityName: 'SalaryStructure'
17835
17839
  };
17836
17840
  //--------------------------Statutory Deduction Bands (child of StatutoryDeductionType)-------------------------
@@ -17909,7 +17913,7 @@ class PayrollService {
17909
17913
  ],
17910
17914
  loadAction: { url: 'statutorydeductiontypes/all/x' },
17911
17915
  formConfig: this.statutoryDeductionTypeFormConfig,
17912
- // realTime: true, // Disabled: testing realtime on transactions table only
17916
+ realTime: true,
17913
17917
  entityName: 'StatutoryDeductionType'
17914
17918
  };
17915
17919
  //--------------------------Payslip Lines (child of Payslip)-------------------------
@@ -18076,7 +18080,7 @@ class PayrollService {
18076
18080
  ],
18077
18081
  loadAction: { url: 'commissionconfigs/all/x' },
18078
18082
  formConfig: this.commissionConfigFormConfig,
18079
- // realTime: true, // Disabled: testing realtime on transactions table only
18083
+ realTime: true,
18080
18084
  entityName: 'CommissionConfig'
18081
18085
  };
18082
18086
  // Employee commission configs child table
@@ -18137,7 +18141,7 @@ class PayrollService {
18137
18141
  ],
18138
18142
  loadAction: { url: 'commissionentries/all/x' },
18139
18143
  formConfig: this.commissionEntryFormConfig,
18140
- // realTime: true, // Disabled: testing realtime on transactions table only
18144
+ realTime: true,
18141
18145
  entityName: 'CommissionEntry'
18142
18146
  };
18143
18147
  // Employee commission entries child table
@@ -18193,7 +18197,7 @@ class PayrollService {
18193
18197
  ],
18194
18198
  loadAction: { url: 'salaryadvances/all/x' },
18195
18199
  formConfig: this.salaryAdvanceFormConfig,
18196
- // realTime: true, // Disabled: testing realtime on transactions table only
18200
+ realTime: true,
18197
18201
  entityName: 'SalaryAdvance'
18198
18202
  };
18199
18203
  // Employee salary advances child table
@@ -18250,7 +18254,7 @@ class PayrollService {
18250
18254
  ],
18251
18255
  loadAction: { url: 'overtimeentries/all/x' },
18252
18256
  formConfig: this.overtimeEntryFormConfig,
18253
- // realTime: true, // Disabled: testing realtime on transactions table only
18257
+ realTime: true,
18254
18258
  entityName: 'OvertimeEntry'
18255
18259
  };
18256
18260
  // Employee overtime entries child table
@@ -18728,7 +18732,7 @@ class ProductionService {
18728
18732
  ],
18729
18733
  loadAction: { url: 'productionrecipes/all/x' },
18730
18734
  formConfig: this.recipeFormConfig,
18731
- // realTime: true, // Disabled: testing realtime on transactions table only
18735
+ realTime: true,
18732
18736
  entityName: 'ProductionRecipe'
18733
18737
  };
18734
18738
  // ==================== PRODUCTION ORDERS ====================