@actual-app/api 25.12.0-nightly.20251118 → 25.12.0-nightly.20251119

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.
@@ -107326,12 +107326,6 @@ async function prepareTransactionForRules(trans, accounts = null) {
107326
107326
  r._account = await getAccount(trans.account);
107327
107327
  r._account_name = r._account?.name || "";
107328
107328
  }
107329
- }
107330
- if (trans.category) {
107331
- const category = await getCategory(trans.category);
107332
- if (category) {
107333
- r._category_name = category.name;
107334
- }
107335
107329
  const dateBoundary = trans.date ?? currentDay();
107336
107330
  let query = q("transactions").filter({ account: trans.account, is_parent: false }).options({ splits: "inline" });
107337
107331
  if (trans.id) {
@@ -107358,6 +107352,12 @@ async function prepareTransactionForRules(trans, accounts = null) {
107358
107352
  const { data: balance } = await aqlQuery(query.filter({ $or: [{ date: { $lt: dateBoundary } }, sameDayFilter] }).calculate({ $sum: "$amount" }));
107359
107353
  r.balance = balance ?? 0;
107360
107354
  }
107355
+ if (trans.category) {
107356
+ const category = await getCategory(trans.category);
107357
+ if (category) {
107358
+ r._category_name = category.name;
107359
+ }
107360
+ }
107361
107361
  return r;
107362
107362
  }
107363
107363
  async function finalizeTransactionForRules(trans) {
@@ -111304,11 +111304,13 @@ const currencies = [
111304
111304
  { code: "GBP", name: "Pound Sterling", symbol: "£", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111305
111305
  { code: "GTQ", name: "Guatemalan Quetzal", symbol: "Q", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111306
111306
  { code: "HKD", name: "Hong Kong Dollar", symbol: "HK$", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111307
+ { code: "IDR", name: "Indonesian Rupiah", symbol: "Rp", decimalPlaces: 2, numberFormat: "dot-comma", symbolFirst: true },
111307
111308
  { code: "INR", name: "Indian Rupee", symbol: "₹", decimalPlaces: 2, numberFormat: "comma-dot-in", symbolFirst: true },
111308
111309
  { code: "JMD", name: "Jamaican Dollar", symbol: "J$", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111309
111310
  { code: "JPY", name: "Japanese Yen", symbol: "¥", decimalPlaces: 0, numberFormat: "comma-dot", symbolFirst: true },
111310
111311
  { code: "LKR", name: "Sri Lankan Rupee", symbol: "Rs.", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111311
111312
  { code: "MDL", name: "Moldovan Leu", symbol: "L", decimalPlaces: 2, numberFormat: "dot-comma", symbolFirst: false },
111313
+ { code: "MYR", name: "Malaysian Ringgit", symbol: "RM", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111312
111314
  { code: "PHP", name: "Philippine Peso", symbol: "₱", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: true },
111313
111315
  { code: "PLN", name: "Polish Złoty", symbol: "zł", decimalPlaces: 2, numberFormat: "space-comma", symbolFirst: false },
111314
111316
  { code: "QAR", name: "Qatari Riyal", symbol: "ر.ق", decimalPlaces: 2, numberFormat: "comma-dot", symbolFirst: false },
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "25.12.0-nightly.20251118",
3
+ "version": "25.12.0-nightly.20251119",
4
4
  "license": "MIT",
5
5
  "description": "An API for Actual",
6
6
  "engines": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/api",
3
- "version": "25.12.0-nightly.20251118",
3
+ "version": "25.12.0-nightly.20251119",
4
4
  "license": "MIT",
5
5
  "description": "An API for Actual",
6
6
  "engines": {