update serve/app/controller/Crt.php.

利润表报错处理

Signed-off-by: 姚PD <13558507+yao-shipeng@user.noreply.gitee.com>
This commit is contained in:
姚PD 2024-08-15 06:13:37 +00:00 committed by Gitee
parent 12bcec2ab1
commit ead667e72b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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();
$cost=math()->chain($record[0]['cost'])->add($record[1]['cost'])->add($record[2]['cost'])->add($record[3]['cost'])->done();
$bct=math()->chain($summary[0]['bct'])->sub($summary[1]['bct'])->add($summary[2]['bct'])->sub($summary[3]['bct'])->done();
$si=math()->chain($record[0]['money'])->sub($record[1]['money'])->done();
$cost=math()->chain($record[0]['cost'])->add($record[1]['cost'])->done();
$bct=math()->chain($summary[0]['bct'])->sub($summary[1]['bct'])->done();
$profit=math()->chain($si)->sub($cost)->sub($bct)->done();
$data=[
['name'=>'主营业务','money'=>''],