fix function
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user