Merge branch '731-message-changes-for-warranty-expiration' into 'master'

Resolve "Message changes for warranty expiration"

Closes #731

See merge request jankstudio/resq!845
This commit is contained in:
Korina Cordero 2024-07-23 02:30:22 +00:00
commit 6f1f2e9818
2 changed files with 4 additions and 1 deletions

View file

@ -101,7 +101,9 @@ class WarrantySMSCommand extends Command
error_log(print_r($valid_numbers, true));
foreach ($valid_numbers as $wdata)
{
$msg = 'Hi ' . $wdata['name'] . ', the warranty for the ' . $wdata['batt'] . ' installed in your car(' . $wdata['plate'] . $this->translator->trans('message.partial_warrantysms');
$msg = $this->translator->trans('message.warrantysms');
// $msg = 'Hi ' . $wdata['name'] . ', the warranty for the ' . $wdata['batt'] . ' installed in your car(' . $wdata['plate'] . $this->translator->trans('message.partial_warrantysms');
error_log($wdata['number'] . ' - sending ' . $msg);
$this->gateway->sendSMS($wdata['number'], $this->translator->trans('message.battery_brand_allcaps'), $msg);

View file

@ -75,6 +75,7 @@ label.pdf.final_amount: 'FINAL AMOUNT:'
label.jo.vehicle_battery: 'This vehicle is using a Motolite battery'
# messages
message.warrantysms: "Dear Motolite Customer, your battery's warranty has lapsed. If you'd like to check on your battery's health, please call official Motolite Express Hatid hotlines.\n\nShould you need to replace your battery, through our participating outlets or Motolite Express Hatid, and get a chance to win in Motolite's E-Warranty Raffle prizes, including our Grand Prize: a 2023 Toyota Fortuner.\n\nSee https://www.motolite.com/pages/raffle for details."
message.partial_warrantysms: ') has expired already. Please call MOTOLITE EXPRESS HATID at 8370-6686 to have the status of your battery checked to avoid any inconvenience. Thank you for choosing Motolite.'
message.battery_brand_allcaps: 'MOTOLITE'
message.confirmation_code: 'Your Resq confirmation code is'