taxtank-core 2.1.54 → 2.1.55

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.
@@ -7197,7 +7197,7 @@ class Transaction extends Transaction$1 {
7197
7197
  * Check if transaction is completely allocated
7198
7198
  */
7199
7199
  isAllocated(allocations) {
7200
- return Math.abs(this.getAllocatedAmount(allocations)) - Math.abs(this.netAmount) >= -0.01;
7200
+ return Math.abs(this.getAllocatedAmount(allocations)) - Math.abs(this.netAmount) >= -0.001;
7201
7201
  }
7202
7202
  getAllocatedAmount(allocations) {
7203
7203
  return allocations.filterBy('transaction.id', this.id).sumBy('amount');
@@ -18443,7 +18443,7 @@ class UserService extends RestService$1 {
18443
18443
  this.modelClass = User;
18444
18444
  this.collectionClass = Collection;
18445
18445
  this.endpointUri = 'users';
18446
- this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch', 'delete'];
18446
+ this.disabledMethods = ['postBatch', 'putBatch', 'deleteBatch'];
18447
18447
  this.mpService = inject(MixpanelService$1);
18448
18448
  this.listenEvents();
18449
18449
  }
@@ -18505,7 +18505,7 @@ class UserService extends RestService$1 {
18505
18505
  return this.put(user, `${this.apiUrl}/status`);
18506
18506
  }
18507
18507
  deactivate(user) {
18508
- return this.put(user, `${this.apiUrl}/${user.id}/delete`).pipe(map((user) => {
18508
+ return this.delete(user, `${this.apiUrl}/${user.id}/delete`).pipe(map((user) => {
18509
18509
  // localStorage.removeItem('userId');
18510
18510
  location.replace('/login');
18511
18511
  return user;