created simplified mining tax invoice
This commit is contained in:
@@ -151,6 +151,7 @@ class TestController extends Controller
|
|||||||
|
|
||||||
if($ledgers->count() > 0) {
|
if($ledgers->count() > 0) {
|
||||||
var_dump($ledgers);
|
var_dump($ledgers);
|
||||||
|
var_dump($invoiceAmount = round(((float)$ledgers->sum('amount') * (float)$config['mining_tax']), 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class SendMiningTaxesInvoicesOld implements ShouldQueue
|
|||||||
'type_id' => $row->type_id,
|
'type_id' => $row->type_id,
|
||||||
'ore_name' => $row->ore_name,
|
'ore_name' => $row->ore_name,
|
||||||
'quantity' => $row->quantity,
|
'quantity' => $row->quantity,
|
||||||
'amount' => $row->amount,
|
'amount' => (float)$row->amount,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -128,7 +128,7 @@ class SendMiningTaxesInvoicesOld implements ShouldQueue
|
|||||||
'type_id' => $row->type_id,
|
'type_id' => $row->type_id,
|
||||||
'ore_name' => $row->ore_name,
|
'ore_name' => $row->ore_name,
|
||||||
'quantity' => $row->quantity,
|
'quantity' => $row->quantity,
|
||||||
'amount' => $row->amount,
|
'amount' => (float)$row->amount,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user