Master account sequence management pvy

```
sequence = journal.sequence_id.id
if invoice and invoice.type in ['out_refund', 'in_refund'] and journal.refund_sequence:
    sequence = journal.refund_sequence_id.id
```