feat(view): set price based on product select on first line from purchase.

This commit is contained in:
2024-08-31 12:04:01 -05:00
parent f1d96467d6
commit 1b1a504bf5
3 changed files with 27 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ class Product(models.Model):
all_products = cls.objects.all()
for product in all_products:
rproduct = {
"id": product.id,
"name": product.name,
"price_list": product.price,
"uom": product.measuring_unit,