homeflowjs 1.0.42 → 1.0.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -58,7 +58,7 @@ const englishRates = (
58
58
  totalRate = rate1 + rate2 + rate3 + rate4 + rate5;
59
59
 
60
60
  // Apply additional rate for non-UK residents only if applicable
61
- if (!ukResident && additionalProperty) {
61
+ if (!ukResident) {
62
62
  totalRate += price * 0.02; // Non-UK resident surcharge
63
63
  }
64
64
  }
@@ -10,50 +10,50 @@ const welshRates = (price, additionalProperty, ukResident) => {
10
10
 
11
11
  if (additionalProperty) {
12
12
  // Rate 1
13
- if (price > 180000) rate1 = 180000 * 0.04;
13
+ if (price > 180000) rate1 = 180000 * 0.05;
14
14
  if (price <= 180000) {
15
- rate1 = price * 0.04;
15
+ rate1 = price * 0.05;
16
16
  }
17
17
 
18
18
  // Rate 2
19
19
  if (price - 180000 > 0) {
20
20
  if ((price - 180000) > (250000 - 180000)) {
21
- rate2 = (250000 - 180000) * 0.075;
21
+ rate2 = (250000 - 180000) * 0.085;
22
22
  } else {
23
- rate2 = (price - 180000) * 0.075;
23
+ rate2 = (price - 180000) * 0.085;
24
24
  }
25
25
  }
26
26
 
27
27
  // Rate 3
28
28
  if (price - 250000 > 0) {
29
29
  if ((price - 250000) > (400000 - 250000)) {
30
- rate3 = (400000 - 250000) * 0.09;
30
+ rate3 = (400000 - 250000) * 0.10;
31
31
  } else {
32
- rate3 = (price - 250000) * 0.09;
32
+ rate3 = (price - 250000) * 0.10;
33
33
  }
34
34
  }
35
35
 
36
36
  // Rate 4
37
37
  if (price - 400000 > 0) {
38
38
  if ((price - 400000) > (750000 - 400000)) {
39
- rate4 = (750000 - 400000) * 0.115;
39
+ rate4 = (750000 - 400000) * 0.125;
40
40
  } else {
41
- rate4 = (price - 400000) * 0.115;
41
+ rate4 = (price - 400000) * 0.125;
42
42
  }
43
43
  }
44
44
 
45
45
  // Rate 5
46
46
  if (price - 750000 > 0) {
47
47
  if ((price - 750000) > (1500000 - 750000)) {
48
- rate5 = (1500000 - 750000) * 0.14;
48
+ rate5 = (1500000 - 750000) * 0.15;
49
49
  } else {
50
- rate5 = (price - 750000) * 0.14;
50
+ rate5 = (price - 750000) * 0.15;
51
51
  }
52
52
  }
53
53
 
54
54
  // Rate 6
55
55
  if (price - 1500000 > 0) {
56
- rate6 = (price - 1500000) * 0.160;
56
+ rate6 = (price - 1500000) * 0.17;
57
57
  }
58
58
  }
59
59