wugg 1 년 전
부모
커밋
c9e0938c75
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/admin/model/GoodCombind.php

+ 1 - 1
app/admin/model/GoodCombind.php

@@ -14,7 +14,7 @@ class GoodCombind extends Model
 	protected $updateTime="updatetime";
 	protected $append=["usable_stock"];
 	
-	public function getUsabelStockAttr($v,$row){
+	public function getUsableStockAttr($v,$row){
 		return (new GoodStock())->withJoin(['wsminfo'] , 'left')
 		                 ->where(['spuCode'=>$row['childCode'] , 'wsm_type'=>[2 , 5]])
 		                 ->sum('usable_stock');