created simplified mining tax invoice

This commit is contained in:
2021-05-25 00:54:36 +09:00
parent 678f066a97
commit 6ea56238a8
2 changed files with 3 additions and 2 deletions

View File

@@ -151,6 +151,7 @@ class TestController extends Controller
if($ledgers->count() > 0) {
var_dump($ledgers);
var_dump($invoiceAmount = round(((float)$ledgers->sum('amount') * (float)$config['mining_tax']), 2));
}
}
}

View File

@@ -95,7 +95,7 @@ class SendMiningTaxesInvoicesOld implements ShouldQueue
'type_id' => $row->type_id,
'ore_name' => $row->ore_name,
'quantity' => $row->quantity,
'amount' => $row->amount,
'amount' => (float)$row->amount,
]);
}
}
@@ -128,7 +128,7 @@ class SendMiningTaxesInvoicesOld implements ShouldQueue
'type_id' => $row->type_id,
'ore_name' => $row->ore_name,
'quantity' => $row->quantity,
'amount' => $row->amount,
'amount' => (float)$row->amount,
]);
}
}