feat:테넌트설정 API 및 다수 서비스 개선

- TenantSetting CRUD API 추가
- Calendar, Entertainment, VAT 서비스 개선
- 5130 BOM 계산 로직 수정
- quote_items에 item_type 컬럼 추가
- tenant_settings 테이블 마이그레이션
- Swagger 문서 업데이트
This commit is contained in:
2026-01-26 20:29:22 +09:00
parent f2da990771
commit 6d05ab815f
54 changed files with 2090 additions and 110 deletions

View File

@@ -4,7 +4,6 @@
use App\Models\Tenants\TaxInvoice;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;
/**
* 부가세 현황 서비스
@@ -232,7 +231,7 @@ private function getPeriodLabel(int $year, string $periodType, int $period): str
{
return match ($periodType) {
'quarter' => "{$year}{$period}기 예정신고",
'half' => "{$year}" . ($period === 1 ? '상반기' : '하반기') . ' 확정신고',
'half' => "{$year}".($period === 1 ? '상반기' : '하반기').' 확정신고',
'year' => "{$year}년 연간",
default => "{$year}{$period}",
};
@@ -258,4 +257,4 @@ private function getPreviousPeriod(int $year, string $periodType, int $period):
: ['year' => $year, 'period' => $period - 1],
};
}
}
}