mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
Fix a unsucccessful group payment reported by Eileen
This commit is contained in:
@@ -22,9 +22,9 @@ class OneTimeFixWalletGroupTransactionV2CommandJob implements ShouldQueue
|
||||
|
||||
public function handle()
|
||||
{
|
||||
Log::info(Carbon::now() . ': Start job - This is a one time fix of a double charge problem of a group payment through wallet.');
|
||||
Log::info(Carbon::now() . ': Start job - This is a one time fix of unsuccessful group payment through wallet.');
|
||||
$start = new Carbon();
|
||||
$invoice_ids = [29223, 29200]; //29223, 29200
|
||||
$invoice_ids = [30760, 30642, 30641, 30640, 30637, 30635, 30545, 30543]; //30760, 30642, 30641, 30640, 30637, 30635, 30545, 30543
|
||||
$invoices = Transaction::whereIn('id', $invoice_ids)->get();
|
||||
|
||||
foreach ($invoices as $invoice) {
|
||||
@@ -38,12 +38,12 @@ class OneTimeFixWalletGroupTransactionV2CommandJob implements ShouldQueue
|
||||
}
|
||||
}
|
||||
}
|
||||
$group = Group::where('id', 1377)->first();
|
||||
$group = Group::where('id', 1499)->first();
|
||||
$group->status = ApprovalStatus::APPROVED;
|
||||
$group->save();
|
||||
|
||||
$end = new Carbon();
|
||||
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
|
||||
Log::info(Carbon::now() . ': End job - This is a one time fix of a double charge problem of a group payment through wallet. ElapsedTime: ' . $elapsedTime . '.');
|
||||
Log::info(Carbon::now() . ': End job - This is a one time fix of unsuccessful group payment through wallet. ElapsedTime: ' . $elapsedTime . '.');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ class OneTimeFixWalletGroupTransactionV2Command extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'This is a one time fix of a double charge problem of a group payment through wallet.';
|
||||
protected $description = 'This is a one time fix of unsuccessful group payment through wallet.';
|
||||
|
||||
protected $output = null;
|
||||
|
||||
@@ -43,7 +43,7 @@ class OneTimeFixWalletGroupTransactionV2Command extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
return;
|
||||
// return;
|
||||
|
||||
OneTimeFixWalletGroupTransactionV2CommandJob::dispatch();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user