fixed tax
This commit is contained in:
parent
aecc9a547a
commit
5f9fae29b4
|
|
@ -17,8 +17,13 @@ use Beike\Shop\Services\TotalService;
|
|||
|
||||
class TaxService
|
||||
{
|
||||
public static function getTotal(TotalService $totalService)
|
||||
public static function getTotal(TotalService $totalService): ?array
|
||||
{
|
||||
$taxEnabled = system_setting('base.tax', false);
|
||||
if (!$taxEnabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
$taxes = $totalService->taxes;
|
||||
|
||||
$totalItems = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue