Browse Source

領収証番号を作成時に発番するように修正

SATE_RECEIPT-41 SMS送信時の領収用登録
develop
sosuke.iwabuchi 2 years ago
parent
commit
27bd371ffd
2 changed files with 2 additions and 2 deletions
  1. +1
    -0
      app/Logic/ReceiptIssuingOrder/CreateManager.php
  2. +1
    -2
      app/Logic/ReceiptIssuingOrder/UpdateManager.php

+ 1
- 0
app/Logic/ReceiptIssuingOrder/CreateManager.php View File

@@ -74,6 +74,7 @@ class CreateManager extends ReceiptIssuingOrderManager


// モデル更新 // モデル更新
$order->order_datetime = DateUtil::now(); $order->order_datetime = DateUtil::now();
$order->receipt_no = $this->generateReceiptnNo();
$this->refreshToken(); $this->refreshToken();


$contractId = $this->loginUser()->getCurrentContractId(); $contractId = $this->loginUser()->getCurrentContractId();


+ 1
- 2
app/Logic/ReceiptIssuingOrder/UpdateManager.php View File

@@ -145,10 +145,9 @@ class UpdateManager extends ReceiptIssuingOrderManager
*/ */
public function setConfirm(): static public function setConfirm(): static
{ {
if ($this->order->receipt_no !== null) {
if ($this->order->status_receipt_confirm_datetime !== null) {
throw new LogicException("領収証確定済み変更検知"); throw new LogicException("領収証確定済み変更検知");
} }
$this->order->receipt_no = $this->generateReceiptnNo();
$this->order->status_receipt_confirm_datetime = DateUtil::now(); $this->order->status_receipt_confirm_datetime = DateUtil::now();


// イベント登録 // イベント登録


Loading…
Cancel
Save