<?= 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 :(得分:0)
如果我理解你的猜测(顺便说一下,这很难),你要找的是:
<?php
$numberToDisplay = 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);
if ($numberToDisplay > 0) {
echo $numberToDisplay;
}
?>