cqpCow пре 1 година
родитељ
комит
6acfa3c722
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app/Service/PaymentReceiptService.php

+ 1 - 0
app/Service/PaymentReceiptService.php

@@ -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'])