Class: C2eCore::Drops::FinancialReportVatDrop
- Includes:
- Helpers::FinancialReportConversions
- Defined in:
- /build/app/mailers/c2e_core/drops/financial_report_vat_drop.rb
Instance Method Summary collapse
-
#formatted_value ⇒ String
-
Total amount for this VAT record converted to financial report’s currency and formatted.
-
-
#initialize(financial_report, vat, value) ⇒ FinancialReportVatDrop
constructor
A new instance of FinancialReportVatDrop.
-
#percentage ⇒ Decimal
-
Percentage of current VAT record.
-
-
#value ⇒ Float
-
Total amount for this VAT record converted to financial report’s currency.
-
Constructor Details
#initialize(financial_report, vat, value) ⇒ FinancialReportVatDrop
Returns a new instance of FinancialReportVatDrop.
Instance Method Details
#formatted_value ⇒ String
Returns - Total amount for this VAT record converted to financial report’s currency and formatted. E.g.: "123,45 Kč".
#percentage ⇒ Decimal
Returns - Percentage of current VAT record. E.g.: 12.0.
#value ⇒ Float
Returns - Total amount for this VAT record converted to financial report’s currency. E.g.: 78.