shish 5 лет назад
Родитель
Сommit
0bb5133eae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      biz-hd/purchase/classes/PurchaseClass.php

+ 1 - 1
biz-hd/purchase/classes/PurchaseClass.php

@@ -351,7 +351,7 @@ class PurchaseClass extends BaseClass
 
 
         //供货商的客户资产变化
         //供货商的客户资产变化
         $customId = $ghsOrder->customId;
         $customId = $ghsOrder->customId;
-        $custom = Custom::findBySql('select * from ' . Ghs::tableName() . ' where id = :id for update', ['id' => $customId])->one();
+        $custom = Custom::findBySql('select * from ' . Custom::tableName() . ' where id = :id for update', ['id' => $customId])->one();
         if ($payWay == dict::getDict('payWay', 'debtPay')) {
         if ($payWay == dict::getDict('payWay', 'debtPay')) {
             //欠款支付
             //欠款支付
             $custom->isDebt = CustomClass::IS_DEBT_YES;
             $custom->isDebt = CustomClass::IS_DEBT_YES;