重命名京东流水为京东账单 #235

Merged
qiuxiang merged 1 commits from fix/qiuxiang-rename-jd-bill into main 2026-09-22 11:39:09 +08:00
3 changed files with 3 additions and 2 deletions

View File

@ -106,7 +106,7 @@ class AccountBillColumns
],
'jd-transactions' => [
'title' => '京东流水',
'title' => '京东账单',
'columns' => [
['记录编码', 'record_code', 'num'],
['店铺', 'store_name', 'text'],

View File

@ -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' => '得物',

View File

@ -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'));
}