Resolve "Add checkbox in JO form if customer has mobile app" #1626

Open
korina.cordero wants to merge 3 commits from 699-add-checkbox-in-jo-form-if-customer-has-mobile-app into master
Showing only changes of commit 191c2191d5 - Show all commits

View file

@ -52,12 +52,16 @@ class SetCustomerMobileAppFlagCommand extends Command
// need to get the customer object itself // need to get the customer object itself
$customer = $this->em->getRepository(Customer::class)->find($cust_id); $customer = $this->em->getRepository(Customer::class)->find($cust_id);
if ($customer != null) if ($customer != null)
{
// check if customer mobile app flag is already set to true
if ($customer->hasMobileApp() == false)
{ {
error_log('Setting customer mobile app flag to true for ' . $cust_id); error_log('Setting customer mobile app flag to true for ' . $cust_id);
// set mobile app flag // set mobile app flag
$customer->setHasMobileApp(); $customer->setHasMobileApp();
} }
} }
}
$this->em->flush(); $this->em->flush();