应付款终版退货对账:wms配货单号调整到标题后 (#355)
「标题」在前、「wms配货单号」在后(与基础页面一致),导入模板与页面/导出同步;其他页签不受影响。
This commit is contained in:
parent
b4eaa1e102
commit
688ae30747
@ -41,7 +41,7 @@ class PayablesFinalRegistry
|
||||
* - insert:锚点列之后插入的列(锚点列名 => 列定义);
|
||||
* - append:追加到末尾的列。
|
||||
* 货款对账在「月份」后补入库单号、采购单号,末尾补未发出、对账人;
|
||||
* 退货对账去掉「快递名称」,在「备注」后插入 wms 配货单号,在「标记多标签」后补创建人。
|
||||
* 退货对账去掉「快递名称」,在「标题」后插入 wms 配货单号,在「标记多标签」后补创建人。
|
||||
*/
|
||||
private const SUPPLIER_FIELD_PATCHES = [
|
||||
'payment-reconciliation' => [
|
||||
@ -57,7 +57,7 @@ class PayablesFinalRegistry
|
||||
'return-reconciliation' => [
|
||||
'remove' => ['express_name'],
|
||||
'insert' => [
|
||||
'remark' => ['wms_pick_no' => ['label' => 'wms配货单号', 'type' => 'text']],
|
||||
'title' => ['wms_pick_no' => ['label' => 'wms配货单号', 'type' => 'text']],
|
||||
'labels' => ['creator' => ['label' => '创建人', 'type' => 'text']],
|
||||
],
|
||||
],
|
||||
|
||||
@ -152,7 +152,7 @@ class SupplierPayableFinalPagesTest extends FeatureTestCase
|
||||
|
||||
$this->assertSame([
|
||||
'记录标识', '月份', '发货时间', '明细供应商', '条形码', '商品名称', '发货量', '单价', '金额', '预估单价',
|
||||
'预估金额', '供应商条码', '备注', 'wms配货单号', '标题', '仓库名称', '快递单号', '标记多标签', '创建人', '对账人',
|
||||
'预估金额', '供应商条码', '备注', '标题', 'wms配货单号', '仓库名称', '快递单号', '标记多标签', '创建人', '对账人',
|
||||
], $header);
|
||||
$this->assertNotContains('快递名称', $header);
|
||||
} finally {
|
||||
@ -164,8 +164,8 @@ class SupplierPayableFinalPagesTest extends FeatureTestCase
|
||||
{
|
||||
$file = UploadedFile::fake()->createWithContent(
|
||||
'return-reconciliation.csv',
|
||||
"\xEF\xBB\xBF月份,发货时间,明细供应商,条形码,商品名称,发货量,单价,金额,预估单价,预估金额,供应商条码,备注,wms配货单号,标题,仓库名称,快递单号,标记多标签,创建人,对账人\n"
|
||||
. "2026-09,2026-09-01,退货供应商,BC-1,商品甲,3,10,30,9,27,SB-1,备注甲,WMS-1,标题甲,华南仓,SF-9,多标签,创建人甲,对账人乙\n",
|
||||
"\xEF\xBB\xBF月份,发货时间,明细供应商,条形码,商品名称,发货量,单价,金额,预估单价,预估金额,供应商条码,备注,标题,wms配货单号,仓库名称,快递单号,标记多标签,创建人,对账人\n"
|
||||
. "2026-09,2026-09-01,退货供应商,BC-1,商品甲,3,10,30,9,27,SB-1,备注甲,标题甲,WMS-1,华南仓,SF-9,多标签,创建人甲,对账人乙\n",
|
||||
);
|
||||
|
||||
$this->loginAs()
|
||||
@ -192,6 +192,7 @@ class SupplierPayableFinalPagesTest extends FeatureTestCase
|
||||
|
||||
$export = $this->loginAs()->get(route('business.supplier-payables-final.return-reconciliation.export'));
|
||||
$export->assertOk();
|
||||
$this->assertStringContainsString('备注,标题,wms配货单号', $export->streamedContent());
|
||||
$this->assertStringContainsString('标记多标签,创建人,对账人', $export->streamedContent());
|
||||
$this->assertStringNotContainsString('快递名称', $export->streamedContent());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user