wugg 1 tahun lalu
induk
melakukan
c9e0938c75
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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');