Add customer source when a new customer registers via mobile app. #548

This commit is contained in:
Korina Cordero 2021-04-05 08:19:14 +00:00
parent 20dd3f51df
commit 7dd080b02e

View file

@ -28,6 +28,7 @@ use App\Ramcar\TradeInType;
use App\Ramcar\JOEventType;
use App\Ramcar\AdvanceOrderSlot;
use App\Ramcar\AutoAssignStatus;
use App\Ramcar\CustomerSource;
use App\Service\InvoiceGeneratorInterface;
use App\Service\RisingTideGateway;
@ -413,6 +414,10 @@ class APIController extends Controller implements LoggedController
if ($cust == null)
{
$cust = new Customer();
// set customer source
$cust->setCreateSource(CustomerSource::MOBILE);
$em->persist($cust);
$this->session->setCustomer($cust);