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

@ -36,7 +36,7 @@ describe BankStatement do
end
it 'should not bind transactions with invalid match data' do
r = create(:registrar, reference_no: 'RF7086666663')
r = create(:registrar, reference_no: '1234')
create(:account, registrar: r, account_type: 'cash', balance: 0)
@ -50,7 +50,7 @@ describe BankStatement do
}),
create(:bank_transaction, {
sum: 240.0,
reference_no: 'RF7086666663',
reference_no: '1234',
description: 'Invoice no. 4948934'
})
])

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