chore: remove 'debug' param and linter fix
This commit is contained in:
@@ -2991,7 +2991,7 @@ def get_advance_payment_entries(
|
|||||||
q = q.select((payment_entry.unallocated_amount).as_("amount"))
|
q = q.select((payment_entry.unallocated_amount).as_("amount"))
|
||||||
q = q.where(payment_entry.unallocated_amount > 0)
|
q = q.where(payment_entry.unallocated_amount > 0)
|
||||||
|
|
||||||
unallocated = list(q.run(as_dict=True, debug=True))
|
unallocated = list(q.run(as_dict=True))
|
||||||
payment_entries += unallocated
|
payment_entries += unallocated
|
||||||
return payment_entries
|
return payment_entries
|
||||||
|
|
||||||
@@ -3029,14 +3029,12 @@ def get_common_query(
|
|||||||
account_condition = payment_entry[field].isin(party_account)
|
account_condition = payment_entry[field].isin(party_account)
|
||||||
if default_advance_account:
|
if default_advance_account:
|
||||||
q = q.where(
|
q = q.where(
|
||||||
(
|
|
||||||
account_condition
|
account_condition
|
||||||
| (
|
| (
|
||||||
(payment_entry[field] == default_advance_account)
|
(payment_entry[field] == default_advance_account)
|
||||||
& (payment_entry.book_advance_payments_in_separate_party_account == 1)
|
& (payment_entry.book_advance_payments_in_separate_party_account == 1)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
q = q.where(account_condition)
|
q = q.where(account_condition)
|
||||||
|
|||||||
Reference in New Issue
Block a user