It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
When marking an invoice as paid I would to Make bank_transfer default and remove place holder transaction id so it is blank.
Thanks
Comments
Hi, by default transaction id is set to function time() to identify each transaction. if you don't want to display it on the invoice pdf, open application/controllers/Viewinvoice.php and locate this function
public function set_invoice_vars($invoice_number) { $results = get_invoice_by_number($invoice_number); foreach ($results as $value) { $this->_invoice = [ 'id' => $value->id, 'client_id' => $value->client_id, 'invoice_number' => $value->invoice_number, 'subject' => $value->subject, 'pay_type' => $value->pay_type, 'date' => $value->date, 'due_date' => $value->due_date, 'next_duedate' => $value->next_duedate, 'date_paid' => $value->date_paid, 'subtotal' => $value->subtotal * $value->change_rate, 'tax_amount' => $value->tax_amount * $value->change_rate, 'credit_used' => $value->credit_used * $value->change_rate, 'discount_amount' => $value->discount_amount * $value->change_rate, 'total' => $value->total * $value->change_rate, 'amount_paid' => $value->amount_paid * $value->change_rate, 'amount_refunded' => $value->amount_refunded * $value->change_rate, 'payment_method' => strtoupper( __($value->payment_method, $value->client_id) ), 'transaction_id' => $value->transaction_id, 'amount_due' => $value->amount_due * $value->change_rate, 'invoice_status' => $value->invoice_status, 'notes' => $value->notes, 'change_rate' => $value->change_rate ]; } }
Set
transaction_id
to""
and save. All your transaction will then be blank.Thanks for the reply. I have already created a custom template not to show the transaction id on the invoice PDF, that is not the area I am talking about.
The transaction ID generation is fine, it is the default selection of the drop down in the Payment method when marking an invoice as paid.
I will most likely bulk edit invoices as paid from the invoice list page using ACTIONS- MARK SELECTION AS PAID.
However, this chooses PAYPAL as the payment method by default I need it to be BANK_TRANSFER. I already have bank transfer set as default in Payment Gateway section but PAYPAL is still being chosen by default.
Hi,
I have seen the error. I used to record payment method id, but after the change, I now record the plain name as user can set what they want. So just use the Add new payment method to recreate Bank Transfer. It won't conflit because it will be saved as plain text. you will delete later the previous Bank_transfer. Set it as default and all your invoices will use this value. Open previous invoices and select the new method.
You can use phpmyadmin to delete the previous one. Next update will add CRUD button in the dashboard.
Thanks