From 1fd4a0bfc46bda5f8fc85b25718ea22a70d94d84 Mon Sep 17 00:00:00 2001 From: Kat Date: Thu, 2 Mar 2023 15:46:40 +0000 Subject: [PATCH] Fix household members --- app/services/imports/sales_logs_import_service.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/services/imports/sales_logs_import_service.rb b/app/services/imports/sales_logs_import_service.rb index fd749f89d..402f25a91 100644 --- a/app/services/imports/sales_logs_import_service.rb +++ b/app/services/imports/sales_logs_import_service.rb @@ -432,9 +432,11 @@ module Imports end def household_members(_xml_doc, attributes) - return attributes["hholdcount"] + 2 if attributes["jointpur"] == 1 - - attributes["hholdcount"] + 1 if attributes["jointpur"] == 2 + if attributes["jointpur"] == 2 + attributes["hholdcount"] + 1 + else + attributes["hholdcount"] + 2 + end end def set_default_values(attributes)