$headers */ /** @var list> $displayRows */ /** @var int $totalCount */ /** @var float $totalSupplyAmount */ /** @var float $totalTaxAmount */ /** @var int $missingBizCount */ /** @var string $lgName */ /** @var list $printExtraLines */ /** @var list}> $hometaxPrintPages */ /** @var list $hometaxColMinPx */ helper('admin'); $baseParams = [ 'start_date' => $startDate ?? '', 'end_date' => $endDate ?? '', 'write_date' => $writeDate ?? '', ]; $searchParams = array_merge($baseParams, ['search' => '1']); $exportParams = array_merge($searchParams, ['export' => '1']); $searchUrl = mgmt_url('reports/hometax-export?' . http_build_query($searchParams)); $excelUrl = mgmt_url('reports/hometax-export?' . http_build_query($exportParams)); $totalGrand = (float) ($totalSupplyAmount ?? 0) + (float) ($totalTaxAmount ?? 0); $colCount = max(1, count($headers ?? [])); /** 홈택스 28열 — 주소·상호·이메일 등 텍스트 열을 넓게 (합계 100%) */ $hometaxColWidths = [ '4.5%', '4%', '4%', '6%', '3%', '6.5%', '3.5%', '11%', '3%', '3%', '5.5%', '6%', '3%', '6.5%', '3.5%', '11%', '3%', '3%', '5.5%', '4%', '4%', '3%', '5.5%', '3%', '3%', '3.5%', '3.5%', '3.5%', ]; $hometaxColMinPx = $hometaxColMinPx ?? []; $hometaxPrintPages = $hometaxPrintPages ?? []; $hometaxWrapColIdx = [7, 15, 5, 6, 13, 14, 10, 18, 22, 27]; $hometaxNumColIdx = [19, 20, 24, 25, 26, 27]; $hometaxNormalizeColWidths = static function (array $colIndices) use ($hometaxColWidths): array { $sum = 0.0; foreach ($colIndices as $ci) { $sum += (float) str_replace('%', '', (string) ($hometaxColWidths[$ci] ?? '3')); } $normalized = []; foreach ($colIndices as $ci) { $pct = (float) str_replace('%', '', (string) ($hometaxColWidths[$ci] ?? '3')); $normalized[$ci] = ($sum > 0 ? round($pct / $sum * 100, 2) : round(100 / max(1, count($colIndices)), 2)) . '%'; } return $normalized; }; $hometaxCellClass = static function (int $ci) use ($hometaxWrapColIdx, $hometaxNumColIdx): string { $class = 'text-left px-1 py-1'; if (in_array($ci, $hometaxWrapColIdx, true)) { $class .= ' ht-wrap'; } if (in_array($ci, $hometaxNumColIdx, true)) { $class .= ' ht-num'; } return $class; }; /** * @param list $colIndices */ $hometaxRenderTable = static function ( array $colIndices, string $tableExtraClass, string $tableId, bool $forPrint ) use ( $headers, $displayRows, $searched, $colCount, $hometaxColWidths, $hometaxColMinPx, $hometaxCellClass, $hometaxNormalizeColWidths ): void { $sliceCount = count($colIndices); $widthsForSet = $hometaxNormalizeColWidths($colIndices); ?> >
조회를 건너뛴 상태입니다. 조회를 눌러 주세요.
조회된 판매 내역이 없습니다.
'홈택스 처리', 'printExtraLines' => $printExtraLines ?? [], ]) ?>

홈택스 처리

엑셀저장
~
조회결과
총 건수
총 금액 (공급가액+세액)
사업자등록번호 없음
인쇄·엑셀저장은 동일하게 2쪽 열 구성입니다(1쪽: 공급자·공급받는자, 2쪽: 금액·품목). 요약·결재란은 인쇄용 헤더에 포함됩니다.