SOME ERROR AFTER UPDATE

aleppos
aleppos
Offline
0
hello
after update to 3.0 i get some error
print button in backend not work

and i change Currencies form € to other one it change in back end but not in frontend

this some of error i get there is other but fix this first
Responses (9)
  • Accepted Answer

    aleppos
    aleppos
    Offline
    Friday, October 06 2017, 04:38 PM - #Permalink
    0
    Other error Invoice # in the back end show only 2018-21815 but the real number 2018-218154

    its a html error need more wide to this
    The reply is currently minimized Show
  • Accepted Answer

    aleppos
    aleppos
    Offline
    Friday, October 06 2017, 06:23 PM - #Permalink
    0
    .invoice-num .name-div {
    overflow: hidden;
    white-space: nowrap;
    width: 75px; <<<<<<<<<<<<<<<<<<<<< error
    The reply is currently minimized Show
  • Accepted Answer

    aleppos
    aleppos
    Offline
    Friday, October 06 2017, 06:24 PM - #Permalink
    0
    .invoice-num .name-div {
    overflow: hidden;
    white-space: nowrap;
    width: 75px; <<<<<<<<<<<<<<<<<<<<< error
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 06 2017, 06:42 PM - #Permalink
    0
    hello

    thanks for notifying.

    seems like the error is the currency in the frontend. the other thing is just CSS spacing, easily adjusted.

    I'm looking into it.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, October 06 2017, 06:49 PM - #Permalink
    0
    hello

    can you show me the error you're having with the currency? I tried on my end but can't seem to replicate it.
    The reply is currently minimized Show
  • Accepted Answer

    aleppos
    aleppos
    Offline
    Friday, October 06 2017, 06:54 PM - #Permalink
    0
    i pm u
    The reply is currently minimized Show
  • Accepted Answer

    aleppos
    aleppos
    Offline
    Friday, October 06 2017, 07:08 PM - #Permalink
    0
    in old ver 2.1 i add this line to administrator/components/com_invoices/models/invoices.php
    Cos you can payment more the total amount so this lines can let me see if there is error in invoice
    and you dont add

    //aleppos add
    $row->formatted_total_unpaid = InvoicesHelper::format($row->total_unpaid, $row->currency_before, $row->currency_after);

    if($row->total == (($row->total_unpaid) + ($row->total_paid)))
    $row->formatted_total_test = " OK";
    else $row->formatted_total_test = " Error";
    The reply is currently minimized Show
  • Accepted Answer

    aleppos
    aleppos
    Offline
    Friday, October 06 2017, 07:18 PM - #Permalink
    0
    and in views\invoices\tmpl\default_invoice.php

    {{#ifnot is_quote}}
    paid: {{formatted_total_paid}} - unpaid: {{formatted_total_unpaid}} /{{formatted_total_test}}


    if you dont under stand why i add it just tell me >>> its very import add you this sctips
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 07 2017, 08:24 AM - #Permalink
    0
    hello

    I see what you say, you added some custom coding of your own.

    in the new system, the template is rendered with VUE.js

    this means you need to "translate" the original token to a VUE token, there is a function in helper.php file for this.
    it's called templateToVue
    The reply is currently minimized Show
Your Reply