taxtank-core 2.1.103 → 2.1.104
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/taxtank-core.mjs +5 -5
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/common/index.d.ts.map +0 -1
- package/index.d.ts.map +0 -1
|
@@ -6736,8 +6736,11 @@ class Property extends Property$1 {
|
|
|
6736
6736
|
get corelogicNextDate() {
|
|
6737
6737
|
return this.corelogicLastRequest ? new Date(this.corelogicLastRequest.getTime() + Property.corelogicCooldown) : new Date();
|
|
6738
6738
|
}
|
|
6739
|
+
isForeign() {
|
|
6740
|
+
return !this.address.country.isAustralia();
|
|
6741
|
+
}
|
|
6739
6742
|
isCorelogicAvailable() {
|
|
6740
|
-
return this.
|
|
6743
|
+
return !this.isForeign() && (this.corelogicLastRequest < new Date(Date.now() - Property.corelogicCooldown));
|
|
6741
6744
|
}
|
|
6742
6745
|
getGrowth() {
|
|
6743
6746
|
return this.valuation.marketValue - this.purchasePrice;
|
|
@@ -17095,7 +17098,6 @@ var SoleBusinessMessagesEnum;
|
|
|
17095
17098
|
SoleBusinessMessagesEnum["LOGO_UPDATED"] = "Logo updated successfully";
|
|
17096
17099
|
SoleBusinessMessagesEnum["DELETED"] = "Business deleted";
|
|
17097
17100
|
SoleBusinessMessagesEnum["CLOSED"] = "Business closed";
|
|
17098
|
-
SoleBusinessMessagesEnum["REOPENED"] = "Business reopened";
|
|
17099
17101
|
SoleBusinessMessagesEnum["UPDATED"] = "Business updated";
|
|
17100
17102
|
SoleBusinessMessagesEnum["CREATED"] = "Business created";
|
|
17101
17103
|
})(SoleBusinessMessagesEnum || (SoleBusinessMessagesEnum = {}));
|
|
@@ -28254,9 +28256,7 @@ class PropertyEditForm extends AbstractForm {
|
|
|
28254
28256
|
|
|
28255
28257
|
class PropertyValuationForm extends AbstractForm {
|
|
28256
28258
|
constructor(valuation = plainToClass(PropertyValuation, {}), property) {
|
|
28257
|
-
|
|
28258
|
-
// const marketValue = valuation.id ? valuation.marketValue ?? property?.marketValue : 0;
|
|
28259
|
-
const marketValue = valuation.marketValue ?? property?.marketValue;
|
|
28259
|
+
const marketValue = property?.isForeign() && !valuation.id ? 0 : valuation.marketValue ?? property?.marketValue;
|
|
28260
28260
|
super({
|
|
28261
28261
|
// corelogic available only for new valuations if request cooldown has passed
|
|
28262
28262
|
isCorelogic: new FormControl(property?.isCorelogicAvailable() && !valuation.id),
|