Browse Source

[FIX][pos_trade_receivable_autoreconcile] Only reconcile Trade receivable when it's valid

pull/27/head
Andrius Preimantas 10 years ago
parent
commit
44f0b0d97c
  1. 2
      pos_trade_receivable_autoreconcile/model/point_of_sale.py

2
pos_trade_receivable_autoreconcile/model/point_of_sale.py

@ -35,7 +35,7 @@ class POSOrder(models.Model):
continue
for line in each.journal_entry_id.line_id:
if line.account_id.id == order_account:
if line.account_id.id == order_account and line.state == 'valid':
grouped_data[key].append(line.id)
for key, value in grouped_data.iteritems():
for line in order.account_move.line_id:

Loading…
Cancel
Save