Files
accounted/mock_data/valutafordringar.json
T
2026-02-24 16:06:36 +01:00

246 lines
7.4 KiB
JSON

{
"referenceDate": "2025-12-15",
"exchangeRates": [
{ "currency": "EUR", "rate": 11.4215, "date": "2025-12-15" },
{ "currency": "USD", "rate": 10.3870, "date": "2025-12-15" },
{ "currency": "GBP", "rate": 13.5420, "date": "2025-12-15" },
{ "currency": "NOK", "rate": 0.9845, "date": "2025-12-15" }
],
"exposureByCurrency": [
{
"currency": "EUR",
"totalForeignAmount": 48500,
"bookedSekValue": 541350,
"currentSekValue": 553943,
"unrealizedGainLoss": 12593,
"invoiceCount": 4,
"averageBookedRate": 11.1619,
"currentRate": 11.4215
},
{
"currency": "USD",
"totalForeignAmount": 72000,
"bookedSekValue": 741600,
"currentSekValue": 747864,
"unrealizedGainLoss": 6264,
"invoiceCount": 3,
"averageBookedRate": 10.3000,
"currentRate": 10.3870
},
{
"currency": "GBP",
"totalForeignAmount": 15000,
"bookedSekValue": 199500,
"currentSekValue": 203130,
"unrealizedGainLoss": 3630,
"invoiceCount": 1,
"averageBookedRate": 13.3000,
"currentRate": 13.5420
},
{
"currency": "NOK",
"totalForeignAmount": 320000,
"bookedSekValue": 316800,
"currentSekValue": 315040,
"unrealizedGainLoss": -1760,
"invoiceCount": 2,
"averageBookedRate": 0.9900,
"currentRate": 0.9845
}
],
"receivables": [
{
"invoiceId": "inv-1001",
"invoiceNumber": "1001",
"customerName": "Berliner Maschinenbau GmbH",
"customerCountry": "DE",
"currency": "EUR",
"foreignAmount": 22000,
"bookedSekAmount": 245300,
"bookedRate": 11.15,
"currentSekAmount": 251273,
"currentRate": 11.4215,
"unrealizedGainLoss": 5973,
"invoiceDate": "2025-10-15",
"dueDate": "2025-12-15",
"daysOutstanding": 61
},
{
"invoiceId": "inv-1008",
"invoiceNumber": "1008",
"customerName": "Lyon Digital SARL",
"customerCountry": "FR",
"currency": "EUR",
"foreignAmount": 14500,
"bookedSekAmount": 163050,
"bookedRate": 11.245,
"currentSekAmount": 165612,
"currentRate": 11.4215,
"unrealizedGainLoss": 2562,
"invoiceDate": "2025-11-05",
"dueDate": "2026-01-05",
"daysOutstanding": 40
},
{
"invoiceId": "inv-1012",
"invoiceNumber": "1012",
"customerName": "Amsterdam Trading BV",
"customerCountry": "NL",
"currency": "EUR",
"foreignAmount": 8000,
"bookedSekAmount": 89600,
"bookedRate": 11.20,
"currentSekAmount": 91372,
"currentRate": 11.4215,
"unrealizedGainLoss": 1772,
"invoiceDate": "2025-11-20",
"dueDate": "2025-12-20",
"daysOutstanding": 25
},
{
"invoiceId": "inv-1015",
"invoiceNumber": "1015",
"customerName": "Helsinki Solutions Oy",
"customerCountry": "FI",
"currency": "EUR",
"foreignAmount": 4000,
"bookedSekAmount": 43400,
"bookedRate": 10.85,
"currentSekAmount": 45686,
"currentRate": 11.4215,
"unrealizedGainLoss": 2286,
"invoiceDate": "2025-12-01",
"dueDate": "2026-01-01",
"daysOutstanding": 14
},
{
"invoiceId": "inv-1003",
"invoiceNumber": "1003",
"customerName": "New York Consulting Inc",
"customerCountry": "US",
"currency": "USD",
"foreignAmount": 35000,
"bookedSekAmount": 360500,
"bookedRate": 10.30,
"currentSekAmount": 363545,
"currentRate": 10.3870,
"unrealizedGainLoss": 3045,
"invoiceDate": "2025-09-28",
"dueDate": "2025-11-28",
"daysOutstanding": 78
},
{
"invoiceId": "inv-1009",
"invoiceNumber": "1009",
"customerName": "Chicago Parts LLC",
"customerCountry": "US",
"currency": "USD",
"foreignAmount": 22000,
"bookedSekAmount": 224400,
"bookedRate": 10.20,
"currentSekAmount": 228514,
"currentRate": 10.3870,
"unrealizedGainLoss": 4114,
"invoiceDate": "2025-10-20",
"dueDate": "2025-12-20",
"daysOutstanding": 56
},
{
"invoiceId": "inv-1018",
"invoiceNumber": "1018",
"customerName": "San Francisco Tech Corp",
"customerCountry": "US",
"currency": "USD",
"foreignAmount": 15000,
"bookedSekAmount": 156700,
"bookedRate": 10.4467,
"currentSekAmount": 155805,
"currentRate": 10.3870,
"unrealizedGainLoss": -895,
"invoiceDate": "2025-12-05",
"dueDate": "2026-02-05",
"daysOutstanding": 10
},
{
"invoiceId": "inv-1010",
"invoiceNumber": "1010",
"customerName": "London Engineering Ltd",
"customerCountry": "GB",
"currency": "GBP",
"foreignAmount": 15000,
"bookedSekAmount": 199500,
"bookedRate": 13.30,
"currentSekAmount": 203130,
"currentRate": 13.5420,
"unrealizedGainLoss": 3630,
"invoiceDate": "2025-11-01",
"dueDate": "2026-01-01",
"daysOutstanding": 44
},
{
"invoiceId": "inv-1005",
"invoiceNumber": "1005",
"customerName": "Oslo Shipping AS",
"customerCountry": "NO",
"currency": "NOK",
"foreignAmount": 200000,
"bookedSekAmount": 198000,
"bookedRate": 0.99,
"currentSekAmount": 196900,
"currentRate": 0.9845,
"unrealizedGainLoss": -1100,
"invoiceDate": "2025-10-10",
"dueDate": "2025-12-10",
"daysOutstanding": 66
},
{
"invoiceId": "inv-1016",
"invoiceNumber": "1016",
"customerName": "Bergen Industri AS",
"customerCountry": "NO",
"currency": "NOK",
"foreignAmount": 120000,
"bookedSekAmount": 118800,
"bookedRate": 0.99,
"currentSekAmount": 118140,
"currentRate": 0.9845,
"unrealizedGainLoss": -660,
"invoiceDate": "2025-11-22",
"dueDate": "2026-01-22",
"daysOutstanding": 23
}
],
"realizedGainLoss": {
"year": 2025,
"gains": 28450,
"losses": 7820,
"net": 20630
},
"monthlyTrend": [
{ "month": "2025-01", "realizedGains": 1200, "realizedLosses": 0, "netRealized": 1200 },
{ "month": "2025-02", "realizedGains": 0, "realizedLosses": 890, "netRealized": -890 },
{ "month": "2025-03", "realizedGains": 3400, "realizedLosses": 0, "netRealized": 3400 },
{ "month": "2025-04", "realizedGains": 2100, "realizedLosses": 1250, "netRealized": 850 },
{ "month": "2025-05", "realizedGains": 0, "realizedLosses": 2300, "netRealized": -2300 },
{ "month": "2025-06", "realizedGains": 4500, "realizedLosses": 0, "netRealized": 4500 },
{ "month": "2025-07", "realizedGains": 1850, "realizedLosses": 680, "netRealized": 1170 },
{ "month": "2025-08", "realizedGains": 3200, "realizedLosses": 0, "netRealized": 3200 },
{ "month": "2025-09", "realizedGains": 5600, "realizedLosses": 1400, "netRealized": 4200 },
{ "month": "2025-10", "realizedGains": 2800, "realizedLosses": 0, "netRealized": 2800 },
{ "month": "2025-11", "realizedGains": 1500, "realizedLosses": 1300, "netRealized": 200 },
{ "month": "2025-12", "realizedGains": 2300, "realizedLosses": 0, "netRealized": 2300 }
],
"revalPreview": {
"totalUnrealizedGainLoss": 20727,
"gains": 22487,
"losses": 1760
},
"totals": {
"bookedSekValue": 1799250,
"currentSekValue": 1819977,
"totalUnrealizedGainLoss": 20727,
"receivableCount": 10,
"currencyCount": 4
}
}