Commit d5b8cbec by 杨树贤

同步逻辑

parent f8d5505d
...@@ -112,6 +112,12 @@ class SupplierAuditService ...@@ -112,6 +112,12 @@ class SupplierAuditService
} }
} }
} }
if (!empty($supplier['group_code'])) {
//同步到一体化
(new SyncSupplierService())->syncSupplierToErp($supplierId);
}
return $result; return $result;
} }
......
...@@ -33,7 +33,7 @@ class SyncSupplierService ...@@ -33,7 +33,7 @@ class SyncSupplierService
return false; return false;
} }
if (!$supplier['group_code']) { if (!$supplier['group_code'] && $supplier['status'] != SupplierChannelModel::STATUS_PASSED) {
return true; return true;
} }
...@@ -124,7 +124,7 @@ class SyncSupplierService ...@@ -124,7 +124,7 @@ class SyncSupplierService
'recid' => $receipt['receipt_id'], 'recid' => $receipt['receipt_id'],
'intermediaryBank' => $receipt['intermediary_bank'], 'intermediaryBank' => $receipt['intermediary_bank'],
'remark' => $receipt['remark'], 'remark' => $receipt['remark'],
'country_isocode' => !empty($receipt['nation']['international_code']) ? $receipt['nation']['international_code']: "", 'country_isocode' => !empty($receipt['nation']['international_code']) ? $receipt['nation']['international_code'] : "",
]; ];
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment