浏览代码

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

SATE_RECEIPT-41 SMS送信時の領収用登録
develop
sosuke.iwabuchi 2 年前
父节点
当前提交
27bd371ffd
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -0
      app/Logic/ReceiptIssuingOrder/CreateManager.php
  2. +1
    -2
      app/Logic/ReceiptIssuingOrder/UpdateManager.php

+ 1
- 0
app/Logic/ReceiptIssuingOrder/CreateManager.php 查看文件

@@ -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 查看文件

@@ -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();


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


正在加载...
取消
保存