@accounter/server 0.0.8-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550 → 0.0.8-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @accounter/server
2
2
 
3
- ## 0.0.8-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550
3
+ ## 0.0.8-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -763,10 +763,10 @@
763
763
  [`65e3c7f`](https://github.com/Urigo/accounter-fullstack/commit/65e3c7f01993eb4f41244a40feefefa08b31a4e6),
764
764
  [`7a898a0`](https://github.com/Urigo/accounter-fullstack/commit/7a898a0ff1ee15420ab2532370a1d2f618cc86ab),
765
765
  [`15ed6f9`](https://github.com/Urigo/accounter-fullstack/commit/15ed6f982a5d288a1159ccd069fca14b35801a18)]:
766
- - @accounter/green-invoice-graphql@0.8.2-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550
767
- - @accounter/pcn874-generator@0.6.3-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550
768
- - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550
769
- - @accounter/shaam6111-generator@0.1.4-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550
766
+ - @accounter/green-invoice-graphql@0.8.2-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
767
+ - @accounter/pcn874-generator@0.6.3-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
768
+ - @accounter/shaam-uniform-format-generator@0.2.2-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
769
+ - @accounter/shaam6111-generator@0.1.4-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555
770
770
 
771
771
  ## 0.0.7
772
772
 
@@ -36,10 +36,10 @@ LEFT JOIN accounter_schema.charges c ON t.charge_id = c.id
36
36
  LEFT JOIN LATERAL (
37
37
  SELECT er.usd, er.eur, er.gbp, er.cad, er.jpy, er.aud, er.sek
38
38
  FROM accounter_schema.exchange_rates er
39
- WHERE er.exchange_date <= t.debit_date
39
+ WHERE er.exchange_date <= COALESCE(t.debit_date_override, t.debit_timestamp, t.debit_date)
40
40
  ORDER BY er.exchange_date DESC
41
41
  LIMIT 1
42
- ) lr ON t.currency = 'ILS' OR t.currency = 'EUR' OR t.currency ='GBP' OR t.currency = 'CAD' OR t.currency = 'JPY' OR t.currency = 'AUD' OR t.currency = 'SEK' OR t.currency = 'USD'
42
+ ) lr ON TRUE
43
43
  LEFT JOIN LATERAL (
44
44
  SELECT cer.value
45
45
  FROM accounter_schema.crypto_exchange_rates cer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@accounter/server",
3
- "version": "0.0.8-alpha-20251113115727-d1269be666ec9b8513af36434fc2ee1516f64550",
3
+ "version": "0.0.8-alpha-20251113122341-c58e52e8511e5013a5241c221ce87b94fa12b555",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -41,10 +41,10 @@ LEFT JOIN accounter_schema.charges c ON t.charge_id = c.id
41
41
  LEFT JOIN LATERAL (
42
42
  SELECT er.usd, er.eur, er.gbp, er.cad, er.jpy, er.aud, er.sek
43
43
  FROM accounter_schema.exchange_rates er
44
- WHERE er.exchange_date <= t.debit_date
44
+ WHERE er.exchange_date <= COALESCE(t.debit_date_override, t.debit_timestamp, t.debit_date)
45
45
  ORDER BY er.exchange_date DESC
46
46
  LIMIT 1
47
- ) lr ON t.currency = 'ILS' OR t.currency = 'EUR' OR t.currency ='GBP' OR t.currency = 'CAD' OR t.currency = 'JPY' OR t.currency = 'AUD' OR t.currency = 'SEK' OR t.currency = 'USD'
47
+ ) lr ON TRUE
48
48
  LEFT JOIN LATERAL (
49
49
  SELECT cer.value
50
50
  FROM accounter_schema.crypto_exchange_rates cer