重命名京东流水为京东账单 #235
@ -106,7 +106,7 @@ class AccountBillColumns
|
||||
],
|
||||
|
||||
'jd-transactions' => [
|
||||
'title' => '京东流水',
|
||||
'title' => '京东账单',
|
||||
'columns' => [
|
||||
['记录编码', 'record_code', 'num'],
|
||||
['店铺', 'store_name', 'text'],
|
||||
|
||||
@ -378,7 +378,7 @@ class AccountBills extends Controller
|
||||
private function mirrorLabel(string $billType): string
|
||||
{
|
||||
return match ($billType) {
|
||||
'jd-transactions' => '京东日账单',
|
||||
'jd-transactions' => '京东账单',
|
||||
'jd-wallet' => '京东钱包',
|
||||
'pinduoduo' => '拼多多',
|
||||
'dewu' => '得物',
|
||||
|
||||
@ -49,6 +49,7 @@ class JdDailyBillTest extends TestCase
|
||||
$this->assertSame(2, $repo->paginate(['store_name' => '测试京东店', 'bill_item' => '货款'], 'income', 'desc', 1, 10)['total']);
|
||||
$this->assertSame(['测试京东店'], $repo->filterOptions()['shops']);
|
||||
$this->assertSame(['2026-08'], $first['sync']['periods']);
|
||||
$this->assertSame('京东账单', AccountBillColumns::for('jd-transactions')['title']);
|
||||
$this->assertNotContains('balance', array_column(AccountBillColumns::for('jd-transactions')['columns'], 'field'));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user