@sikumbang - the translation is  always giving some problems. Especially the utf-8 supported languages. 

There are possible fixes.
1. Your Linux system must be updated with locale.
2. Apache should be enabled with gettext
3. Some fa translations are mismatched with strings in fa. Especially I  can tell one thing. From login page the password was not fetched the string properly with po file.

4. There are bugs in translation file as well.  Truncate it by removing duplicate entries unnecessary commented lines.

577

(7 replies, posted in Announcements)

@Joe if you create a separate repo for development  and provide access to other developers who are active in fa  development.  It would be more productive and more time saving for us  to merge our changes into the core. The final version  you can test and release it to community benefit

Sure I will write my part of changes and bug fixes and ideas too.

ok.So when it will be released  officially.

Even, we can pass the same currency to

 get_diff_in_home_currency($supp_trans->supplier_id, $old_date, $date_, $old_value,     $taxfree_line, $currency); 

this will reduce a bit more

function get_diff_in_home_currency($supplier, $old_date, $date, $amount1, $amount2,$currency=null)
{
    $dec = user_price_dec();
    price_decimal_format($amount2, $dec);
if($currency == null)
    $currency = get_supplier_currency($supplier);
    $ex_rate = get_exchange_rate_to_home_currency($currency, $old_date);
    $amount1 = $amount1 / $ex_rate;
    $ex_rate = get_exchange_rate_to_home_currency($currency, $date);
    $amount2 = $amount2 / $ex_rate;
    $diff = $amount2 - $amount1;
    //return round2($diff, $dec);
    return $diff;
}

As i have seen some queries which unnecesaarily runs within loops or its called multiple times to pass it to another data. There is one recent one I am bring here to update the core makes simple.

/purchasing/includes/db/invoice_db.inc

From the add_supp_invoice function, there is items line foreach which has a function inside it

$currency = get_supplier_currency($supp_trans->supplier_id);

This actually no point to run within items loop, just imagine, if the user add 50 items in one invoice and tries to save. this query runs 49 times unnecessarily.  and also one more thing with the same function.

From this function

function add_gl_trans_supplier($type, $type_no, $date_, $account, $dimension, $dimension2,  
    $amount, $supplier_id, $err_msg="", $rate=0, $memo="")
{
    if ($err_msg == "")
        $err_msg = "The supplier GL transaction could not be inserted";    
        
    return add_gl_trans($type, $type_no, $date_, $account, $dimension, $dimension2, $memo, 
        $amount, get_supplier_currency($supplier_id), 
        PT_SUPPLIER, $supplier_id, $err_msg, $rate);
}

This is acutally calls more than once for a single item. during the same invoice process. here looks this code. 

get_supplier_currency($supplier_id), 

it runs more than 100 times as of my above example.  So its better take out this and pass one more parameter in the

 add_gl_trans_supplier

like this

 add_gl_trans_supplier($type, $type_no, $date_, $account, $dimension, $dimension2,  
    $amount, $supplier_id, $err_msg="", $rate=0, $memo="", $currency=null){
      if ($err_msg == "")
        $err_msg = "The supplier GL transaction could not be inserted";    
    if($currency == null )
        $currrency = get_supplier_currency($supplier_id);
    return add_gl_trans($type, $type_no, $date_, $account, $dimension, $dimension2, $memo, 
        $amount, $currency, 
        PT_SUPPLIER, $supplier_id, $err_msg, $rate);
}

. This will simplify more than 150 query load to server when we submit 50 items invoice.

@Joe,And @Janusz, Hope you guys get the point.

582

(27 replies, posted in Wish List)

We will add it to next core update. @Joe  consider it for next release

This is quite interesting one. I have done similar thing for a FA user. He has more than 1,00,000 items. He brought to with three filtering to narrow down the results to get it. You need to enable search items list from company setup and customize the pop-up search file to capable of filters

584

(13 replies, posted in Reporting)

Maybe the program you have has some mistakes.


If you try this on FA 2.4.6 and tax before price the sub total is useful to show the values of entered items value without tax.

585

(11 replies, posted in Modules Add-on's)

For such kind of non authorised access you can keep session or for auto exchange rate updates. You can write a custom PHP program to update it on cron job link. When you trigger it with cron job to add. If you have more than one company , use config db file and get each company credentials and update it. Don't go with FA session and login for cron jobs

586

(6 replies, posted in Accounts Receivable)

I think FA doesnot allow it like that. for direct invoice, we can choose "Cash Only" mode to collect payment during invoice, or cash sales.

587

(6 replies, posted in Accounts Receivable)

Create a payment term for prepayment and than create sales order with prepayment term. Than goto customer payments.

You can see there the sales order. Make payment for it. Than make sales delivery and invoice for it.

Or you can create direct invoice with prepayment term like boxygen told. These two ways are programmed with prepayment invocies

There are two possibilities, either you have any entries left to void or the standard cost was not updated. Check once again from beginning to end and get solution for it

@barbarian - he also don't know when the entries are created. Because all of them are auto created. This  entries created by the update average cost method. This issue was fixed from 2.4 onwards. So you can compare code between the two version and get it

@zia - you just removed the affected entries. Next you need to update the standard cost for that item. , Than your issues will be fixed.

Yes. this issue will be fixed,if you update to new FA. it was Average cost method issue. and manually, you can remove these entries or you void such a cost update entries. thats the fix for this situation. may be @apmuthu or @joe can provide any other simple solution, lets check their words before following my steps.

look in GL inquries or check in gl_trans table.  You might able to see a "Cost Update" entry which causes this abnormal values in average cost. Similarly i faced such an issue.  But it was happened like 2.4,2 or earlier version.  also specifi your version to trace the issue,

This error occurs, when we select items ,or customers from the drop down on the invoice page. Sometimes it comes after login. looks like a core level js issue. needs to be identified. why it comes sometimes. 

looking developers opinion to identify the issue exactly.

Full error details.

Uncaught TypeError: found[k].className.match is not a function
    at HTMLDocument.document.getElementsBySelector (behaviour.js:25)
    at Object.apply (behaviour.js:6)
    at utils.js:24
    at JsHttpRequest.req.onreadystatechange (JsHttpRequest.js:84)
    at JsHttpRequest.t._changeReadyState (JsHttpRequest.js:71)
    at JsHttpRequest.t._dataReady (JsHttpRequest.js:50)
    at Function.JsHttpRequest.dataReady (JsHttpRequest.js:88)
    at Function.JsHttpRequest._tmp (eval at xr.onreadystatechange (JsHttpRequest.js:104), <anonymous>:1:1237)
    at XMLHttpRequest.xr.onreadystatechange (JsHttpRequest.js:106)

@joe- it's better we can add this change to core. People can write any language in input field

apmuthu wrote:

@poncho1234: Yes, it is @kvvaradha's theme from the link he provided. If your PuroV1 is elsewhere, please provide the link.

@kvvaradha: I tested out on 1440x900 and had to scroll.

may i know which page you have to scroll to see end.

I have increased both font size and space for the rows and columns. Because now a days we can see most of them has good screen size for desktop. If you open this with big ! monitor you can see them in a small space. So In my default theme I gave some extra space as well as changed the Colors to black and white for better look.

597

(13 replies, posted in Report Bugs here)

For me it works fine.  If you  face problem with this. find a better solution for it. we will adapt to your solutions.  I tested it on Linux and Windows.  Both works fine for me

We better add a checkbox there, if its checked, we can remove the tables . else we will leave the tables without deleting them.

@peacecop kalmer: I had several testing with your way of company creations. Looks like if you used same database, for the all companies, the deleted company data's will be erased. If you tried in shared hosting or limited resource hosting, it may failed to complete the delete process.  Also the first company, you cant delete it. thats main company.

For this case, you can go with fresh install, and go with Swedish fresh COA from the begining. So it can be good to use, Always go with separate database for new companies.

@apmuthu, There is a program drawback, if you use the same database for second company,it removes the tables.  and if its new database, then the tables keep it.

We should think which one is right and we have to either allow delete tables, even if its new company. or keep the tables even if it uses the same database.

@joe,write your opinion here,

600

(8 replies, posted in Translations)

@joe- Update it on Core, People can use it from our new versions.