frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register
Hello m'Managerians !
What do you think m'Manager 2.0 should be ? What features SHOULD or MUST be implemented right now ! Request or Vote here

Make bank_transfer default and remove place holder transaction id

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.

  • Yes, this is a issue in the dropdown. I started with an array of options and people requested ability to add custom method. I will fix it and post here. Thanks
  • @dunn123 said:
    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

Sign In or Register to comment.

m'Manager

| Let's Build Together a Great App !
If you are a happy user, send me a coffee.
2015 - 2107 © m'Manager.
Powered by VanillaForums, Designed by ThemeSteam

Recent Donations

  • Joni Mueller from https://pixelita.com/ - 63€
  • HeyrmanD from https://locco-palace.be - 25€
  • Patricia from Sjopz.com - 10€
  • AskinSavascisi from wolftech.com - 3€
  • Get In Touch