|
@@ -379,7 +379,7 @@ class PaymentReceiptService extends Service
|
|
|
//退货退款
|
|
|
$tmp_return = $getDifferentAmountALL[$value['data_order_no']] ?? 0;
|
|
|
//收款
|
|
|
- $total = bcsub(bcsub($total_amount, $tmp_receipt), $tmp_return, 2);
|
|
|
+ $total = bcsub(bcsub($total_amount, $tmp_receipt,2), $tmp_return, 2);
|
|
|
}elseif($data['type'] == PaymentReceipt::type_three){
|
|
|
//红冲 = 审核后的收款金额 - 已红冲
|
|
|
//总金额 收款金额(审核后)
|
|
@@ -542,7 +542,7 @@ class PaymentReceiptService extends Service
|
|
|
//$max = $value['total_amount'] - $tmp_receipt - $tmp_return;
|
|
|
$tmp_receipt = $info_array[$value['order_number']] ?? 0;
|
|
|
$tmp_return = $return_exchange_array[$value['order_number']] ?? 0;
|
|
|
- $max = bcsub(bcsub($value['total_amount'], $tmp_receipt), $tmp_return, 2);
|
|
|
+ $max = bcsub(bcsub($value['total_amount'], $tmp_receipt,2), $tmp_return, 2);
|
|
|
if($map[$value['order_number']] > $max) return [false, $value['order_number'] . '的金额填写上限是' . $max];
|
|
|
}
|
|
|
}elseif($data['type'] == PaymentReceipt::type_three){
|
|
@@ -622,7 +622,7 @@ class PaymentReceiptService extends Service
|
|
|
//$max = $value['total_amount'] - $tmp_receipt - $tmp_return;
|
|
|
$tmp_receipt = $info_array[$value['order_number']] ?? 0;
|
|
|
$tmp_return = $return_exchange_array[$value['order_number']] ?? 0;
|
|
|
- $max = bcsub(bcsub($value['total_amount'], $tmp_receipt), $tmp_return, 2);
|
|
|
+ $max = bcsub(bcsub($value['total_amount'], $tmp_receipt,2), $tmp_return, 2);
|
|
|
if($map[$value['order_number']] > $max) return [false, $value['order_number'] . '的金额填写上限是' . $max];
|
|
|
}
|
|
|
}elseif($data['type'] == PaymentReceipt::type_three){
|
|
@@ -707,7 +707,7 @@ class PaymentReceiptService extends Service
|
|
|
->where('a.type',PaymentReceiptInfo::type_three)
|
|
|
->where('a.data_order_type',$type)
|
|
|
->where('a.data_order_no',$data['data_order_no'])
|
|
|
- ->select('a.payment_receipt_id','a.data_order_no as order_number','a.amount','a.data_type','b.state','b.payment_receipt_date')
|
|
|
+ ->select('a.payment_receipt_id','a.data_order_no as order_number','a.amount','a.data_type','b.state','b.payment_receipt_date','b.crt_time')
|
|
|
->get()->toArray();
|
|
|
|
|
|
$emp_id = PaymentReceiptInfo::where('del_time',0)
|