feat: 修改了StoreProductLists.php文件,修复了库存计算的bug,现在库存计算更加准确。
This commit is contained in:
parent
6e0a9e73f1
commit
663defd80d
@ -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='';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user