Tryton - Issues



Author semarie
Recipients pokoli
Date 2019-01-17.09:43:15
- when the Invoice is reconcilied, Reconciliation will call Invoice.process() method [1]
- the Invoice.process method only care about Invoice in 'posted' or 'paid' state [2]

so I see two possibilities:
- in, calling Invoice.paid() if the invoice is already reconcilied (what Invoice.process do - but we can't just process() directly as it might call post() and entering in end-loop).
- in Invoice.process(), dealing with 'validated' state too, and automatically change the state to 'paid' if the invoice is reconcilied (or ignore it as now).

The first possibility seems more simple to implement. For the second, I am unsure if we can call Invoice.paid() on 'validated' invoice (if the state will effectively do 'validated'->'posted'->'paid' automatically or not)

Date User Action Args
2019-01-17 09:43:15semariesetmessageid: <>
2019-01-17 09:43:15semariesetrecipients: + pokoli
2019-01-17 09:43:15semarielinkissue7999 messages
2019-01-17 09:43:15semariecreate

Showing 10 items. Show all history (warning: this could be VERY long)