Updated extension in last post with heading line fixed in template. I thought there was an export feature in it. The import_items extension has it though.
2,177 12/22/2017 03:07:22 pm
Re: Import Transactions (154 replies, posted in Modules Add-on's)
Overwrite the corresponding files in <FA webRoot>/modules/import_transactions folder with the ones updated and attached here.
Export a set of transactions and use that format for importing transactions.
2,178 12/22/2017 03:01:38 pm
Re: is there youtube showing this? (2 replies, posted in Reporting)
You have quoted from the Wiki.
There is no YouTube video for this. You can create one and paste the link here.
2,179 12/22/2017 02:50:26 pm
Re: Reverse order of dropdown list from input box (9 replies, posted in FA Modifications)
In the text box before the dropdown select box for Items, only the item code can be typed. The dropdown will show the item name only and will be prefixed with the item code only if the "Show Item Codes" checkbox is ticked in the Preferences menu. Where do you get/see "symbols"?
If however, in Setup => Company Setup, the Search Items checkbox is ticked, then the textbox besfore the Items dropdown can be searched by Item Name when by Ajax, the dropdown will get filtered.
2,180 12/22/2017 07:31:26 am
Re: Auto Fill List of Values in a Text Input Fields (30 replies, posted in Modules Add-on's)
Yes. The Ajax should be out of the "if" construct.
Attached is the "beautified" page.
2,181 12/22/2017 03:37:13 am
Re: Auto Fill List of Values in a Text Input Fields (30 replies, posted in Modules Add-on's)
It is possible that somewhere in your code prior to displaying the form field, you are doing something like this:
$_POST['item'] = '';
or
$_POST['item'] = $myrow["item"]; // which may be blank
Also, if the third parameter of the function text_row() is null, then the value of the field is automatically taken from the $_POST array as seen in the function text_input's second parameter which it becomes in includes/ui/ui_input.inc file.
2,182 12/22/2017 01:35:31 am
Re: Import Transactions (154 replies, posted in Modules Add-on's)
Your import file does not have the data in the correct format - the third ($memo) and last but one ($person_id) fields are missing in your data file's records.
The function get_standard_cost() was available in FA 2.3, being defined in it's includes/db/inventory_db.inc and can be inserted somewhere in the module's file: modules/import_transactions/includes/import_sales_order_entry.inc as:
function get_standard_cost($stock_id)
{
$sql = "SELECT (material_cost + labour_cost + overhead_cost) AS std_cost
FROM ".TB_PREF."stock_master s WHERE stock_id=".db_escape($stock_id);
$result = db_query($sql, "The standard cost cannot be retrieved");
$myrow = db_fetch_row($result);
return $myrow[0];
}
where you can replace the function name with it in the module's file.
If you wish to use the current code base, the above function has now been superseeded (on 2016-02-23 in FA 2.4 RC1) in the same file by:
function get_unit_cost($stock_id)
{
$sql = "SELECT material_cost
FROM ".TB_PREF."stock_master
WHERE stock_id=".db_escape($stock_id);
$result = db_query($sql, "The standard cost cannot be retrieved");
$myrow = db_fetch_row($result);
return $myrow[0];
}
The unit labour cost and unit overhead cost are also used now and hence the unit cost is sought to denote the unit material cost only.
Try the attached one that follows the latter code that leverages the currently available function.
@joe: which method is recommended?
2,183 12/21/2017 04:08:39 pm
Re: Load Error of Items in Items Tab (4 replies, posted in Items and Inventory)
Compare your php.ini and my.cnf / my.ini files between the ubuntu 16 and debian 9 installs. Timeouts may be an issue with php.ini settings. MySQL sql mode strict settings too can be an issue.
2,184 12/21/2017 03:13:26 pm
Re: new report (21 replies, posted in Reporting)
The updated extension is attached with whitespace synch with rep101.php and all CRLF converted to LF line endings.
Added to the FA24extensions repo.
2,185 12/21/2017 03:11:35 pm
Re: Auto Fill List of Values in a Text Input Fields (30 replies, posted in Modules Add-on's)
You may have to create / use a $_SESSION variable for it and / or enable autofill in the browser settings.
2,186 12/21/2017 03:08:26 pm
Re: Reverse order of dropdown list from input box (9 replies, posted in FA Modifications)
Which dropdown are you referring to and where?
2,187 12/21/2017 02:28:28 pm
Re: Can i create partner account for his equity on expense and sale base? (1 replies, posted in Banking and General Ledger)
Share Capital is what you are looking for. Profit/Loss distribution to the respective partners is like passing a shareholders dividend journal entry. Yes, FA fully supports partnership firms / partners accounting.
2,188 12/21/2017 02:26:44 pm
Re: Customers visible after inactive (4 replies, posted in Accounts Receivable)
This must be used with caution when there are transactions for the inactive customers / suppliers and when needed to be in future journal transactions.
2,189 12/20/2017 12:35:56 pm
Re: new report (21 replies, posted in Reporting)
A salesman is allotted to each customer branch. All sales to that customer branch will be under the specified salesman's log for commission / reporting purposes. If a sales order / invoice is made out to a customer's branch, the salesman can be looked up.
Report 101 does not have any salesman's column at all. The sql that generates the transaction list for the report is from lines 74 to 88 in the rep101.php - you can choose to link the cust_branch table in to filter the salesman you want.
2,190 12/19/2017 10:36:45 am
Re: Discount on Purchase Order, Receive, Supplier Invoice (11 replies, posted in Accounts Payable)
FA does not support discount on line items for purchases - it is there in sales invoices and reports.
An extension is currently needed to accommodate purchase order discounts for line items.
Purchase Invoice discounts are entered when payment is made for the whole invoice unless you choose to pay per line item when what you need gets accommodated as amounts and not as % discount.
2,191 12/19/2017 10:29:04 am
Re: how to increase dimension levels more than two (9 replies, posted in Dimensions)
All months in 2017 is best done using the date range in the reports.
The cost centres can be assigned Dimension 1 and can be filtered from there and / or with date range filter.
Using Summary choice in reports will give what you need as well.
The tags will be useful to track a certain set of transactions say pertaining to one specific tour group even across fiscal years.
2,192 12/19/2017 04:38:01 am
Re: Slim REST API module for FA 2.4.x - No Composer (18 replies, posted in Modules Add-on's)
Latest attached.
2,193 12/19/2017 04:36:27 am
Topic: Installed Third Party extension version display (1 replies, posted in Modules Add-on's)
Attached is mod to display the version of third party extensions by including a _init/config file in the module.
@joe: can commit it.
2,194 12/19/2017 04:32:20 am
Re: GL account setup profit/loss retained earnings (5 replies, posted in Banking and General Ledger)
P&L is calculated at the end of the year by taking the balance of all expense and income accounts and stock differentials and then auto inserted. Only the Trial Balance and computed P&L are used during the year in a similar manner. What you want is a hierarchy of P&L accounts in the Accounts Master. You are free to change the nomenclature for the Account Classes, Account Groups and Account heads.
Since most non African FA users are not familiar with the OHADA implementation, I had to look it up and provide some links for others to evaluate and advise quickly.
Look up the FA users list and see if any are from your region willing to assist.
Alternatively, upload an excel sheet of your current OHADA accounts master and their desired classification and provide the link here to assist others to advise.
@joe: Providing a native OHADA Chart would increase the FA footprint into West and Central Africa tremendously.
2,195 12/18/2017 08:14:40 pm
Re: Missing system locale: ar_EG.utf-8 (1 replies, posted in Installation)
https://blog.remibergsma.com/2012/07/10/setting-locales-correctly-on-mac-osx-terminal-application/
https://apple.stackexchange.com/questions/245287/how-can-i-install-es-ar-locale-on-osx-el-capitan
https://serverfault.com/questions/453239/is-it-possible-to-install-a-new-locale-on-mac-os-x-server
https://stackoverflow.com/questions/9991603/add-a-locale-in-mac-osx
2,196 12/18/2017 06:18:25 pm
Re: Amount in words in Invoice (28 replies, posted in Accounts Receivable)
What is the standard procedure to include it in the invoice? Must we edit it like here or in the repXXX file in any different way? Should it be some choice in the company setup as candidates for the sys_prefs table?
2,197 12/18/2017 03:57:04 pm
Re: Amount in words in Invoice (28 replies, posted in Accounts Receivable)
@rafat: FA now uses Sourceforge's Git and is mirrored on GitHub.
If the price hook exists for your locale, then it would automatically come. Only otherwise will the rest of the function price_in_words be executed when the default for the Invoices is needed to be overridden by my mod.
A more elegant mod version for Line 865 would be:
if (!in_array($document, array(ST_SUPPAYMENT, ST_CUSTPAYMENT, ST_CHEQUE, ST_SALESINVOICE))
The function price_in_words() that finally gets invoked if present is available as a skeleton in lang/new_language_template/locale.inc.
@joe: any reason why the Invoice did not default to the words like the others?
2,198 12/18/2017 03:45:29 pm
Re: GL account setup profit/loss retained earnings (5 replies, posted in Banking and General Ledger)
Start from a blank chart master, chart class and chart groups set of tables and manually put in whatever classification you want. You can nest the Group's Accounts as well as desired to get your OHADA CoA.
In your parlance, you mean that your "fiscal result" other than income tax is FA's native P&L account. All the others can be nested in the P&L.
From Wikipedia:
OHADA is a system of corporate law and implementing institutions adopted by seventeen West and Central African nations in 1993 in Port Louis, Mauritius. OHADA is the acronym for the French "Organisation pour l'harmonisation en Afrique du droit des affaires", which translates into English as "Organisation for the Harmonization of Corporate Law in Africa".
ODOO Apps supports OHADA natively and is developed on GitHub, being based on Python.
This French Article may be useful.
Will this CoA meet your needs?
OHADA Accounting Plans
See the wiki for more info.
2,199 12/18/2017 07:47:20 am
Re: Cannot download repo index file. (3 replies, posted in Reporting)
Check if you have the OpenSSL extension enabled in your php.ini file and if you uncommented out the dll / so file, restart the webserver.