补充已付无回执摘要卡直达补回执入口
This commit is contained in:
@@ -862,6 +862,12 @@
|
|||||||
<div class="muted muted-xs">已支付且无 payment_summary / payment_receipts,优先进入补回执治理集合</div>
|
<div class="muted muted-xs">已支付且无 payment_summary / payment_receipts,优先进入补回执治理集合</div>
|
||||||
<div class="muted governance-block-footnote" data-role="po-summary-paid-no-receipt-footnote" aria-label="已付无回执摘要优先级说明">收费闭环优先:建议先处理该集合,再推进同步与批量动作。</div>
|
<div class="muted governance-block-footnote" data-role="po-summary-paid-no-receipt-footnote" aria-label="已付无回执摘要优先级说明">收费闭环优先:建议先处理该集合,再推进同步与批量动作。</div>
|
||||||
<div class="muted muted-xs">
|
<div class="muted muted-xs">
|
||||||
|
@include('admin.platform_orders._summary_text_link', [
|
||||||
|
'role' => 'po-summary-link-go-add-payment-receipt',
|
||||||
|
'href' => '#add-payment-receipt',
|
||||||
|
'label' => '去补回执',
|
||||||
|
])
|
||||||
|
<span class="muted">|</span>
|
||||||
@include('admin.platform_orders._summary_text_link', [
|
@include('admin.platform_orders._summary_text_link', [
|
||||||
'role' => 'po-summary-link-view-receipt-orders',
|
'role' => 'po-summary-link-view-receipt-orders',
|
||||||
'href' => $safeFullUrlWithQuery(['receipt_status' => 'has', 'page' => null]),
|
'href' => $safeFullUrlWithQuery(['receipt_status' => 'has', 'page' => null]),
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderReceiptSummaryCardShouldHaveGoAddPaymentReceiptLinkTest extends TestCase
|
||||||
|
{
|
||||||
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
protected function loginAsPlatformAdmin(): void
|
||||||
|
{
|
||||||
|
$this->seed();
|
||||||
|
|
||||||
|
$this->post('/admin/login', [
|
||||||
|
'email' => 'platform.admin@demo.local',
|
||||||
|
'password' => 'Platform@123456',
|
||||||
|
])->assertRedirect('/admin');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_paid_no_receipt_summary_card_should_have_go_add_payment_receipt_link(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin/platform-orders');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
$html = (string) $res->getContent();
|
||||||
|
$this->assertStringContainsString('data-role="po-summary-link-go-add-payment-receipt"', $html);
|
||||||
|
$this->assertStringContainsString('href="#add-payment-receipt"', $html);
|
||||||
|
$this->assertStringContainsString('去补回执', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user