diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index e087502..b101f95 100644 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -160,7 +160,7 @@ class Invoice extends BaseController { $data['receipt_details'] = $model->where(['receipt_id' => $id, 'isactive' => 1])->first(); } - $data['receipt_type'] = (int)$data['receipt_details']['receipt_type']; + $data['receipt_type'] = $data['receipt_details']['receipt_type']; } $cus_where = ['business_id' => (int)get_business_id() , 'isactive' => 1, 'donor_type'=>$data['receipt_type']]; $data['typebaseddonors'] = $model->getData('donor', $cus_where);