Hello @joe,

This post is for the @joe and @apmuthu to update their repo.

gl/includes/db/gl_journal.inc

Here there is a function for update_journal

function update_journal($type, $trans_no, $amount, $tran_date, $currency, $reference, $source_ref='', $rate=1,
     $event_date='', $doc_date='')
{
    $sql = "UPDATE ".TB_PREF."journal SET "
      ."`amount`=".db_escape($amount).","
      ."`currency`=".db_escape($currency).","
      ."`rate`=".db_escape($rate).","
      ."`reference`=".db_escape($reference).","
      ."`source_ref`=".db_escape($source_ref).","
      ."`tran_date`="."'".date2sql($tran_date)."',"
      ."`event_date`="."'".date2sql($event_date)."',"
      ."`doc_date`="."'".date2sql($doc_date)."')  // here the '(' should be removed. 
       WHERE `type`=".db_escape($type)." AND " ."`trans_no`=".db_escape($trans_no);

    return db_query($sql, 'cannot update journal entry');
}

852

(10 replies, posted in Items and Inventory)

With the help of item code. everything programmed. So its not good to change. If you wish to change, you have to do it manually with mysql queries.

853

(5 replies, posted in Jobs wanted/offered, non-free offers)

Hope it suites your needs.

Vanigam Theme

or if you are interested with left menu, try this too.

Saai Theme

854

(9 replies, posted in Setup)

Why don't we have an option either in config.php or from sys_pref table ?

That would be good to change it when requires.

may be the query has duplicates, try to run the query separately on direct phpmyadmin or mysql workbench to check the results.

Thank you for the feedback @Apmuthu. I will fix it.

Sorry for the inconvenience, It will work from now.

May be you like my new theme. find it here at Saai Frontaccounting Theme

Great Work @Apmuthu.

Fantastic, I was a bit delayed to send you .

@apmuthu, - I was a bit busy with other works, I need to find the file where i save it. Let me give you soon.

I have done 90% translation for Tamil.  Will it be available in FA repo If i share it here.

I have recently updated my HRM extension with min basis calculations to calculate Salary,Overtime Allowance, Attendance. Which will also have the holidays module to create gazatted holidays on your own desire.

From my HRM you can able to create your necessary allowances. You can have much better breakup formula to setup allowances.

Extended HRM  with Hourly Wage and attendance calculations.

@davidkumi, Why don't you try a new installation with recent one. If the new on works, you can compare the code and get solution for the problem .

865

(11 replies, posted in Announcements)

go here and click download snapshot to get the most recent one from FA Updates.

Download  Lastest one

nothing new idea man, try to trace back the route,you will find the problem.

Actually the 2.4.2 Reference working fine for us, So its ur turn to trace the code and find issue.

Else try a new copy of FA from the new snapshot ans try it separately.

@cambell, that's great to hear.

Within /includes/reference.inc. you can see save function. Within that, you have to check the next iterated reference exist, than call parse next to prompt next reference by skiping the one.

869

(6 replies, posted in Report Bugs here)

The bug you are reporting is throwing on PHP7 and 7.1.  If you want to solve the bug go with is_numeric function to check the given value is number or non number.

error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));

to ommit this error by using this one.

870

(4 replies, posted in Translations)

Restart your xampp(apache,mysql ) server and try again.

ok , than check the sales_order_ui.inc by the line no 361,

 ref_row(_("Reference").':', 'ref', _('Reference number unique for this document type'), null, '', $order->trans_type, array('date'=> @$_POST['OrderDate']));

.

before this line,just use display_error to see the reference,whether its coming here or not.

 display_error($_POST['ref']); 

try and if its not working, trace back the route of reference.

872

(4 replies, posted in Translations)

which means your server apache has not get_text feature enabled or the language is not installed in your apache.

873

(4 replies, posted in FA Modifications)

That's great @Cambell, I guess joe will update the core. Because many people are downloading it from sourceforge. so he has to do next step with your great efforts.

you said automatic increment not working. Now you are saying its iterating , i am getting confused.

What you want to do actually?

The reference is not showing in the sales order form or its showing previous reference number.?

That's fine. But in entire FA we are using it like hard coded And you are thinking about the reports i guess. So the hardcoded method wont be a problem I thought and answered it .