Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

納品書の郵便番号が出力されていない不具合を修正 #5887

Merged
merged 1 commit into from
Dec 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/Eccube/Service/OrderPdfService.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,15 @@ protected function renderShopData()
$this->setBasePosition();

// ショップ名
$this->lfText(125, 60, $this->baseInfoRepository->getShopName(), 8, 'B');
$this->lfText(125, 58, $this->baseInfoRepository->getShopName(), 8, 'B');

//郵便番号
$this->lfText(121, 63, "\u{3012}". ' ' . mb_substr($this->baseInfoRepository->getPostalCode(), 0, 3) . ' - ' . mb_substr($this->baseInfoRepository->getPostalCode(), 3, 4), 8);


// 都道府県+所在地
$text = $this->baseInfoRepository->getPref().$this->baseInfoRepository->getAddr01();
$this->lfText(125, 65, $text, 8);
$this->lfText(125, 66, $text, 8);
$this->lfText(125, 69, $this->baseInfoRepository->getAddr02(), 8);

// 電話番号
Expand Down Expand Up @@ -416,6 +420,10 @@ protected function renderOrderData(Shipping $Shipping)

$Order = $Shipping->getOrder();

// 購入者郵便番号(3012は郵便マークのUTFコード)
$text = "\u{3012}" . ' ' . mb_substr($Shipping->getPostalCode(), 0, 3) . ' - ' . mb_substr($Shipping->getPostalCode(), 3, 4);
$this->lfText(22, 43, $text, 10);

// 購入者都道府県+住所1
// $text = $Order->getPref().$Order->getAddr01();
$text = $Shipping->getPref().$Shipping->getAddr01();
Expand Down