@@ 857-860 (lines=4) @@ | ||
854 | // echo $this->db->last_query(); exit; |
|
855 | } |
|
856 | ||
857 | if($amount > $debit){ |
|
858 | $this->session->set_flashdata('astpp_notification', 'Invoice payment amount should be higher then the invoice amount.'); |
|
859 | redirect(base_url().'invoices/invoice_summary/'.$invoice_id); |
|
860 | } |
|
861 | $payment_trans_array = array("accountid"=>$response_arr["custom"],"amount"=>$response_arr["payment_gross"], |
|
862 | "tax"=>"1","payment_method"=>"Paypal","actual_amount"=> $amount,"paypal_fee"=> $paypalfee, |
|
863 | "user_currency"=>$currency["currency"],"currency_rate"=>$currency["currencyrate"],"transaction_details"=>json_encode($response_arr),"date"=>$date); |
|
@@ 979-982 (lines=4) @@ | ||
976 | // echo $this->db->last_query(); exit; |
|
977 | } |
|
978 | ||
979 | if($amount > $debit){ |
|
980 | $this->session->set_flashdata('astpp_notification', 'Invoice payment amount should be higher then the invoice amount.'); |
|
981 | redirect(base_url().'invoices/invoice_summary/'.$invoice_id); |
|
982 | } |
|
983 | ||
984 | ||
985 | $debit_amount = "0.00"; |