Class: C2eCore::Drops::OrderVatDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(vat_hash, order) ⇒ OrderVatDrop

Returns a new instance of OrderVatDrop.

Instance Method Details

#baseDecimal

Returns - Base of current VAT record. E.g.: 100.0.

Returns:

  • (Decimal)
    • Base of current VAT record. E.g.: 100.0

#percentageDecimal

Returns - Percentage of current VAT record. E.g.: 15.0.

Returns:

  • (Decimal)
    • Percentage of current VAT record. E.g.: 15.0

#totalDecimal

Returns - Total value of current VAT record. E.g.: 115.0.

Returns:

  • (Decimal)
    • Total value of current VAT record. E.g.: 115.0

#vatDecimal

Returns - Vat of current VAT record. E.g.: 15.0.

Returns:

  • (Decimal)
    • Vat of current VAT record. E.g.: 15.0