The said function update_stock_move() in Post #3 above is not used in any of the known extensions either now.
1,101 07/04/2019 08:23:42 am
Re: Planned changes in stock_moves table structure in FA 2.5 (6 replies, posted in Development)
1,102 07/03/2019 03:55:30 am
Re: CPanel Installatron skipped versions on upgrade (5 replies, posted in Installation)
After the $xr_providers array declaration in config.php see that the line below is appropriately assigned like:
$dflt_xr_provider = 0;You can also upload the post release FA files in the announcement post. Some folders will need write permissions for the webserver user in case you get permission denied errors.
1,103 07/02/2019 05:50:44 pm
Re: Upgrade from FA 2.3.2 (5 replies, posted in Installation)
The slow response, inordinate delay and timeout is perhaps your indexes have not been set as needed and redundant indexes need to be removed. Define "Large" database - backup size for 1 year and how many years data remain open? php.ini file can be tweaked to increase the timeout.
Commercial support is available from many forum users and you can also approach those on the Support list.
1,104 07/02/2019 06:33:15 am
Re: CPanel Installatron skipped versions on upgrade (5 replies, posted in Installation)
The missing sys_prefs table records can be put in in any order and their sane default values can be found in the sql/en_US-new.sql file.
The config.php file can be compared with the new config.default.php file and the missing entries put into the former.
1,105 07/01/2019 05:11:08 pm
Re: Bank Statement Report (13 replies, posted in Reporting)
The first two parts are only re-phrased.
Ordinarily there should be no duplicates.
Besides, the tables referred to in each select are different.
But... it is possible that more than one record across the selects may refer to the same transaction causing duplicates.
1,106 07/01/2019 04:02:54 pm
Re: Bank Statement Report (13 replies, posted in Reporting)
There may be duplicate lines - maybe a DISTINCT is needed somewhere. Try to make the INNER JOIN using an ON statement rather than in WHERE like:
case ST_BANKPAYMENT :
case ST_BANKDEPOSIT :
$sql = "SELECT trans.debtor_no as person_id,
CONVERT(debtor.name using utf8) as name
FROM ".TB_PREF."debtor_trans trans INNER JOIN ".TB_PREF."debtors_master debtor USING (debtor_no)
WHERE trans_no=".db_escape($trans_no)." AND type=".db_escape($trans_type)
."
UNION
SELECT trans.supplier_id as person_id,
CONVERT(supp.supp_name using utf8) as name
FROM ".TB_PREF."supp_trans trans INNER JOIN ".TB_PREF."suppliers supp USING (supplier_id)
WHERE trans_no=".db_escape($trans_no)." AND type=".db_escape($trans_type)
."
UNION
SELECT IF (person_type_id=0, 0 ,NULL) as person_id,
IF (person_type_id=0, CONVERT(person_id using utf8),NULL) as name
FROM ".TB_PREF."bank_trans
WHERE trans_no=".db_escape($trans_no)." AND type=".db_escape($trans_type)
;
break;1,107 06/30/2019 01:49:40 pm
Re: Release 2.5. (10 replies, posted in Development)
Keeping a sys_prefs variable for the specific company's default theme choice too will be available only after login to the specific company.
Using the matched last logged in IP may suffice if fixed IPs (or net block) at the client side are there.
1,108 06/30/2019 01:44:58 pm
Re: CPanel Installatron skipped versions on upgrade (5 replies, posted in Installation)
From FA 2.4.4 to 2.4.7:
* FTP the new files
* Put in the missing sys_prefs table records
print_dialog_direct
ref_no_auto_increase
* Update the config.php file
- there are no db changes.
Don't forget to update to the latest changes after the release of FA 2.4.7 too.
The install.html and update.html files have been removed.
The files in the "install" folder will need to be deleted.
1,109 06/29/2019 02:36:46 pm
Re: Upgrade from FA 2.3.2 (5 replies, posted in Installation)
Make a separate sandbox of FA 2.3.26 first. Check if your customized connector works with it or see if it can be tweaked to achieve it.
Are there any FA files that were changed as part of the tweaking?
Are those changes now accommodated in the current FA versions?
Upgrading from FA 2.3.6 to FA 2.4.7+ should be okay if you wish to retain the old document numbering system.
Create a new sandbox for FA 2.4.7+ and see if your connector now works with and make waht tweaks are necessary to make it work.
Manually inducting in all the FA 2.3.2 data into FA 2.4.7 will be tedious but is best preferred if you have the technical skillset (DB/PHP) or have someone to assist you with it - post your bounty in the Jobs board and see who bites.
Don't fix it if it ain't broke.
1,110 06/29/2019 02:31:59 pm
Re: When purchasing an item, how to choose the cheapest supplier? (9 replies, posted in Accounts Payable)
Then, FA would need some automatic means of assimilating the current purchasing price whenever it changes from the vendor end. Something like the daily Exchange rates!
1,112 06/28/2019 04:16:31 pm
Re: When purchasing an item, how to choose the cheapest supplier? (9 replies, posted in Accounts Payable)
To start with, we can make a report that lists the supplier in descending order of price for a specific item. If the last purchased price is very long ago, it will distort the order's inference. Hence a last purchased date too will need to form part of the report.
1,113 06/28/2019 03:49:02 am
Re: Tax and Gst Not displayed (1 replies, posted in Wish List)
Make it part of the Tax name.
1,114 06/26/2019 05:07:47 am
Re: Bank reconciliation and Bank Account Inquiry and Bank reports (6 replies, posted in Banking and General Ledger)
Generally the default bank account with have more transactions.
Try making the target bank account (the one with few transactions) as the default bank account temporarily and see if it now generates more transactions, before reverting back.
If we now get more transactions, then the devs can re-evaluate the code for it or reason it accordingly.
1,115 06/26/2019 02:35:08 am
Topic: oanda.com forex rates (0 replies, posted in Wish List)
Here is a code snippet that redirects to a page with the necessary forex rate but we need to capture the redirection in curl.
<?php
$from_curr = 'USD';
$to_curr = 'SGD';
$on_date = date('Y-m-d');
$form = <<<EOT
<form method="post" action="https://www1.oanda.com/currency/converter/" id="ncc_detail_form">
<input type="hidden" name="quote_currency_0" id="form_quote_currency_hidden" value="$from_curr" />
<input type="hidden" name="quote_amount" id="form_quote_amount_input_hidden" value="1" />
<input type="hidden" name="base_currency" id="form_base_currency_hidden" value="$to_curr" />
<input type="hidden" name="base_amount" id="form_base_amount_input_hidden" value="" />
<input type="hidden" name="last_action" id="form_last_action_hidden" value="" />
<input type="hidden" name="interbank_rates" id="form_interbank_rates_hidden" value="0" />
<input type="hidden" name="end_date" id="form_end_date_hidden" value="$on_date" />
<input type="hidden" name="language" id="form_language_hidden" value="en" />
<input type="hidden" name="view" id="form_view_hidden" value="details" />
<input type="submit" id="submit" name="submit" value="Submit" />
</form>
EOT;
echo $form;
?>
<script type="text/javascript">
window.onload = function(){
document.getElementById('submit').click();
}
</script>Even the Submit button can be "hidden".
1,116 06/26/2019 01:24:33 am
Re: Bank reconciliation and Bank Account Inquiry and Bank reports (6 replies, posted in Banking and General Ledger)
This may be so as reconciliation is based on downloadable statement from the banks.
@joe: your take?
1,117 06/25/2019 02:34:55 pm
Re: Release 2.4.7 (3 replies, posted in Announcements)
Attached is the set of changed files between FA 2.4.6 and FA 2.4.7.
* First 2 day download stats at SF.
* Previous release change fileset post.
* SF Main download page
* FA 2.4.7 tar.gz download
** MD5 Hash: 4d206c582c153fa32387bfe6e34aa1e2
** Filesize: 1,577,143 bytes.
1,118 06/21/2019 03:55:12 pm
Topic: Remove column when there is no hint (0 replies, posted in Modules Add-on's)
Default company
Defaullt theme
Setup => Add new extension/theme/language/chart page
User profile has "show_hints" enabled
If there is no hint to be displayed in Linux (not in XAMPP for windows), there is a column displayed in the right top corner as in the attachment that needs to be removed.
1,119 06/21/2019 12:40:42 pm
Topic: Current versions of all official addons to FA (0 replies, posted in Modules Add-on's)
The attachment shows the current versions of all charts, languages, extensions and themes.
Some may be corrected / updated in my unofficial FA24extensions repo and it's forks.
1,120 06/21/2019 12:36:38 pm
Re: Marked Item are over due implemented in New invoice (3 replies, posted in Accounts Receivable)
Attach the outstanding balance report along with the Invoice or edit the rep107 to add another page to show the ledger summary of last few transactions. FA cannot assume that all payments will be in full to match Invoice value.
1,121 06/21/2019 12:08:28 pm
Topic: Time Zone error (1 replies, posted in Report Bugs here)
The default time_zone is defined in the sys_prefs table.
It is also conditionally set as a php.ini variable in the config.php file.
The order of Timezone precedence in the includes/prefs/sysprefs.inc is in lines 33 to 45:
foreach(get_defined_vars() as $name => $value)
$this->$name = $value;
if (!@$this->time_zone)
$this->time_zone = ini_get('date.timezone');
if (!$this->time_zone)
$this->time_zone = 'Europe/Berlin';
if (!isset($this->use_popup_search))
$this->use_popup_search = false;
ini_set('date.timezone', $this->time_zone);This does not respect the php.ini's value (or its' scripted set value from the config.php) and in actuality gets overwritten by the 'Europe/Berlin' fallback value and reflects in the footer timestamp displayed in the FA pages even after login whence a current_user is available in the session variable.
The solution is to make an unconditional setting in the config.(config.default.php) file by replacing lines 25-26:
if (!ini_get('date.timezone'))
ini_set('date.timezone', 'Europe/Berlin');with
ini_set('date.timezone', 'Europe/Berlin');1,122 06/21/2019 11:58:00 am
Re: Marked Item are over due implemented in New invoice (3 replies, posted in Accounts Receivable)
The Previous Balance / Arrears do not form part of the Invoice and if done as per your request, will be subject to change when printed again after some payments are received.
1,123 06/21/2019 06:48:01 am
Re: Item Search-Adding New Search Criteria (3 replies, posted in Modules Add-on's)
Use the setting in Setup => Company Setup => Search Item List => tick the checkbox. Now Ajax suggestions will come in when you start typing in the Item name / code.
1,124 06/19/2019 02:34:06 am
Re: how to hide some input values (2 replies, posted in Accounts Payable)
Hardcode the value attribute of the form's input field in the appropriate form and make it hidden - this will apply globally.
1,125 06/19/2019 02:31:06 am
Re: Release 2.5. (10 replies, posted in Development)
1. Flexible Barcoding (and label printing) and Bin Locations in Warehousing.
2. Single table for all lookup masters with a filter field for form field dictionary name.
3. Move all functions in reports that are common to more than one report to a separate reporting/includes/report_functions.php file.
4. Categories for Items (cascading dropdowns).
5. Attributes for Items where price does not change.
