2,626

(23 replies, posted in FA Modifications)

@joe: I agree.
@boxygen: Zip, upload and paste link to changed files for this "feature" so that it can become an extension someday and be available for reference.

2,627

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

@BraathWaate: Good to rely on core functions like the native get_next_trans_no() in the final fix now committed in my repo.

It is attached herewith.

2,628

(1 replies, posted in Reporting)

Either create your own report or manipulate the Excel Report.

2,629

(11 replies, posted in Items and Inventory)

Each Sales Kit has a separate item_code of it's own in FA. The Sales invoice will only reflect the individual items and not the Sales Kit name. In fact, the item_codes table has some redundancy in the description of the Sales Kit name (see attachment)  that is duplicated for each constituent item in it. This normalisation issue may the cause of it's inability to provide the unique auto numbered item_code to the constituent items of a SalesKit when more than one constituent item exists. As the said table has a separate auto-numbered id field manipulating each entry individually is not hampered when just the id of the record is provided. But when several constituent items are inserted in sequence this will be an issue if the actual item_code is not properly coded into them and the next one is invoked each time.

Wonder which field or what logic distinguishes a SalesKit from a normal item......

@joe: this needs investigation.

2,630

(23 replies, posted in FA Modifications)

@joe: is this desirable in the default FA?

2,631

(8 replies, posted in Reporting)

Since a different construct was used in sending the email, it may have been possible that the return from the sending routine is different and that return is what needs to be investigated.

2,632

(8 replies, posted in Reporting)

I have updated the mod file with your changes in #2 post.

The job of the function End() is to provide the said notification which comes but in another page. Lines 1037-1038 in the said function in reporting/includes/pdf_report.inc are:

display_notification($this->title . " " . $this->formData['document_number'] . " " 
    . _("has been sent by email to destination.") . " " . _("Email:") . $emails);

Try to replace the 2 submenu_print statements (in the Add and Update sections) in sales/customer_payments.php with the following and provide feedback:

display_note(print_document_link($payment_no."-".$trans_type, _("&Email This Receipt"), true, ST_CUSTPAYMENT, false, "printlink", "", 1),1);

You may need to echo "<br>"; to adjust spacing of the links.

2,633

(8 replies, posted in Reporting)

Try the fixes in my previous post.

2,634

(8 replies, posted in Reporting)

The following at line 100 in sales/customer_payments.php does not work.

    display_note(print_document_link($payment_no."-".$trans_type, _("&Email This Receipt"), true, ST_CUSTPAYMENT, false, "printlink", "", 1),1);

The following too does not work:

    submenu_print(_("&Email This Receipt"), ST_CUSTPAYMENT, $payment_no, null, 1);

The above alone does not work even with necessary changes made to use $email in reporting.inc and rep112.php.

Try the consolidated changes for the bleeding edge attached and provide feedback.

$hide_inaccessible_menu_items is for hiding menu items inside the tabs .
The commenting out of the add_application() is for hiding menu tabs at the top.

2,636

(5 replies, posted in Report Bugs here)

The db connection scripts reside in the includes/db/ folder.

The currently acceptable db drivers there are:

connect_db_mysqli.inc
connect_db_mysql.inc

Line 15 in the MySQLi driver file above is:

$db_last_inserted_id = 0;

This needs to be ported to the MySQL driver too.

The function db_query() in both driver files have a line (78/79):

        if ($SysPrefs->select_trail || (strstr($sql, 'SELECT') === false)) {

It is better coded to make the SELECT be the beginning part of the search string and case insensitive as well (stristr ?) like:

        $sql = trim($sql);
        if ($SysPrefs->select_trail || (preg_match('/^SELECT/i', $sql) === 0)) {

According to the PHP Manual:

preg_match() returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match.

The Bank does not care if there is an invoice or not but the Account books do.

The standalone POS's data in an excel sheet needs to be appropriately imported into FA and invoices printed there from.

Sales -> Direct Invoice automatically generates the Sales Quotation, Sales Order, Delivery Order and the Sales Invoice.

You might want to use a POS like OSPOS and then run a cron job / db trigger to keep importing the transactions from time to time into FA.

2,639

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

@BraathWatte/bdika: what a way to "cheat" the system. Needs a pure blooded accountant to wade thru this without getting confused.

I'll now await the outcome.

Refer this post for case sensitivity of the 'SELECT' part of the sql.

Just wiki-ed the presence of the good old secondary repo at http://devel.frontaccounting.com/git/ where some old extensions reside - maybe someone can polish them for use in FA 2.4.x.

@itronics: looks like every entry screen that has a reference needs to be fixed in a similar way and the empty.po generated again.

2,641

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

Looks like the id's start from 1 each time.

Thanks @joe.

2,643

(7 replies, posted in Installation)

Take a backup from FileZilla before uploading the new files.

2,644

(11 replies, posted in Announcements)

Post Releases fixes for FA 2.4.2.

Pending Fixes:
1. db connection scripts fixes - Not accepted due to unwritten coding policy of uppercase SQL keywords.
2. Unable to Edit or Void a Credit Note - Development postponed to later minor release.
3. Xchg Rate fix and other PHP 5.6.32+ and 7+ issues - Will get fixed along with other PHP 7 issues in upcoming minor release.
4. Multiple Sales Orders into Single Delivery - Feature Request - Currently keep editing a Single Sales Order till delivery. Development postponed to later minor release.
5. Move add_access_extensions(); to header.inc from all themes and extensions - being studied for Ajax and related security issues.

Users are encouraged to test and comment in the appropriate forum topics on my proposed changes to the DB Schema for index optimisation and field type rationalisation.

2,645

(7 replies, posted in Installation)

Setup -> Backup/Restore will provide the sql backup.
Copying the webroot of FA in FTP mode (or zip the web folder that has the FA code) will save the FA codebase your are using.

The changed files zip is available in the announcement for FA 2.4.2 - see posts #4 and #12.

2,646

(7 replies, posted in Installation)

In general, overwriting with the FA 2.4.2 code for FA 2.4.1 should do the job. Backup (FA code and mysql) and try it..... Take the cutting edge one from Git/Github.

@itronics, thanks for the reason behind the slight inconvenience of re-submission. When would one want to change the reference the form automatically provides?

The wiki too needs it in the sidebar.

2,649

(6 replies, posted in Banking and General Ledger)

The lines 55-67 of includes/references.inc

$refline_placeholders = array(
    'MM' => 'date',
    'YY' => 'date',
    'YYYY' => 'date',
    'UU' => 'user',
     'P' => 'pos',
//     FIXME:  for placeholders below all the code should work, but as the ref length is variable,
//       length specification in placeholder format should be implemented.
//    'C' => 'customer',
//    'B' => 'branch',
//    'S' => 'supplier',
//    'L' => 'location'
);

Hence {UU} is the logged in user.

The method function _parse_next() gets the next formatted reference.

You can upload files anywhere and provide the link in the forum too.