Browse Source

CLDC-4175: export updates

pull/3200/head
Nat Dean-Lewis 4 weeks ago
parent
commit
3a13b29274
  1. 2
      app/services/exports/sales_log_export_constants.rb
  2. 3
      app/services/exports/sales_log_export_service.rb

2
app/services/exports/sales_log_export_constants.rb

@ -134,6 +134,8 @@ module Exports::SalesLogExportConstants
"STAIRINITIALDAY", "STAIRINITIALDAY",
"HASSERVICECHARGES", "HASSERVICECHARGES",
"SERVICECHARGES", "SERVICECHARGES",
"HASSERVICECHARGESCHANGED",
"NEWSERVICECHARGES",
] ]
(1..6).each do |index| (1..6).each do |index|

3
app/services/exports/sales_log_export_service.rb

@ -135,6 +135,9 @@ module Exports
attribute_hash["hasestatefee"] = sales_log.has_management_fee attribute_hash["hasestatefee"] = sales_log.has_management_fee
attribute_hash["estatefee"] = sales_log.management_fee attribute_hash["estatefee"] = sales_log.management_fee
attribute_hash["hasservicechargeschanged"] = sales_log.hasservicechargeschanged
attribute_hash["newservicecharges"] = sales_log.newservicecharges
attribute_hash["stairlastday"] = sales_log.lasttransaction&.day attribute_hash["stairlastday"] = sales_log.lasttransaction&.day
attribute_hash["stairlastmonth"] = sales_log.lasttransaction&.month attribute_hash["stairlastmonth"] = sales_log.lasttransaction&.month
attribute_hash["stairlastyear"] = sales_log.lasttransaction&.year attribute_hash["stairlastyear"] = sales_log.lasttransaction&.year

Loading…
Cancel
Save