fix(WEB): 등록 버튼 링크를 ?mode=new 방식으로 변경
- 입금관리: /new → ?mode=new - 출금관리: /new → ?mode=new - 매출관리: /new → ?mode=new - 카드관리: /new → ?mode=new Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -327,7 +327,7 @@ export function DepositManagement({ initialData, initialPagination }: DepositMan
|
||||
|
||||
// 헤더 액션 (등록 버튼)
|
||||
headerActions: () => (
|
||||
<Button className="ml-auto" onClick={() => router.push('/ko/accounting/deposits/new')}>
|
||||
<Button className="ml-auto" onClick={() => router.push('/ko/accounting/deposits?mode=new')}>
|
||||
<Plus className="w-4 h-4 mr-2" />
|
||||
입금등록
|
||||
</Button>
|
||||
|
||||
@@ -189,7 +189,7 @@ export function SalesManagement({ initialData, initialPagination }: SalesManagem
|
||||
}, [router]);
|
||||
|
||||
const handleCreate = useCallback(() => {
|
||||
router.push('/ko/accounting/sales/new');
|
||||
router.push('/ko/accounting/sales?mode=new');
|
||||
}, [router]);
|
||||
|
||||
// 토글 핸들러
|
||||
|
||||
@@ -299,7 +299,7 @@ export function WithdrawalManagement({ initialData, initialPagination }: Withdra
|
||||
|
||||
// 헤더 액션 (등록 버튼)
|
||||
headerActions: () => (
|
||||
<Button className="ml-auto" onClick={() => router.push('/ko/accounting/withdrawals/new')}>
|
||||
<Button className="ml-auto" onClick={() => router.push('/ko/accounting/withdrawals?mode=new')}>
|
||||
<Plus className="w-4 h-4 mr-2" />
|
||||
출금등록
|
||||
</Button>
|
||||
|
||||
@@ -162,7 +162,7 @@ export function CardManagement({ initialData }: CardManagementProps) {
|
||||
|
||||
// 핸들러
|
||||
const handleAddCard = useCallback(() => {
|
||||
router.push('/ko/hr/card-management/new');
|
||||
router.push('/ko/hr/card-management?mode=new');
|
||||
}, [router]);
|
||||
|
||||
const handleDeleteCard = useCallback(async () => {
|
||||
|
||||
Reference in New Issue
Block a user