Fixed an issue with voucher numbering

Fixed an issue with inventory voucher numbering. Only the accounts where numbering was set as 'manual' were affected.