mining invoices
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user