mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-25 15:34:09 +00:00
test auto generate invoice function
This commit is contained in:
@@ -43,10 +43,11 @@ class AutoGenerateInvoice extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->info(Carbon::now() . ' : Auto generate invoice cron started.');
|
||||
$packingLists = (App()->make(ListsPackingLists::class))->execute(['does_not_have_transaction_type' => 1, 'type' => 2]);
|
||||
|
||||
if (count($packingLists)) {
|
||||
$this->info(Carbon::now() . ' : Auto generate invoice cron starrted.');
|
||||
// $this->info(Carbon::now() . ' : Auto generate invoice cron started.');
|
||||
$start = new Carbon();
|
||||
|
||||
foreach ($packingLists as $packingList) {
|
||||
|
||||
@@ -44,7 +44,7 @@ class Kernel extends ConsoleKernel
|
||||
->appendOutputTo (storage_path().'/logs/departure_email.log');
|
||||
|
||||
$schedule->command('invoice:generate')
|
||||
->hourly()
|
||||
->everyTenMinutes()
|
||||
->withoutOverlapping()
|
||||
->appendOutputTo (storage_path().'/logs/auto_generate_invoice.log');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user