4,726

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

Make sure that the "_ref" fields have no spaces in them. When a new contact is entered, spaces creep into the crm_persons.ref field.

4,727

(1 replies, posted in FA Modifications)

Another issue that introduces duplicate customer branches is the retention of last edited branch in the bottom update form even when a new customer / branch is chosen and the listing display stands refreshed correctly. When a new customer is chosen after adding/editing one branch in the branch edit form, instead of staying put in the branch edit form, it should show a new branch form.

4,728

(10 replies, posted in Wish List)

We now need to synch these changes into the default Chart of Accounts:

INSERT INTO `0_sys_prefs` VALUES ('default_quote_valid_days', 'glsetup.sales', 'smallint', 6, 30);

The code is done to auto create this entry but adding it to the CoA's is just for completion sake.

@geoffreywalton: That is a good catch!

You're right about the orders <==> sales nomenclature - it had me stumped for a while in the early days, but I guess it was to distinguish it from the "sequential order" connotation.

The function start_table() is in the includes/ui/ui_controls.inc file that must have gotten the constants after the original osc_import (and now osc_orders) extension was made.

@joe: You may take the version bumped commit from my GitHub repo.

$trial = (isset($_POST['trial']) && ($_POST['trial']!=null)) ;

is way better.

4,731

(10 replies, posted in Wish List)

Excellent idea.
@joe: can we get a new entry into the sys_prefs table and company preferences form for this and it's fallback in the config.php or in the scripts for backwards compatibility?

What is the meaning of $trial = !null; ? Is the value true or false? Is it's value dependent on PHP version used?

This logic can certainly do with some housekeeping.

4,733

(1 replies, posted in Setup)

Upload the en_US-new.sql into your company/#/backup folder Setup=>Backup & Restore => Restore and change the admin password to what you want. Then edit the fiscal years table to have what data you want and then begin operations within the GUI.

Alternatively check what extra data is in the current backup as compared to the en_US-new.sql file and strip them out - beware of resetting all AUTO_INCREMENT values to 0 (zero) so that they auto synch themselves to the next available primary key number.

The fifth step has an incomplete line:

If you get error messages about non-existant fields then the

What is the version of your PHP?

4,736

(14 replies, posted in Translations)

The individual language files are also available with all extensions in my Unofficial GitHub Repo.

4,737

(4 replies, posted in Setup)

Set the way your browser treats the PDF extension - auto download, display in browser or ask for action choice - different naming of these labels in different browsers. Also enable js in browser and works well in default FireFox installation.

Check the FA Support Page in the Wiki for a list of geographically dispersed FA support entities.

Check this forum post and this extension repo.

Is it because delivery date is hardcoded as yesterday, current or future date and was considered not necessary to be editable?

4,741

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

@geoffreywalton: You're right! All CoA's should be synched with the standard US ones in FA. This is the reason why I wanted to separate out the schema from the INSERTs but the devs overruled it then on grounds of character encoding if I remember right.

All CoA schemas and the order of their fields in the INSERTs should be synched with the standard US CoAs present.

Also the upgrade (alter) sql(s) should be updated with the AFTER specific field wherever necessary.

4,742

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

@geoffreywalton: Thanks for the checkout.

The payment_terms sql typo stands corrected as also the heading for the persons import para.

AUTO_INCREMENT=@person_id also does not work. I too actually used only hardcoded values and assumed that expressions would be acceptable. The wiki article now stands corrected with an assignment of zero (0) value that automagically acquires the correct value.

Which fields in which statement(s) is not in the same order as those in the FA table definitions? Attached one instance that differs from your post.

Being a pure SQL solution, skipping the header was not an easily accommodate choice.

The reason why the surname was not included was that during creation of a new customer in FA, the branch gets auto populated with the same value as the Customer Name for the "name" field and blank for the "name2" field. These sqls were designed to mimic the default FA behaviour. Subsequent edit of the branch and the associated contacts is where the "name2" can be added in. This will be evident when you import multi branch customers where an extra HQ branch is created first where no surname (name2) is envisaged, but rather a space for accommodating longer client company names. This can however be mitigated by selectively using the name2 field for the extra branches added alone.

No CSV import was done in phpMyAdmin - only tsv (tab separated values) was used in LOAD DATA LOCAL constructs. The usage of linefeeds (\n) especially in the addresses will need to be checked.

The currency used is also only the default company currency and individual cases can be SQLed in or manually edited if only a few.

The first iteration of sqls was to add in the customers one by one, take the last inserted id and then progress to the next table - it was very slow and painful (SAP!).

The last 4 fields of the temporary cust_list table are declared as DEFAULT NULL as they will have to be filled in manually (or possibly with some more sql magic) instead of by some tsv import, though in my case I manually did it in excel and then imported it.

The debtor_ref and branch_ref fields are VARCHAR(30) fields that have to be manually prepared to be unique and meaningful generally alphanumeric being similar to the actual Customer / Branch names without spaces and special characters (hyphens and underscores allowed) since the dropdown boxes have limited width onscreen.

Using a MySQL client like SQLyog (community edition is free) makes it a lot easier.

4,743

(1 replies, posted in Wish List)

A rudimentary CRM is available in FA. Specialised CRMs like vTiger are available for those with more detailed CRM needs. The workflow you describe is typical of an issue management system where iterative user interaction in target fulfillment is desired.

In the software design process we have Bug Trackers like MantisBT that FA uses for it's evolution.

Having it in FA would needlessly complicate a simple to manage ERP that FA is designed to address. There are already 79 tables in FA.

There are other mature projects in the Project Management space that can be leveraged for product development needs. If some simple table structure can be envisaged, then a basic product development module can be developed as an extension.

4,744

(48 replies, posted in Setup)

Spending your Christmas / New Year holidays working for a brand new FA release version is indeed a fine gift to the FA Community.

Thankyou indeed!

This will hopefully avoid having to support multiple versions and focus resources in maintaining just one really good version going forward.

4,745

(4 replies, posted in Installation)

After FrontAccounting installation and in existing installations, remove redundant indexes using:

ALTER TABLE `0_cust_branch` DROP INDEX `branch_code`;
ALTER TABLE `0_supp_trans` DROP INDEX `supplier_id`;
ALTER TABLE `0_supp_trans` DROP INDEX `type`;
ALTER TABLE `0_supp_trans` DROP INDEX `SupplierID_2`, ADD INDEX `supplier_id` (`supplier_id`, `supp_reference`);

Change table prefix as needed and apply for all companies.

Read more about it here.

4,746

(48 replies, posted in Setup)

Redundant Indexes removed in FA v2.4 in my unofficial GitHub Repo and shown for v2.3 in attachment.

4,747

(48 replies, posted in Setup)

It has been in internal testing for years now and to speedup delivery let us involve the community into doing so. It just needs a separate forum section to collimate it.

I have now completed the new company config_db.php updation fix as well for the new MySQLi driver.

A rudimentary GitHub Wiki with Installation and Menus Screenshots has been uploaded.

4,748

(48 replies, posted in Setup)

@joe: Please open a separate section for this.

Tried installing v2.4 and found quite a few errors that was possibly stalling others from testing it. Attached is one such screenshot of an issue that has been solved today.

The SF Hg Repo of the Unstable v2.4 branch was last synched at FA v2.3.21 in May 2014 and later patched in Sep 2014.

I have opened a new Unofficial GitHub Repo for FrontAc v2.4.

The following commits are currently needed to get it working:

SQL Fixes

Code Fixes

Anyone using v2.4 in production?

4,749

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

This has been supplemented with a pure SQL means documented in the Wiki.

Each time the FA Extensions Repo gets updated, lots of charts, extensions, themes and languages get their version numbers incremented with no change in any of their core files. The only files that do change are those in the _init folder having the version and description config file and the SHA1sum hash files file.

This only makes tracking changes in these files that much slower.

My unofficial GitHub repo was setup primarily for this reason to track changes in addons and it has spawned 42 forks till now benefitting scores of users and helping the community learn and develop pkgs for themselves easily.

It would be good to synch FA v2.4 unstable branch with the stable one since several commits have occurred in the more than couple of months since the former was last updated.