mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Merge pull request #64 from mdietrichc2c/correct-writeoff-auto-reconcile
Use the correct accounts for write-off
This commit is contained in:
@@ -183,7 +183,7 @@ class EasyReconcileBase(orm.AbstractModel):
|
||||
cr, uid, rec, lines, rec.date_base_on, context=context)
|
||||
rec_ctx = dict(context, date_p=date)
|
||||
if below_writeoff:
|
||||
if sum_credit < sum_debit:
|
||||
if sum_credit > sum_debit:
|
||||
writeoff_account_id = rec.account_profit_id.id
|
||||
else:
|
||||
writeoff_account_id = rec.account_lost_id.id
|
||||
|
||||
Reference in New Issue
Block a user