去掉无用的参数
修改表单构建关联字段的逻辑 修改外部插件说明
This commit is contained in:
@@ -131,7 +131,7 @@ class DeliveryHook
|
||||
}
|
||||
}
|
||||
|
||||
// 同步数据到yonyou
|
||||
// 同步数据到外部接口
|
||||
$ret = plugin_sync_api('postDelivery', ['master' => $master, 'rows' => $rows]);
|
||||
if ($ret['success'] == true) {
|
||||
return $params;
|
||||
@@ -142,7 +142,7 @@ class DeliveryHook
|
||||
public function onBeforeAbort($params) {
|
||||
$id = $params['id'];
|
||||
$master = DB::table('stock_delivery')->where('id', $id)->first();
|
||||
// 检查用友单据是否存在
|
||||
// 检查外部接口单据是否存在
|
||||
$ret = plugin_sync_api('getVouchExist', ['table' => 'DispatchList', 'field' => 'cDLCode', 'value' => $master['sn']]);
|
||||
if ($ret['msg'] > 0) {
|
||||
abort_error('用友存在发货单['.$master['sn'].']无法弃审。');
|
||||
|
||||
Reference in New Issue
Block a user