Add customer source when a new customer registers via mobile app. #548
This commit is contained in:
parent
20dd3f51df
commit
7dd080b02e
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ use App\Ramcar\TradeInType;
|
||||||
use App\Ramcar\JOEventType;
|
use App\Ramcar\JOEventType;
|
||||||
use App\Ramcar\AdvanceOrderSlot;
|
use App\Ramcar\AdvanceOrderSlot;
|
||||||
use App\Ramcar\AutoAssignStatus;
|
use App\Ramcar\AutoAssignStatus;
|
||||||
|
use App\Ramcar\CustomerSource;
|
||||||
|
|
||||||
use App\Service\InvoiceGeneratorInterface;
|
use App\Service\InvoiceGeneratorInterface;
|
||||||
use App\Service\RisingTideGateway;
|
use App\Service\RisingTideGateway;
|
||||||
|
|
@ -413,6 +414,10 @@ class APIController extends Controller implements LoggedController
|
||||||
if ($cust == null)
|
if ($cust == null)
|
||||||
{
|
{
|
||||||
$cust = new Customer();
|
$cust = new Customer();
|
||||||
|
|
||||||
|
// set customer source
|
||||||
|
$cust->setCreateSource(CustomerSource::MOBILE);
|
||||||
|
|
||||||
$em->persist($cust);
|
$em->persist($cust);
|
||||||
|
|
||||||
$this->session->setCustomer($cust);
|
$this->session->setCustomer($cust);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue