|
|
@@ -109,7 +109,7 @@ class PurchaseDao |
|
|
|
$cnt += $price['count']; |
|
|
|
} |
|
|
|
$purchase = new Purchase(); |
|
|
|
$purchase->save(["total_price"=>$amount,"total_cost"=>$cost,"count"=>$cnt],["id"=>$purchaseId]); |
|
|
|
$purchase->save(["total_price"=>$amount,"total_cost"=>$cost,"count"=>$cnt,"profit"=>$amount-$cost],["id"=>$purchaseId]); |
|
|
|
return Util::returnArrSu(); |
|
|
|
}catch (Exception $e){ |
|
|
|
return Util::returnArrEr("更新采购单金额失败:".$e->getMessage()); |
|
|
|