@diy-accounting-uk/diya-gl 1.2.35 → 1.2.37

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.
@@ -1143,6 +1143,58 @@
1143
1143
  "scorecard": "101605 passed, 0 warnings, 0 failed"
1144
1144
  }
1145
1145
  }
1146
+ },
1147
+ {
1148
+ "tag": "diya-gl-v1.2.35",
1149
+ "date": "2026-09-25",
1150
+ "formatVersion": "diya-gl/1",
1151
+ "engineVersion": "1.2.26+80457d57d",
1152
+ "taxDataHash": "3221a7c2f39c",
1153
+ "reconciledCommit": "54e8731a91279975e61b1a232fbb67fda89515f0",
1154
+ "templates": {
1155
+ "bst": {
1156
+ "hash": "0d003e10e00c",
1157
+ "scorecard": "812 passed, 0 warnings, 0 failed"
1158
+ },
1159
+ "taxi": {
1160
+ "hash": "1ff69654d64d",
1161
+ "scorecard": "686 passed, 0 warnings, 0 failed"
1162
+ },
1163
+ "se": {
1164
+ "hash": "064605ae76ed",
1165
+ "scorecard": "7982 passed, 0 warnings, 0 failed"
1166
+ },
1167
+ "ltd": {
1168
+ "hash": "caa14632083b",
1169
+ "scorecard": "101605 passed, 0 warnings, 0 failed"
1170
+ }
1171
+ }
1172
+ },
1173
+ {
1174
+ "tag": "diya-gl-v1.2.36",
1175
+ "date": "2026-09-29",
1176
+ "formatVersion": "diya-gl/1",
1177
+ "engineVersion": "1.2.26+80457d57d",
1178
+ "taxDataHash": "3221a7c2f39c",
1179
+ "reconciledCommit": "54e8731a91279975e61b1a232fbb67fda89515f0",
1180
+ "templates": {
1181
+ "bst": {
1182
+ "hash": "0d003e10e00c",
1183
+ "scorecard": "812 passed, 0 warnings, 0 failed"
1184
+ },
1185
+ "taxi": {
1186
+ "hash": "1ff69654d64d",
1187
+ "scorecard": "686 passed, 0 warnings, 0 failed"
1188
+ },
1189
+ "se": {
1190
+ "hash": "064605ae76ed",
1191
+ "scorecard": "7982 passed, 0 warnings, 0 failed"
1192
+ },
1193
+ "ltd": {
1194
+ "hash": "caa14632083b",
1195
+ "scorecard": "101605 passed, 0 warnings, 0 failed"
1196
+ }
1197
+ }
1146
1198
  }
1147
1199
  ]
1148
1200
  }
@@ -1576,7 +1576,7 @@ function buildTrialBalance(input) {
1576
1576
  // Interest received arrives net of the tax deducted at source, and the
1577
1577
  // computation charges the gross figure. EH58 is the grossing-up and EH35
1578
1578
  // gives the same tax back as a credit against the charge.
1579
- tb.EH58 = tb.EJ58 / ((100 - input.smallProfitsRatePercent) / 100) - tb.EJ58;
1579
+ tb.EH58 = Math.round((tb.EJ58 / ((100 - input.smallProfitsRatePercent) / 100) - tb.EJ58) * 100) / 100;
1580
1580
  tb.EJ58 += tb.EH58;
1581
1581
  tb.EH35 = -tb.EH58;
1582
1582
 
@@ -1867,7 +1867,7 @@ function buildCorporationTax({ admin, trialBalance, blocks, publishedPl, openAcc
1867
1867
  sheet[`L${sheetRow}`] = row.marginalRelief;
1868
1868
  sheet[`I${sheetRow}`] = row.tax;
1869
1869
  });
1870
- sheet.K35 = charge.tax;
1870
+ sheet.K35 = Math.round(charge.tax * 100) / 100;
1871
1871
  sheet.K37 = trialBalance.EH35;
1872
1872
  sheet.K39 = sheet.K35 - sheet.K37;
1873
1873
  sheet.marginalRelief = charge.marginalRelief;
@@ -1913,7 +1913,7 @@ function buildCt600(corporationTax, pl, admin) {
1913
1913
  sheet.AJ110 = sheet.AJ92;
1914
1914
  sheet.AJ131 = sheet.AJ126 + sheet.AJ128;
1915
1915
  sheet.Y133 = corporationTax.marginalRelief;
1916
- sheet.Y135 = sheet.AJ131 - sheet.Y133;
1916
+ sheet.Y135 = corporationTax.K35;
1917
1917
  sheet.AJ145 = sheet.Y135;
1918
1918
  sheet.AJ154 = corporationTax.K37 > 0 ? corporationTax.K37 : 0;
1919
1919
  sheet.AJ159 = sheet.AJ145 > 0 ? sheet.AJ145 - sheet.AJ154 : 0;
@@ -12,7 +12,7 @@
12
12
 
13
13
  export const PROVENANCE_DATA = {
14
14
  formatVersion: "diya-gl/1",
15
- engineVersion: "1.2.26+80457d57d",
15
+ engineVersion: "1.2.37+907683df0",
16
16
  taxDataHash: "3221a7c2f39c",
17
17
  reconciledCommit: "54e8731a91279975e61b1a232fbb67fda89515f0",
18
18
  templates: {
@@ -29,7 +29,7 @@ export const PROVENANCE_DATA = {
29
29
  scorecard: "7982 passed, 0 warnings, 0 failed",
30
30
  },
31
31
  ltd: {
32
- hash: "caa14632083b",
32
+ hash: "5bb7be9b6d97",
33
33
  scorecard: "101605 passed, 0 warnings, 0 failed",
34
34
  },
35
35
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diy-accounting-uk/diya-gl",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "type": "module",
5
5
  "description": "Recalculate, read and write DIYA-GL books from the command line",
6
6
  "license": "Apache-2.0",