@joe: Shall we change the core - what of the community and existing users data?
4,376 02/24/2015 12:14:16 pm
Re: Import Items $mb_flag 'S' wrong (8 replies, posted in Modules Add-on's)
4,377 02/24/2015 08:29:57 am
Topic: Import Items $mb_flag 'S' wrong (8 replies, posted in Modules Add-on's)
The file includes/manufacturing.inc had the acceptable values of the $mb_flag variable / mb_flag field:
M => Manufactured
B => Purchased or Bought
D => Services - do not know the rationale for this assignment. Possibly DeStocked or Discard Inventory.
The extensions file modules/import_items/import_items.php lines 246-247:
if ($mb_flag != "S") {
$sql = "INSERT INTO ".TB_PREF."loc_stock (loc_code, stock_id) VALUES ('{$_POST['location']}', '$id')";
Should we change the D => S in the core file includes/manufacturing.inc or S => D in the extension file import_items.php ?
4,378 02/24/2015 04:45:55 am
Re: Sales invoice with VAT Rate column for UK (8 replies, posted in Accounts Receivable)
If only the 32% display on the label side is erroneous, it can be just clubbed together into a string like "All VAT" if the sum of the taxes is correctly displayed on the right hand side in the summary.
4,379 02/23/2015 07:16:59 pm
Topic: Import_Items BOM Import GOTCHA (0 replies, posted in Modules Add-on's)
When importing items into the bom table (type=BOM), if the stock_id exists, then all records with same combination of parent/component will get updated with values from their last UPDATE statement.
Attached is the table schema and the relevant code fragment.
4,380 02/23/2015 08:24:37 am
Re: FA Planet announced (www.faplanet.pl) (17 replies, posted in FA Modifications)
Just check to see the number of database queries you need to display the average page. Placing frequently used menus that do not change often into the database can cause problems when the db hangs or gets bogged down with too many requests - practically on every page refresh or re-construct.
The very appeal of the standard FA menus is it's familiarity and ability to see all links on one page without clicking on any dropdown menus.
Check if your choice of default theme allows you to use FA in an intranet not connected to the internet.
4,381 02/23/2015 08:16:06 am
Re: Achieved 999% (error?) in Profit and Loss statement (4 replies, posted in Reporting)
Then let it be like that except that a constant string can be defined for now as '999' and used in the function Achieve();
Lines 137 to 147 in reporting/rep707.php:
function Achieve($d1, $d2)
{
if ($d1 == 0 && $d2 == 0)
return 0;
elseif ($d2 == 0)
return 999;
$ret = ($d1 / $d2 * 100.0);
if ($ret > 999)
$ret = 999;
return $ret;
}
can be
define('OUT_OF_RANGE', 999);
function Achieve($d1, $d2)
{
if ($d1 == 0 && $d2 == 0)
return 0;
elseif ($d2 == 0)
return OUT_OF_RANGE;
$ret = ($d1 / $d2 * 100.0);
if ($ret > OUT_OF_RANGE)
$ret = OUT_OF_RANGE;
return $ret;
}
The define can be placed into the file that contains the other constants.
The said function Achieve() is duplicated in gl/inquiry/profit_loss.php.
In reporting/includes/excel_report.inc we find that 9999999 is used to represent "infinity".
In includes/ui/ui_view.inc, the value 999999999999 is used to represent "infinity".
In includes/date_functions.inc, the value 9999 is used to represent the max year.
In admin/view_print_transaction.php and admin/void_transaction.php, the value 999999 is used to represent the max ToTransNo.
4,382 02/22/2015 08:09:23 am
Re: Achieved 999% (error?) in Profit and Loss statement (4 replies, posted in Reporting)
Where in the wiki should we indicate this fact. Should a translatable string be used in FA 2.4?
4,383 02/22/2015 04:24:01 am
Topic: Reports customisation caveat for header.inc locational leverage (0 replies, posted in Reporting)
The mere presence of the file company/#/reporting/includes/header2.inc does not ensure that it will be used in reports. It is necessary for the appropriate company/#/reporting/repXXX.php file to be present for it to apply to it.
4,384 02/22/2015 04:18:06 am
Topic: Achieved 999% (error?) in Profit and Loss statement (4 replies, posted in Reporting)
When the denominator is 0, the percentage is shown a 999% for achieved %.
Attached is the screenshot.
Is this the intended denotation for error or out of range values?
4,385 02/22/2015 04:13:01 am
Re: Change font size, colors on Orders, Invoices... (6 replies, posted in Reporting)
Lines 44 to 47 of reporting/includes/header2.inc:
$this->SetDrawColor(205, 205, 205);
$this->Line($iline1, 3);
$this->SetDrawColor(128, 128, 128);
$this->Line($iline1);
control that line color and thickness (height).
4,386 02/22/2015 03:45:16 am
Re: How to add Item's Old Sales Price and New Sales Price? (5 replies, posted in Items and Inventory)
You can leverage the Non Field DB Data functionality for this purpose but will have to manually update the old price in the item's long_description field with something like "OldPrice#31.23" as part of it in a space separated manner.
Alternatively, you can have a new price history table and make an extension for it in FA.
Extending the core FA tables will render upgrades untenable and make it only manually upgradeable.
4,387 02/19/2015 06:21:15 am
Re: Change font size, colors on Orders, Invoices... (6 replies, posted in Reporting)
You might want to refer this link:
function hex2rgb($hex) {
$hex = str_replace("#", "", $hex);
if(strlen($hex) == 3) {
$r = hexdec(substr($hex,0,1).substr($hex,0,1));
$g = hexdec(substr($hex,1,1).substr($hex,1,1));
$b = hexdec(substr($hex,2,1).substr($hex,2,1));
} else {
$r = hexdec(substr($hex,0,2));
$g = hexdec(substr($hex,2,2));
$b = hexdec(substr($hex,4,2));
}
$rgb = array($r, $g, $b);
//return implode(",", $rgb); // returns the rgb values separated by commas
return $rgb; // returns an array with the rgb values
}
4,388 02/18/2015 08:21:35 pm
Re: Change font size, colors on Orders, Invoices... (6 replies, posted in Reporting)
Replace 4 with 3 or 2 in the first and last lines of Lines 149 to 152 in reporting/includes/header2.inc:
$this->fontSize -= 4;
$this->Text($ccol, $Addr1['title'], $icol);
$this->Text($mcol, $Addr2['title']);
$this->fontSize += 4;
4,389 02/18/2015 04:26:06 pm
Re: Importing customer csv data in FA v2.3.6 (65 replies, posted in Setup)
Actually quite a few POS / Billing systems exist as FOSS: phpPointOfSale (now OpenSourcePOS) at SourceForge and SimpleInvoices at GitHub should be nice replacements using PHP/MySQL.
4,390 02/18/2015 04:01:22 am
Re: memo in report (4 replies, posted in Reporting)
Do you want to cocatenate the line memo with the transaction memo? Would that not exceed the space for line items in reports?
4,391 02/18/2015 03:58:36 am
Re: Importing customer csv data in FA v2.3.6 (65 replies, posted in Setup)
@ahrtgnbn: nice decision
@instance: Your existing system is more a Point of Sale than an Accounting System and their developers have simplified operations by restricting it to Direct Sales and Purchase Invoices. Since it has hooks, you may want to make use of it to classify customers for appropriate decisions / reporting leveraging external tables. Not tying up the db directly between the two may alleviate non-high availability issues.
Fixes of a non critical nature will only go into FA v2.4 (dev policy) and they will need to be backported manually - my FAMods is a small step in that direction. Each developer will have their own private repository with their real fixes and only some would sync it to the public one. I cannot have multiple repos as maintaining them is a nightmare and would not benefit from peer review and hence GitHub and the FA Wiki (need to make one in MediaWiki when time permits). This decision may have ruffled a few feathers initially but now over 40 forks of it have proved a tremendous vote of confidence.
4,392 02/17/2015 08:07:58 pm
Re: Dashboard Install info and Screenshots in Wiki (4 replies, posted in Modules Add-on's)
The proper way would be to correct the offending line in the dashboard theme / extension where the $result originated - not to call the function if it was false!
4,393 02/17/2015 08:03:16 pm
Re: Backporting rep107 fix in reporting.inc (2 replies, posted in Reporting)
So the missing 8th parameter (PARAM_7) will not throw errors. Hence, a backport will be "correct", but is not deemed to be necessary. Backporting will help minimize the differences between files in FA 2.4 and 2.3 to make for easier porting forward of fixes in FA 2.3 to 2.4.
4,394 02/17/2015 07:50:04 pm
Topic: Backporting rep107 fix in reporting.inc (2 replies, posted in Reporting)
@joe: Should we not backport the missing parameter fix from FA v2.4 commit to v2.3? rep107 has an extra request form field "Customer Filter" prior to the "Orientation" field.
4,395 02/17/2015 07:32:16 pm
Re: Importing customer csv data in FA v2.3.6 (65 replies, posted in Setup)
1. FA 2.4 is still a work in progress with basic FA v2.3 functionality merged into it and some new features being implemented. The db schema is subject to change and quite a few unused fields in FA v2.3 will be removed and some new ones are now being introduced. For all but very basic small installs, FA 2.4 will be trouble at the moment. Progress on FA 2.4 has been slow (yes, years in the making...) and in bursts and spurts when the key dev @itronics gets the time. Meanwhile changes in FA 2.3 need to be incorporated in FA 2.4 from time to time as well. If you know what you are doing and can manage a separate fork of 2.4 for your trajectory, then it will be suitable. If only basic usage is envisaged and no upgrades are needed, FA 2.4 might just fit the bill.
2. You need items in inventory before they can be chosen to be ordered! If all items in your supplier invoices need not be tracked, then they can be listed as a Service Item with editable description. If you do not wish to track inventory at all (Service Item) and avoid purchase order generation itself, then just maintain journal vouchers - manually compute taxes if any....
4,396 02/17/2015 07:22:40 pm
Re: Dashboard Install info and Screenshots in Wiki (4 replies, posted in Modules Add-on's)
The said Line 98 in includes/db/connect_db.inc is:
return mysql_fetch_array($result);
When the $result is false, ie., no rows from the source SELECT statement, this error results in some PHP versions. There are quite a few functions in the same file that have the same issue. They can be overcome with:
if ($result !== false) return mysql_fetch_array($result);
else return false;
The actual function mysql_fetch_array() above can be replaced with the appropriate function in each of the affected functions in the said file.
4,397 02/17/2015 07:14:25 pm
Re: Importing customer csv data in FA v2.3.6 (65 replies, posted in Setup)
@instance & @ahrtgnbn: Thankyou for your kind words. With 2 dedicated Canadians on the team, FA is now set to scale great heights!
OFX (Open Financial eXchange) can be used directly in FA as it is XML. An extension can be hammered out for data interchange between FA and OFX. That way there need be no CSV conversions / import / export rigmarole.
Where 1-way data transfer is envisaged, the target database can have the affected tables replaced as views of queries based on the source database tables. That way there will be no need for any data exchange at all.
When implementing Inventory, the foreign item codes may cause the item_code tables to have different item_codes for the same stock_id which is intentional to enable different vendors to map their same products onto common stock_id of FA and such item_codes will be used for ordering from the respective suppliers.
FA does not have history of item prices in it's price lists but all goods sold / purchased will have such history in their transaction records.
The wiki will need good cross referencing within it's pages and between the wiki and the forum threads besides summarizing the distilled info from the forums into properly linked wiki pages in context to enable easy and intuitive search / navigation.
When time permits, do test out the FA v2.4 as it is now undergoing some final testing before release. There is a separate thread on it's developmental progress.
4,398 02/17/2015 01:27:54 pm
Re: Front Accounting Sync with vTiger CRM (1 replies, posted in FA Modifications)
Follow this post. The vTiger devs would be helpful if you subscribe to their service.
4,399 02/17/2015 01:26:10 pm
Re: Customer / Supplier type (1 replies, posted in Accounts Payable)
Sales Groups were introduced (settable in the Customer branch only) for filtering Customers but is currently being used only for recurring invoice generation and will be available in reports in FA 2.4 (see another post on this).
4,400 02/17/2015 01:23:49 pm
Re: Page numbering on sales invoice PDF's (12 replies, posted in Accounts Receivable)
Just remove the page number for now or keep resetting the page number in the report when a new invoice is generated.