Module: ORIS
- Defined in:
- lib/oris.rb,
lib/oris/version.rb,
lib/oris/operation.rb
Defined Under Namespace
Classes: Operation
Constant Summary collapse
- FULL_PRICE =
Full price for operation type.
0
- VAT_PRICE =
VAT part of the price. Basically, ‘price*0.18`.
1
- EXCLUDE_VAT_PRICE =
Part of the price without VAT. Basically, ‘price - price*0.18`.
2
- VAT_LEDGER_CODE_IN =
Ledger code for VAT transaction (in-mode).
'3340'
- VAT_LEDGER_CODE_OUT =
Ledger code for VAT transaction (out-mode).
'3330'
- VERSION =
"0.1.1"
Class Method Summary collapse
-
.oris_acc_code(text) ⇒ Object
Format accounting code, according to ORIS conventions.
Class Method Details
.oris_acc_code(text) ⇒ Object
Format accounting code, according to ORIS conventions.
28 29 30 31 32 33 34 35 |
# File 'lib/oris.rb', line 28 def self.oris_acc_code(text) if text stripped = text.scan(/\d+/).join if (stripped.size > 4) [ stripped[0], stripped[1], stripped[2..3], stripped[4..-1] ].join(' ') end end end |