Use Estonian reference number format instead of ISO 11649

This commit is contained in:
Artur Beljajev 2018-10-01 13:43:50 +03:00
parent aa6e8f8a93
commit 5738c17731
25 changed files with 244 additions and 47 deletions

View file

@ -35,7 +35,7 @@ describe BankTransaction do
end
it 'should not bind transaction with mismatching sums' do
r = create(:registrar, reference_no: 'RF7086666663')
r = create(:registrar)
invoice = r.issue_prepayment_invoice(200, 'add some money')
bt = create(:bank_transaction, { sum: 10 })
@ -45,7 +45,7 @@ describe BankTransaction do
end
it 'should not bind transaction with cancelled invoice' do
r = create(:registrar, reference_no: 'RF7086666663')
r = create(:registrar)
invoice = r.issue_prepayment_invoice(200, 'add some money')
invoice.cancel