问题描述
实际上这个查询工作正常现在我想再添加一个条件,只打印大于0的值
我尝试了什么:
<?= number_format((isset($ prdRow-> SaleVal))?($ prdRow-> SaleVal /(30)*( $ Logdays)
- ((isset($ disp10-> dispamount10))?$ disp10-> dispamount10 - ((isset($ disp1-> dispamount1))?$ disp1-> dispamount1:0):0)
- ((isset($ disp2-> SumOfCash))?$ disp2-> SumOfCash:0)
- ((isset ($ prdRow-> ClosingVal))?$ prdRow-> ClosingVal - ($ ret_unitsAmt):0))*((100- $ CustDiscount)/ 100)
:0,0)? >
actually this query working fine now i want to add one more condition that just print value which is greater than 0
What I have tried:
<?= number_format((isset($prdRow->SaleVal))?($prdRow->SaleVal / (30) * ($Logdays)
- ((isset ($disp10->dispamount10))?$disp10->dispamount10 - ((isset($disp1->dispamount1))?$disp1->dispamount1:0) :0)
- ((isset($disp2->SumOfCash))?$disp2->SumOfCash:0)
- ((isset($prdRow->ClosingVal))?$prdRow->ClosingVal-($ret_unitsAmt):0))* ((100- $CustDiscount)/100)
:0,0)?>
推荐答案
这篇关于实际上这个查询工作正常,我想再添加一个条件,只打印大于0的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!