Force completion confirmation resend email
This commit is contained in:
@@ -411,7 +411,7 @@ class orderBookingRoute
|
||||
$response->error('Order booking completion confirmation is not available yet.', 409);
|
||||
}
|
||||
|
||||
$object->sendWashCertificateToCustomer();
|
||||
(new email())->sendWashCertificateEmailToCustomer($object);
|
||||
|
||||
$response->success([
|
||||
'message' => 'Completion confirmation resent successfully.',
|
||||
|
||||
+1
-1
@@ -11,6 +11,6 @@ it('wires the order booking completion confirmation resend endpoint', function (
|
||||
->toContain("$" . "this->post('/order-bookings/completion-confirmation/resend', function () {")
|
||||
->toContain("self::requirePermission('complete_bookings');")
|
||||
->toContain('self::requireDepartmentAccess((int)$object->department->value());')
|
||||
->toContain('$object->sendWashCertificateToCustomer();')
|
||||
->toContain('(new email())->sendWashCertificateEmailToCustomer($object);')
|
||||
->toContain("'Completion confirmation resent successfully.'");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user