feat: 修改了StoreProductLists.php文件,修复了库存计算的bug,现在库存计算更加准确。

This commit is contained in:
mkm 2024-09-06 17:57:26 +08:00
parent 6e0a9e73f1
commit 663defd80d

View File

@ -116,7 +116,7 @@ class StoreProductLists extends BaseAdminDataLists implements ListsSearchInterfa
$item->total_price='0元';
}
if($item->total_stock){
$item->total_stock=$item->total_stock.'|'.$unit_name;
$item->total_stock=bcadd($item->total_stock,$item->warehouse_stock,2).'|'.$unit_name;
}else{
$item->total_stock='';
}