feat: [finance] 경비계정 동기화에 증빙번호(receipt_no) 지원 추가

- StoreManualJournalRequest/UpdateJournalRequest에 receipt_no 필드 추가
- GeneralJournalEntryService: store/update 시 receipt_no 전달
- JournalSyncService: saveForSource에 receiptNo 파라미터 추가
- SyncsExpenseAccounts: 증빙번호 결정 우선순위 (명시 전달 > 바로빌 승인번호 > null)
- SOURCE_BAROBILL_CARD를 카드결제 payment_method에 추가

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
유병철
2026-03-18 20:07:17 +09:00
parent b7c6e7f69d
commit 55f97f67d3
5 changed files with 38 additions and 8 deletions

View File

@@ -329,7 +329,8 @@ public function store(array $data): JournalEntry
$this->createLines($entry, $data['rows'], $tenantId);
// expense_accounts 동기화 (복리후생비/접대비 → CEO 대시보드)
$this->syncExpenseAccounts($entry);
$receiptNo = $data['receipt_no'] ?? null;
$this->syncExpenseAccounts($entry, $receiptNo);
return $entry->load('lines');
});
@@ -379,7 +380,8 @@ public function updateJournal(int $id, array $data): JournalEntry
$entry->save();
// expense_accounts 동기화 (복리후생비/접대비 → CEO 대시보드)
$this->syncExpenseAccounts($entry);
$receiptNo = $data['receipt_no'] ?? null;
$this->syncExpenseAccounts($entry, $receiptNo);
return $entry->load('lines');
});