|
@@ -190,6 +190,7 @@ class PaymentReceiptService extends Service
|
|
|
$customer['crt_name'] = Employee::where('id',$customer['crt_id'])->value('emp_name');
|
|
|
$customer['crt_time'] = $customer['crt_time'] ? date("Y-m-d H:i:s",$customer['crt_time']): '';
|
|
|
$customer['payment_receipt_date'] = $customer['payment_receipt_date'] ? date("Y-m-d",$customer['payment_receipt_date']): '';
|
|
|
+ $customer['receipt_amount'] = $customer['state'] == PaymentReceipt::STATE_TWO ? $customer['amount'] : 0;
|
|
|
|
|
|
$file = PaymentReceiptInfo::where('del_time',0)
|
|
|
->where('payment_receipt_id',$data['id'])
|