feat(platform-orders): 退款总额统计(详情页+导出)
This commit is contained in:
@@ -74,6 +74,13 @@ class AdminPlatformOrderRefundReceiptTest extends TestCase
|
||||
|
||||
$this->assertSame('partially_refunded', $order->payment_status);
|
||||
$this->assertNotNull($order->refunded_at);
|
||||
|
||||
// 确保退款轨迹可用于对账统计
|
||||
$totalRefunded = 0.0;
|
||||
foreach ($refunds as $r) {
|
||||
$totalRefunded += (float) (data_get($r, 'amount') ?? 0);
|
||||
}
|
||||
$this->assertSame(10.0, $totalRefunded);
|
||||
}
|
||||
|
||||
public function test_platform_admin_can_add_refund_receipt_and_mark_fully_refunded_when_total_refund_reaches_paid_amount(): void
|
||||
|
||||
Reference in New Issue
Block a user