From bad19652b803ee9a7fe682b80409cdf665028306 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Tue, 4 Jul 2023 10:06:23 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=AF=E3=81=8C=E3=81=8D=E3=81=AE=E6=94=B9?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B8=E3=80=80=E6=8A=80=E8=A1=93=E6=A4=9C?= =?UTF-8?q?=E8=A8=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/css/receipt_common.css | 6 + resources/css/receipt_letter.css | 12 +- resources/views/pdf/receipt_letter.blade.php | 180 +++++++++++++------ 3 files changed, 138 insertions(+), 60 deletions(-) diff --git a/resources/css/receipt_common.css b/resources/css/receipt_common.css index 1f7afce..ce779b5 100644 --- a/resources/css/receipt_common.css +++ b/resources/css/receipt_common.css @@ -78,3 +78,9 @@ margin-left: 5mm; .vt { vertical-align: top; } + + +/* 改ページ */ +body section.page:nth-child(n+2) { + page-break-before: always; +} \ No newline at end of file diff --git a/resources/css/receipt_letter.css b/resources/css/receipt_letter.css index 7b60703..9a3b1ad 100644 --- a/resources/css/receipt_letter.css +++ b/resources/css/receipt_letter.css @@ -1,18 +1,18 @@ /* 郵送先フィールド */ -section.address { - +div.section-address { height: 50mm; } -#address { - position: absolute; +div.section-address div.address-field { + position: relative; top: 10mm; left:30mm; + width: 60mm; font-size: 4mm; } -#address div.name{ +div.section-address div.address-field div.name{ padding-top: 2mm; padding-left: 3mm; font-size: 4.5mm; @@ -20,7 +20,7 @@ section.address { /* ヘッダー高さ設定 */ -section.receipt div.header { +div.section-receipt div.header { height: 10mm; } diff --git a/resources/views/pdf/receipt_letter.blade.php b/resources/views/pdf/receipt_letter.blade.php index 45a11da..72e128a 100644 --- a/resources/views/pdf/receipt_letter.blade.php +++ b/resources/views/pdf/receipt_letter.blade.php @@ -12,58 +12,59 @@ -
-
+
+
+
-
〒{{ sprintf("%s-%s", substr($mail_zip_code, 0, 3), substr($mail_zip_code, 3) ) }}
-
- {{ $pref_name }} -
- @if($mail_address1) -
- {{ $mail_address1 }} -
- @endif - @if($mail_address2) -
- {{ $mail_address2 }} -
- @endif - @if($mail_address3) -
- {{ $mail_address3 }} -
- @endif -
- {{ $mail_name }} 様 +
〒{{ sprintf("%s-%s", substr($mail_zip_code, 0, 3), substr($mail_zip_code, 3) ) }}
+
+ {{ $pref_name }} +
+ @if($mail_address1) +
+ {{ $mail_address1 }} +
+ @endif + @if($mail_address2) +
+ {{ $mail_address2 }} +
+ @endif + @if($mail_address3) +
+ {{ $mail_address3 }} +
+ @endif +
+ {{ $mail_name }} 様 +
-
-
-
-
-
-

-
-
-

領収証

-
-
-
-
発行日 {{ $status_receipt_confirm_datetime }}
-
No {{ $receipt_no }}
+
+
+
+
+

+
+
+

領収証

+
+
+
+
発行日 {{ $status_receipt_confirm_datetime }}
+
No {{ $receipt_no }}
+
-
-
{{ $receipt_name }} 様
-
利用日 {{ $receipt_use_date }}
-
+
{{ $receipt_name }} 様
+
利用日 {{ $receipt_use_date }}
+
-
- ¥{{ $receipt_amount }} -  +
+ ¥{{ $receipt_amount }} -  +
+
内消費税 ¥{{ $tax_amount }}- (10%対象)
-
内消費税 ¥{{ $tax_amount }}- (10%対象)
-
但し、{{ $parking_name }} @@ -92,22 +93,93 @@
+
+ + -
-
- 代理発行 + +
+
+
+ +
〒{{ sprintf("%s-%s", substr($mail_zip_code, 0, 3), substr($mail_zip_code, 3) ) }}
+
+ {{ $pref_name }} +
+ @if($mail_address1) +
+ {{ $mail_address1 }} +
+ @endif + @if($mail_address2) +
+ {{ $mail_address2 }} +
+ @endif + @if($mail_address3) +
+ {{ $mail_address3 }} +
+ @endif +
+ {{ $mail_name }} 様 +
-
- につき +
+
+
+
+
+

+
+
+

領収証

+
+
+
+
発行日 {{ $status_receipt_confirm_datetime }}
+
No {{ $receipt_no }}
+
+
-
- 捺印省略 +
{{ $receipt_name }} 様
+
利用日 {{ $receipt_use_date }}
+
+ +
+ ¥{{ $receipt_amount }} -  +
+
内消費税 ¥{{ $tax_amount }}- (10%対象)
+
+ 但し、{{ $parking_name }} +
+
+ {{ $receipt_purpose }}として +
+
上記正に領収いたしました。
+
運営会社 {{ $customer_name }}
+
インボイス登録番号 {{ $receipt_invoice_no }}
+
発行元及び返送先
+
+
〒550-0014
+
+
+ 大阪府大阪市西区北堀江2-2-25 +
+
+ 久慈ビル南館5階 +
+
ハローテクノ株式会社
+
- +
TEL:06-7638-6575
+
FAX:06-6536-5600
+
+
+
- \ No newline at end of file