revert development transactions dashboard commit

This commit is contained in:
2026-02-02 10:31:33 +03:30
parent 0b08107c14
commit 93180edc0b

View File

@@ -280,18 +280,18 @@ class InventoryQuotaSaleTransactionViewSet(
transaction_status = query_param.get('status') if 'status' in query_param.keys() else None
org = get_organization_by_user(request.user)
if org.free_visibility_by_scope:
tr_objects = self.get_queryset(visibility_by_org_scope=True)
tr_item_objects = InventoryQuotaSaleItemViewSet().get_queryset(visibility_by_org_scope=True)
transaction_dashboard_data = self.get_dashboard(
org,
free_visibility_tr_objects=tr_objects,
free_visibility_tr_item_objects=tr_item_objects,
start_date=start_date,
end_date=end_date,
status=transaction_status,
)
else:
# if org.free_visibility_by_scope:
# tr_objects = self.get_queryset(visibility_by_org_scope=True)
# tr_item_objects = InventoryQuotaSaleItemViewSet().get_queryset(visibility_by_org_scope=True)
# transaction_dashboard_data = self.get_dashboard(
# org,
# free_visibility_tr_objects=tr_objects,
# free_visibility_tr_item_objects=tr_item_objects,
# start_date=start_date,
# end_date=end_date,
# status=transaction_status,
# )
# else:
# filer by date & transaction status
transaction_dashboard_data = self.get_dashboard(
org,