forked from erp-dev/erp
feat: change segment_size to decimal in Product model
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user