That's great! See if you can extend it to importing customers as well or make another one for it.
4,977 10/06/2014 05:37:52 pm
Re: Importing customer csv data in FA v2.3.6 (65 replies, posted in Setup)
Please pass on the old customer import from csv module so that we can make it up-to-date. It does not seem to be available in the extensions repo.
On adding a customer through the FA Add Customer form the following SQLs are generated:
INSERT INTO `2_crm_persons` VALUES
('2', 'Justin Zhou Lu', 'Justin Lu', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '0');
INSERT INTO `2_crm_contacts` VALUES
(3, '2', 'cust_branch', 'general', '2')
, (4, '2', 'customer', 'general', '2');
INSERT INTO `2_cust_branch` VALUES
(2, '2', 'Justin Zhou Lu', 'Justin Lu', '', '1', '1', '', 'DEF', '1', '', '4510', '1200', '4500', '1', '0', '', '0', 'Male', '0');
INSERT INTO `2_debtors_master` VALUES
('2', 'Justin Zhou Lu', 'Justin Lu', NULL, 'PQ453625N', 'USD', '1', '0', '0', '1', '4', '0', '0', '0', 'Male', '0');Attached is what I understand to be the ERD between these tables (they are not fully depicted in the FA v2.3 ERD pdf).
Joe / Janusz - please explain if these relationships are correct with the 2_crm_contacts.type field enforcing some sort of filter.
There is no field for gender and CitizenID Number of the person in FA as of now.....GST / VAT Number field can be used for Citizen ID Number for now whilst gender can be placed in the Notes field but these land up in the 2_cust_branch and 2_debtors_master tables!
The id field of the 2_crm_contacts table does not seem to be referenced anywhere and is just used for uniqueness for view/edit purposes.
The cust_branch.branch_ref, debtors_master.debtor_ref and the crm_persons.name (and not the crm_persons.ref) are in the select boxes.
4,978 10/05/2014 07:19:18 am
Re: Item price cannot be changed on sales invoice (3 replies, posted in Accounts Receivable)
Wiki-ed it.
4,979 10/03/2014 10:03:12 am
Re: Remove unused modules (4 replies, posted in Setup)
Hiding Menu Tabs might make sense. Otherwise, if you want to have an All-Journal system, then stop the other application files from being included and being invoked to be loaded in frontaccounting.php (comment out what is not needed in the following code snippet from the said file):
..
..
include_once($path_to_root . '/applications/customers.php');
include_once($path_to_root . '/applications/suppliers.php');
include_once($path_to_root . '/applications/inventory.php');
include_once($path_to_root . '/applications/manufacturing.php');
include_once($path_to_root . '/applications/dimensions.php');
..
..
$this->add_application(new customers_app());
$this->add_application(new suppliers_app());
$this->add_application(new inventory_app());
$this->add_application(new manufacturing_app());
$this->add_application(new dimensions_app());
....4,980 10/03/2014 09:57:40 am
Re: Edit bank transfer (12 replies, posted in FA Modifications)
Joe please add this.
4,981 10/03/2014 09:56:20 am
Re: import multiple items adjustment (4 replies, posted in Modules Add-on's)
any reason why person_id is a tinyblob?
4,982 10/03/2014 09:53:41 am
Re: Session error (2 replies, posted in Report Bugs here)
Set your (currently error causing path) session path to be somewhere under your writeable path in the php.ini and make sure it is writeable by the web server user.
Otherwise, make sure the stated /var/php_sessions folder is created and writeable by the web server user.
4,983 10/03/2014 09:48:30 am
Re: Soporte en Español (12 replies, posted in Jobs wanted/offered, non-free offers)
Compare the Database backup schema with the CoA sql used and see what has changed and alter the db structure accordingly.
Be careful with any extensions used and their default data as well.
====
Google Translate: ![]()
Comparar el esquema de copia de seguridad de base de datos con el sql CoA utilizado y ver lo que ha cambiado y alterar la estructura db en consecuencia.
Tenga cuidado con las extensiones utilizadas y sus datos por defecto también.
====
4,984 10/03/2014 09:42:19 am
Re: Release 2.3.22 (7 replies, posted in Announcements)
Additional fixes after release of FA v2.3.22 are attached to this post.
Other mods are in my Unofficial Git Repo.
4,985 10/03/2014 09:31:39 am
Re: Release 2.3.22 (7 replies, posted in Announcements)
The following new config variables have been introduced in FA v2.3.22:
/* Show average costed values instead of fixed standard cost in report, Inventory Valuation Report */
$use_costed_values = 0;
/* Print Item Images on Sales Quotations. Set to 1 if so. */
$print_item_images_on_quote = 0;
/* UTF-8 font for Business Graphics. Copy it to /reporting/fonts/ folder. */
$UTF8_fontfile = "FreeSans.ttf";Attached is the changed filesset. No changes to DB.
4,986 10/03/2014 09:24:24 am
Re: Appreciation of Assets (1 replies, posted in Modules Add-on's)
Negative Depreciation should work like appreciation - please let us know.
Hope you have trigger permissions for the db.
4,987 10/03/2014 09:23:04 am
Re: Creditors (1 replies, posted in Banking and General Ledger)
What type of creditors are you referring to and what different kinds of "management" are you intending?
4,988 10/03/2014 09:21:56 am
Re: Ajax login (3 replies, posted in Installation)
Either use some REST API or do a curl post into FA.
4,989 10/03/2014 09:16:06 am
Re: Edit Bank Transfer (5 replies, posted in Banking and General Ledger)
Joe / Janusz - this needs to be in the core. Thanks @cambell!
4,990 10/03/2014 09:12:07 am
Re: BIG WISH! Negative amounts on sales order lines and bank payments (5 replies, posted in Wish List)
Why not buy back the empty ones for a price with/without VAT?
4,991 10/03/2014 09:09:28 am
Re: pdf downloads (2 replies, posted in Setup)
You might want to generate it with a timestamp if it is entirely random, but yes, it needs to be renamed manually for now.
4,992 10/03/2014 09:08:07 am
Re: Could not open' install extensions, themes (5 replies, posted in Setup)
Temporary fix is here:
https://www.drupal.org/node/2057703
4,993 10/03/2014 09:04:09 am
Re: I have a custom module for anonymous login restrictions (1 replies, posted in Modules Add-on's)
I could not yet find a link on your website for it. Did you tag it properly? An explicit link in the forum would be nice.
4,994 10/03/2014 08:55:39 am
Re: Sample CSV/Excel file for Items import (5 replies, posted in Items and Inventory)
When you exported the csv file you had some earlier entry - delete it in the csv and populate the csv with other items that have not been entered as yet and then import it.
4,995 09/25/2014 08:24:01 pm
Re: LC_ALL locale issue fills up tmp/errors.log file (1 replies, posted in Installation)
A reboot of the Debian machine now shows:
# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=And all works well!
4,996 09/25/2014 07:50:15 pm
Topic: LC_ALL locale issue fills up tmp/errors.log file (1 replies, posted in Installation)
By default a Debian System has the locale as "C" and the output of locale bash command is:
# locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=This means that when testing for LC_ALL we will always get it as false in the includes/lang/gettext.php:
function set_language($lang_code, $encoding)
{
putenv("LANG=$lang_code");
putenv("LC_ALL=$lang_code");
putenv("LANGUAGE=$lang_code");
//$set = setlocale(LC_ALL, "$lang_code");
//$set = setlocale(LC_ALL, "$encoding");
// cover a couple of country/encoding variants
$up = strtoupper($encoding);
$low = strtolower($encoding);
$lshort = strtr($up, '-','');
$ushort = strtr($low, '-','');
if ($lang_code == 'C')
$set = setlocale(LC_ALL,'C');
else
$set = setlocale(LC_ALL, $lang_code.".".$encoding,
$lang_code.".".$up, $lang_code.".".$low,
$lang_code.".".$ushort, $lang_code.".".$lshort);
setlocale(LC_NUMERIC, 'C'); // important for numeric presentation etc.
if ($set === false)
{
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') // don't do this test if server is WIN
return 0;
$str = sprintf('language code "%s", encoding "%s" not supported by your system',
$lang_code, $encoding);
//$err = new GetText_Error($str);
//return PEAR::raise_error($err);
return raise_error("1 " . $str);
}
//return 0;
}This raises the error in tmp/errors.log each time the FA scripts are executed:
[26-Sep-2014 00:44:58] 1 language code "en_US", encoding "iso-8859-1" not supported by your systemCommands tried to no avail:
locale
locale-gen
locale-gen en_US
dpkg-reconfigure locales
Contents of installed_languages.inc:
$installed_languages = array (
0 =>
array (
'code' => 'C',
'name' => 'English',
'encoding' => 'iso-8859-1',
),
1 =>
array (
'code' => 'en_US',
'name' => 'English US',
'encoding' => 'iso-8859-1',
'path' => 'lang/en_US',
),
);
$dflt_lang = 'C';lang/en_US/LC_MESSAGES/en_US.mo exists.
Possible solution link:
http://www.gnu.org/software/libc/manual/html_node/Setting-the-Locale.html
where it is suggested to make it:
if ($lang_code == 'C')
$set = setlocale(LC_ALL,'');
else
..
..4,997 09/25/2014 07:44:48 pm
Re: Trial Balance (3 replies, posted in Reporting)
The "Only Balances" Checkbox.
4,999 09/25/2014 12:22:43 pm
Re: Local Repo (9 replies, posted in Modules Add-on's)
My GitHub Repo has been updated with the latest extensions.
5,000 09/25/2014 04:00:31 am
Re: Same Security Identifies issue (1 replies, posted in Modules Add-on's)
The wiki has been updated with how FA handles such issues by either assigning unique Security Areas (>=100) or overriding core functionality (when < 100).
Hence extension developers are advised not to hardcode any logic based on Security Area Code (number) but rather on their names.
