20251215滴修正
This commit is contained in:
16
backend/app/modules/journal_entry.py
Normal file
16
backend/app/modules/journal_entry.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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]
|
||||
Reference in New Issue
Block a user