|
@@ -109,28 +109,21 @@ class Cash
|
|
|
$per = $yspay['per']/100;
|
|
|
$cash_jy_per = $yspay['cash_jy_per']/100;
|
|
|
|
|
|
- $data['ycash'] = $amount/$this->num;
|
|
|
+ $data['ycash'] = $amount;
|
|
|
$data['yl_cash'] = $data['ycash'] * $per;
|
|
|
- $data['pt_cash'] = round($data['ycash'] * $cash_jy_per, 3);
|
|
|
- $data['cash'] = round($data['ycash'] - $data['yl_cash'] - $data['pt_cash'], 3);
|
|
|
+ $data['pt_cash'] = $data['ycash'] * $cash_jy_per;
|
|
|
+ $data['cash'] = $data['ycash'] - $data['yl_cash'] - $data['pt_cash'];
|
|
|
if ($yspay['cash_type'] == 1) {
|
|
|
$fz_cash = $data['ycash'];
|
|
|
} else {
|
|
|
$fz_cash = $data['cash'];
|
|
|
}
|
|
|
- //$data['fz_cash'] = round($fz_cash*$cash_per, 3);
|
|
|
+ //$data['fz_cash'] = $fz_cash*$cash_per;
|
|
|
$data['fz_cash'] = 0;
|
|
|
if ($fenzhang && $fenzhang > 0) {
|
|
|
$data['fz_cash'] += $fenzhang;
|
|
|
}
|
|
|
- $data['hf_cash'] = round($data['cash'] - $data['fz_cash'], 3);
|
|
|
-
|
|
|
- $data['ycash'] *= $this->num;
|
|
|
- $data['yl_cash'] *= $this->num;
|
|
|
- $data['pt_cash'] *= $this->num;
|
|
|
- $data['cash'] *= $this->num;
|
|
|
- $data['fz_cash'] *= $this->num;
|
|
|
- $data['hf_cash'] *= $this->num;
|
|
|
+ $data['hf_cash'] = $data['cash'] - $data['fz_cash'];
|
|
|
}
|
|
|
}
|
|
|
|