mining invoices

This commit is contained in:
2021-06-07 19:09:10 +09:00
parent 2fbf72df61
commit c17af03ef3
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ namespace App\Console\Commands\MiningTaxes;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use App\Jobs\Commands\MiningTaxes\Invoices\SendMiningTaxesInvoices as SendInvoice; use App\Jobs\Commands\MiningTaxes\MiningTaxesWeeklyInvoicing as SendInvoice;
class ExecuteSendMiningTaxesInvoiceCommand extends Command class ExecuteSendMiningTaxesInvoiceCommand extends Command
{ {

View File

@@ -56,7 +56,7 @@ class ProcessAllianceMiningOperations implements ShouldQueue
$count = MiningOperation::where([ $count = MiningOperation::where([
'processed' => 'No', 'processed' => 'No',
])->where('operation_date', '<=', Carbon::now()) ])->where('operation_date', '<=', Carbon::now())
->count() ->count();
if($count > 0) { if($count > 0) {
$operations = MiningOperation::where([ $operations = MiningOperation::where([
@@ -76,7 +76,7 @@ class ProcessAllianceMiningOperations implements ShouldQueue
'invoiced' => 'No', 'invoiced' => 'No',
])->update([ ])->update([
'invoiced' => 'Yes', 'invoiced' => 'Yes',
'invoice_id' => 'Mining Op ', 'invoice_id' => 'MiningOp ' . $operation->id,
]); ]);
} }