Class: C2eCore::Drops::FinancialReportWareCategoryDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(recipes_data, ware_category, financial_report) ⇒ FinancialReportWareCategoryDrop

Returns a new instance of FinancialReportWareCategoryDrop.

Instance Method Details

#formated_total_priceObject

Returns Float - formated sum of the price of all products in the ware category.

Returns:

  • Float - formated sum of the price of all products in the ware category

#nameObject

Returns String - name of the ware category.

Returns:

  • String - name of the ware category

#total_numberObject

Returns Integer - sum of all products in the ware category.

Returns:

  • Integer - sum of all products in the ware category

#total_priceObject

Returns Float - sum of the price of all products in the ware category.

Returns:

  • Float - sum of the price of all products in the ware category