orders: add new fields to order model
This commit is contained in:
@@ -5,7 +5,9 @@ from core.apps.wherehouse.models.inventory import Inventory
|
||||
|
||||
|
||||
@shared_task
|
||||
def create_inventory(wherehouse, quantity, product, unity, price, project_folder, project, unity_price):
|
||||
def create_inventory(
|
||||
wherehouse, quantity, product, unity, price, project_folder, project, unity_price
|
||||
):
|
||||
inventory, created = Inventory.objects.get_or_create(
|
||||
product_id=product,
|
||||
wherehouse_id=wherehouse,
|
||||
@@ -15,7 +17,7 @@ def create_inventory(wherehouse, quantity, product, unity, price, project_folder
|
||||
price=price,
|
||||
project_folder_id=project_folder,
|
||||
project_id=project,
|
||||
unit_price=unity_price
|
||||
unit_price=unity_price,
|
||||
)
|
||||
)
|
||||
if not created:
|
||||
|
||||
Reference in New Issue
Block a user