コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6831 ビュー

I'm trying to find all paid customer invoices that were paid after the due date.

Is there a way to create a filter to find these invoices?

アバター
破棄
最善の回答

Not a direct solution, and maybe not the best approach, but here's an idea to achieve similar result (I once had similar requirement).

Create a field of function type (fields.function) which check several values in the account.invoice object (and another related objects such as payment -> account.move.line) and compare these values:

  • state
  • date_due
  • account_move_line.date (many2many)

Beware that this would probably slows down tree view a bit.

Another idea and probably a better approach is to write the paid_date to account.invoice when the state changes from 'open' to 'paid'. I don't know but it may also be possible to check the wkf_item object checking it's workflow transformation date, could someone confirm this?

アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 17
14261
2
12月 23
23399
2
1月 24
14289
1
3月 15
4730
0
3月 15
4378