update serve/app/controller/Crt.php.
利润表报错处理 Signed-off-by: 姚PD <13558507+yao-shipeng@user.noreply.gitee.com>
This commit is contained in:
parent
12bcec2ab1
commit
ead667e72b
@ -1697,9 +1697,9 @@ class Crt extends Acl{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//计算数据
|
//计算数据
|
||||||
$si=math()->chain($record[0]['money'])->sub($record[1]['money'])->add($record[2]['money'])->sub($record[3]['money'])->done();
|
$si=math()->chain($record[0]['money'])->sub($record[1]['money'])->done();
|
||||||
$cost=math()->chain($record[0]['cost'])->add($record[1]['cost'])->add($record[2]['cost'])->add($record[3]['cost'])->done();
|
$cost=math()->chain($record[0]['cost'])->add($record[1]['cost'])->done();
|
||||||
$bct=math()->chain($summary[0]['bct'])->sub($summary[1]['bct'])->add($summary[2]['bct'])->sub($summary[3]['bct'])->done();
|
$bct=math()->chain($summary[0]['bct'])->sub($summary[1]['bct'])->done();
|
||||||
$profit=math()->chain($si)->sub($cost)->sub($bct)->done();
|
$profit=math()->chain($si)->sub($cost)->sub($bct)->done();
|
||||||
$data=[
|
$data=[
|
||||||
['name'=>'主营业务','money'=>''],
|
['name'=>'主营业务','money'=>''],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user