flag "Pay Schedule valid" of invoice customer is not update in some case, make invoice not list in search when payment

Description

when a invoice in state
+ complete
+ flag "Pay Schedule valid" = true
+ "Payment Schedule" have non record
it's can't search to payment

have some way to make this state

way 1:
1. copy invoice from other invoice have "Pay Schedule valid" = true
input more info and complete it.

way 2:
1. make new invoice.
2. complete it.
3. make some "Payment Schedule" record and run validate.
=> "Pay Schedule valid" = true
4. delete one "Payment Schedule" record
=> remain "Pay Schedule valid" = true
other "Payment Schedule" is remain validate

solution:
+ reset "Pay Schedule valid" = true when copy
+ when delete "Payment Schedule" record, rerun validate process

Environment

None

Assignee

Hiep Lq

Reporter

Hiep Lq

Labels

Tested By

None

Components

Affects versions

Priority

Critical
Configure