fix base prices in rancher distribution - product.services
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
import typing
|
||||
from collections import defaultdict
|
||||
|
||||
from apps.herd.models import Rancher
|
||||
from apps.product.models import (
|
||||
Quota,
|
||||
QuotaLivestockAllocation,
|
||||
QuotaPriceCalculationItems,
|
||||
QuotaFinalPriceTypes
|
||||
QuotaPriceCalculationItems
|
||||
)
|
||||
from apps.warehouse.models import InventoryEntry
|
||||
from apps.herd.models import Rancher
|
||||
from django.db.models import Sum
|
||||
import typing
|
||||
|
||||
|
||||
def get_products_in_warehouse(organization_id):
|
||||
@@ -139,8 +136,8 @@ def quota_pricing_items_by_type(quota: Quota, sharing: list) -> typing.Any:
|
||||
'id': en_name,
|
||||
'items': group_items,
|
||||
"name": fa_name,
|
||||
"price": total_price,
|
||||
"total_price": total_price + calculate_sharing_total_price
|
||||
"price": total_price - calculate_sharing_total_price,
|
||||
"total_price": total_price
|
||||
})
|
||||
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user