﻿{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "JournalEntryPosition",
  "title": "1.0.0",
  "version": "1.0.0",
  "type": "object",
  "properties": {
    "positionNo": {
      "description": "Numer pozycji dekretu",
      "type": "integer"
    },
    "description": {
      "description": "Opis pozycji dekretu",
      "type": "string"
    },
    "symbol": {
      "description": "Symbol pozycji dekretu",
      "$ref": "CodeableConcept.schema.json"
    },
    "debitAccount": {
      "description": "Konto ksi\u0119gi debetowej (Wn)",
      "$ref": "Reference.schema.json"
    },
    "creditAccount": {
      "description": "Konto ksi\u0119gi kredytowej (Ma)",
      "$ref": "Reference.schema.json"
    },
    "amount": {
      "description": "Kwota pozycji",
      "$ref": "Money.schema.json"
    },
    "foreignAmount": {
      "description": "Kwota w walucie obcej",
      "$ref": "Money.schema.json"
    },
    "exchangeRate": {
      "description": "Kurs waluty",
      "type": "number"
    },
    "decreePosition": {
      "description": "Pozycja dekretu w obr\u0119bie dokumentu",
      "type": "integer"
    }
  },
  "required": [
    "positionNo",
    "amount",
    "decreePosition"
  ]
}