diff --git a/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php b/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php index 3fae69b5..cd5983c7 100644 --- a/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php +++ b/resources/views/banking/marketing_alibaba_bills/partials/embedded-table.blade.php @@ -32,6 +32,9 @@ $options = $options ?? ['shops' => [], 'product_types' => []]; $shops = is_array($options['shops'] ?? null) ? $options['shops'] : []; $productTypes = is_array($options['product_types'] ?? null) ? $options['product_types'] : []; + $incomeWan = ((float) ($summary['income_total'] ?? 0)) / 10000; + $expenseWan = ((float) ($summary['expense_total'] ?? 0)) / 10000; + $netWan = ((float) ($summary['net'] ?? 0)) / 10000; @endphp
@@ -43,9 +46,9 @@
@foreach ([ - ['label' => '入账合计(元)', 'value' => (float) ($summary['income_total'] ?? 0), 'class' => 'alibaba-bill-income', 'prefix' => '+ '], - ['label' => '出帐合计(元)', 'value' => (float) ($summary['expense_total'] ?? 0), 'class' => 'alibaba-bill-expense', 'prefix' => '- '], - ['label' => '净额(入账 - 出帐,元)', 'value' => (float) ($summary['net'] ?? 0), 'class' => ((float) ($summary['net'] ?? 0) >= 0 ? 'text-gray-900' : 'alibaba-bill-expense'), 'prefix' => ((float) ($summary['net'] ?? 0) >= 0 ? '+ ' : '')], + ['label' => '入账合计(万元)', 'value' => $incomeWan, 'class' => 'alibaba-bill-income', 'prefix' => '+ '], + ['label' => '出帐合计(万元)', 'value' => $expenseWan, 'class' => 'alibaba-bill-expense', 'prefix' => '- '], + ['label' => '净额(入账 - 出帐,万元)', 'value' => $netWan, 'class' => ($netWan >= 0 ? 'text-gray-900' : 'alibaba-bill-expense'), 'prefix' => ($netWan >= 0 ? '+ ' : '')], ['label' => '流水笔数', 'value' => (int) ($summary['count'] ?? 0), 'class' => 'text-gray-900', 'prefix' => ''], ] as $metric)