Files
njts-accounting-core/backend/app/modules/journal_entry.py
FNOS-WIN11ENT\choshoukaku b6751ced18 20251215滴修正
2025-12-15 14:49:59 +09:00

17 lines
341 B
Python

from pydantic import BaseModel
from typing import List
from decimal import Decimal
from datetime import date
class JournalLine(BaseModel):
account_id: int
debit: Decimal = Decimal("0")
credit: Decimal = Decimal("0")
class JournalEntryRequest(BaseModel):
entry_date: date
description: str
lines: List[JournalLine]