Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- current_price = prod['price']
- tng_provider = Provider.objects.filter(code='TG').first()
- current_pricing = Pricing.objects.filter(price_from__lt=current_price, price_to__gt=current_price, provider=tng_provider)
- print(current_pricing)
- current_coef = current_pricing['coef']
- product.price_mrc = current_price * current_coef
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement