Try to integrate OrangeHRM into FA. Download OrangeHRM v3.1.1 - 9.2 MB
5,126 03/13/2014 04:10:53 pm
Re: Newbie - In Need of Best Payroll Software (2 replies, posted in Accounts Payable)
5,127 03/13/2014 04:06:40 pm
Re: Release 2.3.20 (9 replies, posted in Announcements)
The attachment in my earlier post are the files that have changed since the previous version besides the SQLs that need to be executed for each company's db tables. These SQLs can be carried out first as they most probably will not have any dependency on your mods and certainly not on the rest of the standard code.
If you have the differences between FA v2.3.19 and you existing modded version, then you can incorporate the differences between the v2.3.19 and v2.3.20 into your modded version. Any extensions you have installed will make the issue a bit more involved just as any table schema changes in your modded version would entail as well.
5,128 03/13/2014 08:06:04 am
Re: Can't Delete a company (11 replies, posted in Report Bugs here)
Notes:
The php function rmdir can be used only if the directory is empty.
When safe mode is enabled, PHP checks whether the directory in which the script is operating has the same UID (owner) as the script that is being executed.
5,129 03/13/2014 07:58:45 am
Re: On going delivery (3 replies, posted in Accounts Payable)
Create a Goods in Transit account and use a journal voucher to move it to the customer when it reaches the destination.
5,130 03/13/2014 07:55:04 am
Re: Negative tax (3 replies, posted in Banking and General Ledger)
The PPH seems to be a tax rebate and can make the real VAT to be 10% - 2.1% = 7.9%.
Hence using PPH adjusted VAT:
Item Value = 10,000
7.9% VAT = 790
=======
Total = 10,790
5,131 03/13/2014 07:48:41 am
Re: £ sign in currency (4 replies, posted in Report Bugs here)
What is the default collation and charset for your db / table / fields specifically the curr_symbol field?
INSERT INTO `0_currencies`(`currency`,`curr_abrev`,`curr_symbol`,`country`,`hundreds_name`,`auto_update`,`inactive`) VALUES ('Pounds','GBP','£','England','Pence',1,0);
or
UPDATE `0_currencies SET currency='Pounds', curr_symbol='£', country='England', hundreds_name='Pence' WHERE curr_abbrev='GBP';
The above code may appear same as yours but for the character set in question it may be binarily different. Hope you have utf-8 collation.
5,132 03/13/2014 07:32:16 am
Re: Release 2.3.20 (9 replies, posted in Announcements)
Diff from FA v2.3.19 to v2.3.20 with fixes from official repo till date along with 2 unreleased fixes as well listed in forum posts 4795 and 4796.
Needs the following SQLs to be executed for upgrades (alter the "0_" to suit your company table prefix):
ALTER TABLE `0_debtor_trans` ADD INDEX `order_` (`order_`);
ALTER TABLE `0_users` CHANGE `query_size` `query_size` TINYINT(1) UNSIGNED NOT NULL DEFAULT 10;
The last sql referred to above is also an unreleased fix discussed at 4634 and is included in the sql files in this diff set and the CHANGELOG has been updated accordingly.
The above code is available in my unofficial FA GitHub Repo.
5,133 03/12/2014 04:01:16 pm
Topic: Convert WHERE to LEFT JOIN in cust_trans_db SQL (2 replies, posted in Accounts Receivable)
--- sales/includes/db/cust_trans_db.inc Mon Mar 10 16:17:12 2014
+++ sales/includes/db/cust_trans_db.inc Wed Dec 25 19:00:22 2013
@@ -377,19 +377,19 @@
Sum(line.quantity-line.qty_done) AS Outstanding,
Sum(line.qty_done) AS Done
FROM "
- .TB_PREF."sales_orders as sorder, "
- .TB_PREF."debtor_trans as trans, "
- .TB_PREF."debtor_trans_details as line, "
- .TB_PREF."debtors_master as debtor, "
- .TB_PREF."cust_branch as branch
- WHERE
- sorder.order_no = trans.order_ AND
- trans.debtor_no = debtor.debtor_no
- AND trans.type = ".ST_CUSTDELIVERY."
- AND line.debtor_trans_no = trans.trans_no
- AND line.debtor_trans_type = trans.type
- AND trans.branch_code = branch.branch_code
- AND trans.debtor_no = branch.debtor_no ";
+ .TB_PREF."sales_orders as sorder LEFT JOIN "
+ .TB_PREF."debtor_trans as trans
+ ON (sorder.order_no = trans.order_) LEFT JOIN "
+ .TB_PREF."debtor_trans_details as line
+ ON (line.debtor_trans_no = trans.trans_no
+ AND line.debtor_trans_type = trans.type) LEFT JOIN "
+ .TB_PREF."debtors_master as debtor
+ ON (trans.debtor_no = debtor.debtor_no) LEFT JOIN "
+ .TB_PREF."cust_branch as branch
+ ON (trans.branch_code = branch.branch_code
+ AND trans.debtor_no = branch.debtor_no)
+ WHERE
+ trans.type = ".ST_CUSTDELIVERY;
if ($_POST['OutstandingOnly'] == true) {
$sql .= " AND line.qty_done < line.quantity ";
Joe, please include this patch in the core FA repo. It moves most of the WHERE statements to the LEFT JOINs.
5,134 03/12/2014 03:37:47 pm
Re: 403 Forbidden (3 replies, posted in Setup)
PM me the details - possibly time for an install from basics instead of thru the not so delicious simple scripts (quite outdated I guess).
5,135 03/12/2014 03:36:27 pm
Re: Size limit on restoring backup (14 replies, posted in Reporting)
FTP the sql file to the company/#/backups folder and then do a restore.
5,136 03/12/2014 03:33:05 pm
Re: Release 2.3.20 (9 replies, posted in Announcements)
Use WinMerge to get your diffs or install TortoiseGit and load in v2.3.19 and then v2.3.20 and possibly a post 2.3.20 snapshot. Easiest way like Joe said is to overwrite the files or do a fresh install and restore your db.
Will try to make a diff soon. Trying to get my version to sync with the official version first. Been away from the FA scene for a while now and need to check out the various changes done.
5,137 03/12/2014 03:30:02 pm
Re: 404 error for pdf reports after upgrade (14 replies, posted in Installation)
PHP 5.4 may have issues as FA v2.3.x is tested for a max PHP version of 5.3.x.
Also your db schema may have to be compared with the latest ones for anomalies.
Try a new install with noting from your backups and see if PDF works. Then migrate your data step by step.
5,138 03/12/2014 03:26:20 pm
Re: Restored hosting account problems with FA (3 replies, posted in Installation)
PM me the details and possibly the sql dump zipped. Will try a schema compare for what might be needed. Did you install any extensions?
5,139 03/12/2014 03:22:22 pm
Re: opening balance (5 replies, posted in Banking and General Ledger)
One Journal voucher addressing all opening balances would contra to a nett of zero currency value.
5,140 03/12/2014 03:20:22 pm
Re: Add New Tab on Top Menu (2 replies, posted in FA Modifications)
Create a module and install and activate it. See the FA Wiki.
5,141 03/12/2014 03:19:07 pm
Re: Item and Inventory (8 replies, posted in Items and Inventory)
It is "FROM" instead of "FORM" in the SQL.
5,142 03/12/2014 03:17:56 pm
Re: Cannot install new extensions—"could not open" (6 replies, posted in Modules Add-on's)
Take them from my GitHub Unofficial Repo - extension files.
5,143 03/12/2014 03:14:55 pm
Topic: gl_db sql convert where to join (2 replies, posted in Banking and General Ledger)
--- gl/includes/db/gl_db_bank_trans.inc Mon Mar 10 16:17:11 2014
+++ gl/includes/db/gl_db_bank_trans.inc Sat Jan 04 02:23:22 2014
@@ -66,17 +66,17 @@
function get_bank_trans($type, $trans_no=null, $person_type_id=null, $person_id=null)
{
$sql = "SELECT bt.*, act.*,
- IFNULL(abs(dt.ov_amount), IFNULL(ABS(st.ov_amount), bt.amount)) settled_amount,
- IFNULL(abs(dt.ov_amount/bt.amount), IFNULL(ABS(st.ov_amount/bt.amount), 1)) settle_rate,
- IFNULL(debtor.curr_code, IFNULL(supplier.curr_code, act.bank_curr_code)) settle_curr
+ IFNULL(ABS(dt.ov_amount), IFNULL(ABS(st.ov_amount), bt.amount)) AS settled_amount,
+ IFNULL(ABS(dt.ov_amount/bt.amount), IFNULL(ABS(st.ov_amount/bt.amount), 1)) AS settle_rate,
+ IFNULL(debtor.curr_code, IFNULL(supplier.curr_code, act.bank_curr_code)) AS settle_curr
FROM ".TB_PREF."bank_trans bt
- LEFT JOIN ".TB_PREF."debtor_trans dt ON dt.type=bt.type AND dt.trans_no=bt.trans_no
- LEFT JOIN ".TB_PREF."debtors_master debtor ON debtor.debtor_no = dt.debtor_no
- LEFT JOIN ".TB_PREF."supp_trans st ON st.type=bt.type AND st.trans_no=bt.trans_no
- LEFT JOIN ".TB_PREF."suppliers supplier ON supplier.supplier_id = st.supplier_id,
- ".TB_PREF."bank_accounts act
- WHERE act.id=bt.bank_act ";
+ LEFT JOIN ".TB_PREF."debtor_trans dt ON dt.type=bt.type AND dt.trans_no=bt.trans_no
+ LEFT JOIN ".TB_PREF."debtors_master debtor ON debtor.debtor_no = dt.debtor_no
+ LEFT JOIN ".TB_PREF."supp_trans st ON st.type=bt.type AND st.trans_no=bt.trans_no
+ LEFT JOIN ".TB_PREF."suppliers supplier ON supplier.supplier_id = st.supplier_id
+ LEFT JOIN ".TB_PREF."bank_accounts act ON act.id = bt.bank_act
+ WHERE 1 ";
if ($type != null)
$sql .= " AND bt.type=".db_escape($type);
if ($trans_no != null)
@@ -85,7 +85,7 @@
$sql .= " AND bt.person_type_id = ".db_escape($person_type_id);
if ($person_id != null)
$sql .= " AND bt.person_id = ".db_escape($person_id);
- $sql .= " ORDER BY trans_date, bt.id";
+ $sql .= " ORDER BY bt.trans_date, bt.id";
return db_query($sql, "query for bank transaction");
}
Converting the WHERE static clause to a LEFT JOIN would be elegant. Joe, can you add this please.
5,144 03/06/2014 02:41:59 pm
Re: Cannot install new extensions—"could not open" (6 replies, posted in Modules Add-on's)
Manually install the files from the module into the modules folder and update the installed_extensions.php files in both the webroot and the company # folders.
5,145 03/06/2014 02:38:02 pm
Re: PNG Logo format not accepted (3 replies, posted in Report Bugs here)
What I was referring to was the hard coded .jpg in the said php files. PNG is handled fine otherwise.
5,146 02/27/2014 03:03:58 am
Re: Cannot install new extensions—"could not open" (6 replies, posted in Modules Add-on's)
folder permissions issue - for the tmp folder, and installed_extensions.php files in the webroot and company folders
5,147 02/27/2014 02:59:53 am
Re: Asset Module Entries don't show up on Balance Sheet (6 replies, posted in Modules Add-on's)
Check if the module needs Triggers and procedures rights for the db user.
5,148 02/27/2014 02:57:33 am
Re: DEMO with batch,expiry,mrp-FA MODIFIED (6 replies, posted in FA Modifications)
Just for FA on GitHub and then develop your module.
5,149 02/27/2014 02:53:18 am
Re: ERROR 500 - INTERNAL SERVER ERROR After installing Textcart (2 replies, posted in Modules Add-on's)
Use the v2.3.19+ latest snapshot from the official it Repo instead of the outdated v2.3.15
5,150 02/27/2014 02:49:31 am
Re: Entering a Zero Opening Balance (1 replies, posted in Accounts Receivable)
Only enter balances that are in your balance sheet (or from trial balance if in mid year). Zero balace accounts should not be entered in the opening balance voucher.