fix function

This commit is contained in:
behruz-dev
2025-11-03 13:49:19 +05:00
parent 85853c2e7d
commit c8f88a0b2d

View File

@@ -6,10 +6,11 @@ def update_counterparty_balance(counterparty):
if not counterparty: if not counterparty:
return return
# EXPENCE -> DEBIT # EXPENCE -> DEBIT (faqat CONFIRMED status)
expences = Expence.objects.filter( expences = Expence.objects.filter(
counterparty=counterparty, counterparty=counterparty,
is_deleted=False, is_deleted=False,
status='CONFIRMED' # ✅ Status filteri qo'shildi
) )
# Valutasi bo'yicha qo'shish # Valutasi bo'yicha qo'shish