Ranmaruru / konce

Personal Finance Manager
Apache License 2.0
1 stars 0 forks source link

Feature/reports #17

Open lardira opened 2 weeks ago

lardira commented 2 weeks ago

Добавил отчёты в двух форматах

  1. транзакции в диапазоне

    {
    "positiveTransactions": [
       {
            "id": "",
            "amount": 0.0,
          ...
        }
    ],
    "negativeTransactions": [
        {
            "id": "",
            "amount": 0.0,
          ...
        }
    ],
    "summary": {
        "positiveSum": 0,
        "negativeSum": 0,
        "sum": 0
    }
    }
  2. транзакции по категориям (диапазон также можно задать)

    
    {
    "categories": {
    "Health": {
      "categoryId": "dc2acc12-dc97-45b3-a140-9159c092226e",
      "transactions": [
        {
          "id": "f1b75f1b-33cd-479c-aa9e-e0d8116a72b9",
          "amount": 0.0,
          "description": "fwef",
          "date": "1999-10-29T00:26:32.068"
          // ...
        }
      ],
      "sum": 0.0
    },
    "Food": {
      "categoryId": "dc2acc12-dc97-45b3-a140-9159c092226e",
      "transactions": [
        {
          "id": "f1b75f1b-33cd-479c-aa9e-e0d8116a72b9",
          "amount": -1000.0,
          "description": "fwef",
          "date": "2024-10-29T00:26:32.068"
          // ...
        }
      ],
      "sum": -1000.0
    }
    }
    }