Jump to content

Invoice Delivery Log Showing Improper Data


Recommended Posts

Posted

Viewing Tools -> Logs -> Invoice Delivery

The Date Sent column shows valid date/time where invoices have actually been delivered.  Which is good.

The bug is that this column will show whatever the current date/time is for ANY records (paper or email) that have NOT yet been sent.  If I am viewing this log, I should NOT see a date in this column if the invoice has NOT been delivered yet.  In this scenario, the Date Sent column should be something like 'Not Yet Attempted', or '-', or something similar to reflect that the associated invoice is EXPECTED to be delivered but has NOT YET been attempted/sent.

Easy fix is in the /app/views/admin/default/admin_tools_loginvoicedelivery.php file.  Line #38 should be changed FROM:

   <td><?php echo $this->Date->cast((isset($invoice_logs[$i]->date_sent) ? $this->Html->safe($invoice_logs[$i]->date_sent) : null), 'date_time');?></td>

TO SOMETHING LIKE:

    <td>
    <?php if( isset($invoice_logs[$i]->date_sent) ) {
        echo $this->Date->cast( $this->Html->safe($invoice_logs[$i]->date_sent), 'date_time');
    } else {
        echo 'Not Yet Attempted';
    }
    ?>
    </td>

The above has addressed the issue for one of our clients but it would be best if Blesta look at this as an official edit of their template file so future updates will have this correction..

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...