Class: C2eCore::Drops::FinancialReportVatDrop

Inherits:
BaseDrop
  • Object
show all
Includes:
Helpers::FinancialReportConversions
Defined in:
/build/app/mailers/c2e_core/drops/financial_report_vat_drop.rb

Instance Method Summary collapse

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č".

Returns:

  • (String) —
    • 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.

Returns:

  • (Decimal) —
    • 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.

Returns:

  • (Float) —
    • Total amount for this VAT record converted to financial report's currency. E.g.: 78