commit 102865188468df84f3949019cbd4045ea6020471 parent be4dbb18b5099d28e1cbccba24197224b2921be2 Author: Carlosokumu <carlosokumu254@gmail.com> Date: Tue, 31 Mar 2026 11:37:36 +0300 add precision field Diffstat:
| M | dummy/usawa/gui/core/models.py | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dummy/usawa/gui/core/models.py b/dummy/usawa/gui/core/models.py @@ -6,7 +6,7 @@ from pathlib import Path @dataclass class LedgerEntry: - """DTO for ledger entry input, converted to usawa.Entry before adding to ledger.""" + """DTO for ledger entry input, converted to usawa.Entry""" # Basic details external_reference: Optional[str] = None @@ -14,6 +14,7 @@ class LedgerEntry: # Transaction details amount: float = 0.0 + precision: int = 0 source_unit: str = "" source_type: str = "" source_path: str = "general"