|
$banance = (new InvoiceOrder)->where(['code'=>$code,'status'=>[1,2]])->field('sum(ifnull(total_amount-balance_amount,0)) as total_amount')->find();
|
|
$banance = (new InvoiceOrder)->where(['code'=>$code,'status'=>[1,2]])->field('sum(ifnull(total_amount-balance_amount,0)) as total_amount')->find();
|
|
public function getMergeCodeAttr($value,$data){
|
|
public function getMergeCodeAttr($value,$data){
|