fix function
This commit is contained in:
@@ -6,10 +6,11 @@ def update_counterparty_balance(counterparty):
|
||||
if not counterparty:
|
||||
return
|
||||
|
||||
# EXPENCE -> DEBIT
|
||||
# EXPENCE -> DEBIT (faqat CONFIRMED status)
|
||||
expences = Expence.objects.filter(
|
||||
counterparty=counterparty,
|
||||
is_deleted=False,
|
||||
status='CONFIRMED' # ✅ Status filteri qo'shildi
|
||||
)
|
||||
|
||||
# Valutasi bo'yicha qo'shish
|
||||
|
||||
Reference in New Issue
Block a user