wherehouse: change inventory list serializer

This commit is contained in:
behruz-dev
2025-11-10 15:54:30 +05:00
parent 94d14d548e
commit e96475c81d
6 changed files with 54 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ class Inventory(BaseModel):
)
is_invalid = models.BooleanField(default=False)
unit_price = models.DecimalField(max_digits=15, decimal_places=2, default=0.00)
received_currency = models.CharField(max_length=3, null=True, blank=True)
def __str__(self):
return f'{self.product} in {self.wherehouse}'