orders: add order type

This commit is contained in:
behruz-dev
2025-10-31 16:15:36 +05:00
parent 01fac3110e
commit 5c845917df
6 changed files with 504 additions and 3415 deletions

View File

@@ -52,7 +52,8 @@ class Command(BaseCommand):
quantity=item['quantity'],
currency=item['currency']['symbol'].lower(),
created_at=created_at,
date=delivery_date
date=delivery_date,
type='order'
)
# break

View File

@@ -99,6 +99,7 @@ class Command(BaseCommand):
project_folder=project_folder,
wherehouse=wherehouse,
counterparty=counterparty,
type='party',
)
total_price += i["total_amount"]
paid_amount += i["paid_amount"]