1
0
forked from erp-dev/erp

feat: change segment_size to decimal in Product model

This commit is contained in:
2025-12-27 14:48:24 +08:00
parent 69c3daa919
commit ce0cf3256c
8 changed files with 48 additions and 426 deletions

View File

@@ -1,6 +1,7 @@
from __future__ import annotations
import json
from decimal import Decimal
from typing import Any, List
from pydantic import BaseModel, Field, computed_field
@@ -13,7 +14,7 @@ class Product(BaseModel):
rowid: str
name: str
pieces: int | None
segment_size: int | None
segment_size: Decimal | None
unit: str | None
color: str | None
width: str | None = None