Commit 56117492 authored by clone's avatar clone

1

parent 5e5487b1
......@@ -557,6 +557,11 @@ class StoreFeeService
*/
public function getStoreFeeDetail($setting_date, $store_id)
{
$storeModel = new AStore();
$storeInfo = $storeModel->getStore(["id"=>$store_id],"id,site_id");
if(!$storeInfo){
return false;
}
$storeCostModel = new FStoreCost();
$storeCostInfo = $storeCostModel->findByOne("id", ["setting_date" => $setting_date, "status" => 0]);
if (!$storeCostInfo) {
......@@ -604,7 +609,7 @@ class StoreFeeService
$result["last_official_receipts"] = $storeDataInfo["last_official_receipts"];
$result["deduct"] = $storeDataInfo["deduct"];
$result["profit"] = $result["official_receipts"] - $result["total_cost"] - $result["last_official_receipts"];
$result["store_info"] = $storeInfo;
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment