From: <ex...@us...> - 2017-06-18 10:04:54
|
Revision: 7773 http://sourceforge.net/p/web-erp/reponame/7773 Author: exsonqu Date: 2017-06-18 10:04:51 +0000 (Sun, 18 Jun 2017) Log Message: ----------- 18/06/17 Exson: Fixed a typo in GLPostings.inc. Modified Paths: -------------- trunk/includes/GLPostings.inc Modified: trunk/includes/GLPostings.inc =================================================================== --- trunk/includes/GLPostings.inc 2017-06-18 09:30:06 UTC (rev 7772) +++ trunk/includes/GLPostings.inc 2017-06-18 10:04:51 UTC (rev 7773) @@ -63,11 +63,11 @@ AND chartdetails.accountcode IS NULL ORDER BY accountcode,periodno"; $ErrMsg = _('Failed to retrieve new account code and periods'); $NewPeriodResult = DB_query($sql,$ErrMsg); - if (DB_num_rows($result)>0){ + if (DB_num_rows($NewPeriodResult)>0){ $NewPeriods = array(); while ($NewPeriodsRow = DB_fetch_array($NewPeriodResult)) { if (!isset($NewPeriods[$NewPeriodsRow['accountcode']])) { - $NewPeriods[$NewPeriodsRow['accountcode']] = $NewPeriodsRow['period']; + $NewPeriods[$NewPeriodsRow['accountcode']] = $NewPeriodsRow['periods']; } } /*Now insert the chartdetails records that do not already exist */ |