some apis of pos

This commit is contained in:
2025-08-20 14:44:43 +03:30
parent 14cd349a7d
commit 20e4bfad75
12 changed files with 316 additions and 29 deletions

View File

@@ -1,5 +1,7 @@
from apps.product import models as product_models
from apps.authentication.models import User
from apps.pos_device.models import Device
from apps.herd.models import Rancher
from apps.core.models import BaseModel
from django.db import models
@@ -41,6 +43,18 @@ class InventoryEntry(BaseModel):
class InventoryQuotaSaleTransaction(BaseModel):
rancher = models.ForeignKey(
Rancher,
on_delete=models.CASCADE,
related_name='transactions',
null=True
)
pos_device = models.ForeignKey(
Device,
on_delete=models.CASCADE,
related_name='transactions',
null=True
)
transaction_id = models.CharField(max_length=50, null=True)
seller_organization = models.ForeignKey(
product_models.Organization,