调试信用购订单结算
This commit is contained in:
parent
075c61c248
commit
04f6b813df
@ -9,7 +9,7 @@ class StoreOrderInterest extends BaseModel
|
|||||||
|
|
||||||
const STATUS_SETTLED = 1; //已结算
|
const STATUS_SETTLED = 1; //已结算
|
||||||
const STATUS_UNSETTLED = 0; //未结算
|
const STATUS_UNSETTLED = 0; //未结算
|
||||||
const STATUS_DELETED = 1; //已删除
|
const STATUS_DELETED = -1; //已删除
|
||||||
|
|
||||||
public static function tablePk(): ?string
|
public static function tablePk(): ?string
|
||||||
{
|
{
|
||||||
|
@ -2453,7 +2453,7 @@ class StoreOrderRepository extends BaseRepository
|
|||||||
if (!$groupOrder) {
|
if (!$groupOrder) {
|
||||||
throw new Exception('订单不存在或已支付');
|
throw new Exception('订单不存在或已支付');
|
||||||
}
|
}
|
||||||
if (!$groupOrder->interest || $groupOrder->interest->status == StoreOrderInterest::STATUS_SETTLED) {
|
if (!$groupOrder->interest || $groupOrder->interest->status != StoreOrderInterest::STATUS_UNSETTLED) {
|
||||||
throw new Exception('订单无需结算');
|
throw new Exception('订单无需结算');
|
||||||
}
|
}
|
||||||
$interest = $groupOrder->interest->calculateInterest();
|
$interest = $groupOrder->interest->calculateInterest();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user