taxtank-core 0.30.113 → 0.30.116

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.
@@ -375,7 +375,7 @@ var TankTypeEnum;
375
375
 
376
376
  class TransactionBase extends ObservableModel {
377
377
  get claimRatio() {
378
- return this.claimPercent / 100;
378
+ return this.sharedClaimPercent / 100;
379
379
  }
380
380
  get tankType() {
381
381
  switch (true) {
@@ -460,6 +460,9 @@ __decorate([
460
460
  Type(() => Object),
461
461
  Transform(({ obj }) => obj.file)
462
462
  ], TransactionBase.prototype, "file", void 0);
463
+ __decorate([
464
+ Transform(({ value }) => +value)
465
+ ], TransactionBase.prototype, "sharedClaimPercent", void 0);
463
466
  __decorate([
464
467
  Exclude()
465
468
  ], TransactionBase.prototype, "amountWithGst", null);
@@ -4697,6 +4700,7 @@ const USER_ROLES = {
4697
4700
  ROLE_USER_PROPERTY: [UserRolesEnum.PROPERTY_TANK],
4698
4701
  ROLE_USER_SOLE: [UserRolesEnum.SOLE_TANK],
4699
4702
  ROLE_USER_HOLDING: [UserRolesEnum.HOLDING_TANK],
4703
+ ROLE_PREVIOUS_ADMIN: [UserRolesEnum.SWITCH_USER],
4700
4704
  };
4701
4705
 
4702
4706
  /**
@@ -7910,7 +7914,7 @@ class User extends User$1 {
7910
7914
  * get user's initials
7911
7915
  */
7912
7916
  getPhotoPlaceholder() {
7913
- return `${this.firstName[0].toUpperCase()}${this.lastName[0].toUpperCase()}`;
7917
+ return `${this.firstName[0].toUpperCase()}${this.firstName[1]}`;
7914
7918
  }
7915
7919
  isCurrentFinancialYear() {
7916
7920
  return new FinancialYear(new Date()).year === this.financialYear;