What is the purpose of the type field on account.voucher object.
I use 2 types of invoice. Payment for Sale and refund of Sale.
invoice payment type on account.invoice = 'out_invoice' account.voucher type = 'receipt'
invoice refund type on account.invoice = 'out_refund' but account.voucher type still = 'receipt'
Could someone explain? I would expect the value of type on a refund to be maybe payment?