|
|
@@ -97,7 +97,9 @@ class ExternalPlatformLogic extends BaseLogic
|
|
|
throw new \Exception('工单不存在');
|
|
|
}
|
|
|
if($model->external_platform_id = 0){
|
|
|
-
|
|
|
+ $order_sns = \app\common\model\orders\RechargeOrder::where('work_id',$model->id)->column('sn');
|
|
|
+ $goods_payment_type = OrderGoods::whereIn('sn',$order_sns)->value('goods_payment_type');
|
|
|
+ if(in_array($goods_payment_type,['2','3'])) throw new \Exception('固定价无需分账处理');
|
|
|
$laborRatio = 0;
|
|
|
$ratio = 0;
|
|
|
$commissionConfig = MasterWorkerCommissionConfig::where('master_worker_id',$model->master_worker_id)->where('voucher_status',2)->findOrEmpty();
|