|
|
@@ -102,7 +102,7 @@ class OrderPeriodAdjustForm extends Model
|
|
|
// 调整订单期数
|
|
|
Order::updateAll(['PERIOD_NUM' => $this->modernPeriod], 'SN = :SN', [':SN' => $this->orderSn]);
|
|
|
// 调整报单期数
|
|
|
- if ($this->order->DEC_SN) {
|
|
|
+ if ($this->order->ORDER_TYPE === 'ZC') {
|
|
|
DecOrder::updateAll(['PERIOD_NUM' => $this->modernPeriod], 'ORDER_SN = :ORDER_SN', ['ORDER_SN' => $this->orderSn]);
|
|
|
}
|
|
|
// 写入调整记录
|