taxtank-core 0.17.5 → 0.17.6

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.
@@ -4290,7 +4290,7 @@
4290
4290
  * net capital gain tax (includes tax exemptions)
4291
4291
  */
4292
4292
  Property.prototype.calculateNetCGT = function (sale) {
4293
- return this.getCGTExemptionRatio(sale) * sale.cgt;
4293
+ return this.getCGTExemptionRatio(sale) * sale.grossCGT;
4294
4294
  };
4295
4295
  /**
4296
4296
  * guess tax exemption based on property details
@@ -4341,7 +4341,7 @@
4341
4341
  }
4342
4342
  };
4343
4343
  Property.prototype.isOneYearExemptionApplicable = function (sale) {
4344
- return sale.cgt > 0 && this.getOwnershipDuration(sale, 'years') > 0;
4344
+ return sale.grossCGT > 0 && this.getOwnershipDuration(sale, 'years') > 0;
4345
4345
  };
4346
4346
  /**
4347
4347
  * ownership duration from purchase till sale