|
|
|
@@ -5,6 +5,7 @@ namespace App\Http\Controllers\Web\Email; |
|
|
|
use App\Codes\Email; |
|
|
|
use App\Email\BaseEmailer; |
|
|
|
use App\Email\Members\ChangePlanOrderApprove; |
|
|
|
use App\Email\Members\CouldNotPayNotice; |
|
|
|
use App\Email\Members\EntryApprove; |
|
|
|
use App\Email\Members\EntryPaymentComplete; |
|
|
|
use App\Email\Members\TerminateOrderApprove; |
|
|
|
@@ -12,6 +13,7 @@ use App\Email\Members\UserInfoUpdateOrderApprove; |
|
|
|
use App\Email\Members\VehicleInfoUpdateOrderApprove; |
|
|
|
use App\Http\Controllers\Web\FromKintoneController; |
|
|
|
use App\Kintone\Models\ChangePlanApplication; |
|
|
|
use App\Kintone\Models\PaymentPlan; |
|
|
|
use App\Kintone\Models\SeasonTicketContract; |
|
|
|
use App\Kintone\Models\SeasonTicketContractEntry; |
|
|
|
use App\Kintone\Models\TerminateApplication; |
|
|
|
@@ -112,6 +114,12 @@ class EmailSendController extends FromKintoneController |
|
|
|
$this->setEmail(new ChangePlanOrderApprove($seasonTicketContract, $application)); |
|
|
|
return; |
|
|
|
} |
|
|
|
if ($emailId === Email::COULD_NOT_PEY_NOTICE) { |
|
|
|
$seasonTicketContract = SeasonTicketContract::find($this->param->seasonTicketContractRecordNo); |
|
|
|
$paymentPlan = PaymentPlan::find($this->param->paymentPlanRecordNo); |
|
|
|
$this->setEmail(new CouldNotPayNotice($seasonTicketContract, $paymentPlan)); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($this->email === null || $this->emailManager === null) { |
|
|
|
|