Browse Source

Add service charge fields to sales log CSV service

pull/3021/head
Manny Dinssa 1 month ago
parent
commit
6fffaee254
  1. 10
      app/services/csv/sales_log_csv_service.rb

10
app/services/csv/sales_log_csv_service.rb

@ -92,6 +92,14 @@ module Csv
labels: %i[initialpurchase year],
codes: %i[initialpurchase year],
},
hasservicecharges: {
labels: %i[has_mscharge], # returns as the number not label
codes: %i[has_mscharge],
},
servicecharges: {
labels: %i[mscharge],
codes: %i[mscharge],
}
}.freeze
PERSON_DETAILS = {}.tap { |hash|
@ -221,7 +229,7 @@ module Csv
"updated_by_id" => %w[updated_by updated_by_id],
"bulk_upload_id" => %w[bulk_upload_id collection_start_year],
"prevten" => %w[hhtype prevten],
"mrent" => %w[mrent has_management_fee management_fee],
"mrent" => %w[mrent hasservicecharges servicecharges has_management_fee management_fee],
"lasttransaction" => %w[stairlastday stairlastmonth stairlastyear],
"initialpurchase" => %w[stairinitialday stairinitialmonth stairinitialyear],
"mrentprestaircasing" => %w[mrentprestaircasing grant discount extrabor has_mscharge mscharge mscharge_value_check],

Loading…
Cancel
Save