The actual value of TB_PREF is in the $db_connections[#]['tbpref'] array element in config_db.php's that pertains to the company (#) logged in.
801 01/25/2020 02:23:29 am
Re: How to get TB_PREF defined value? (2 replies, posted in Banking and General Ledger)
802 01/25/2020 02:19:21 am
Re: Manufacturing Values Off By Small Amounts (18 replies, posted in Setup)
Whilst a onetime cleanup using a journal adjustment entry is in order, the real solution going forward will be to increase the precision in php.ini from default 14 to 17.
An interesting discussion on this topic is here:
https://stackoverflow.com/questions/145 … oint-issue.
803 01/20/2020 03:20:08 am
Re: Ignore: just a test (1 replies, posted in Jobs wanted/offered, non-free offers)
Whilst at it, please fix the "PM Link" for the moderator login in the top horizontal menu.
804 01/20/2020 03:16:43 am
Re: Sales Order Inquiry Sort Descending? (9 replies, posted in Accounts Receivable)
@paul: highlighting the the two similar lines will expose trailing spaces in the one to be removed.
805 01/17/2020 01:39:50 pm
Re: Add stamp or watermark to reports on the fly – ad hoc. (15 replies, posted in FA Modifications)
The way to do is listed in this post and it is upto the ingenuity of the deployer to do it as they deem fit.
806 01/17/2020 01:34:23 pm
Re: Fixed Asset - Process Depreciation (12 replies, posted in Fixed Assets)
@joe: is this a real solution?
807 01/17/2020 01:30:52 pm
Re: Option for printing logo on reports. (12 replies, posted in Reporting)
It most certainly does. See attachment.
Which version of FA are you using?
FA 2.4.7 has been released in June 2019 and several fixes to it has been made as well till date.
This is a very old (> 2 years) issue that has been fixed.
808 01/16/2020 02:24:49 pm
Re: Purchase Order Report rep209 (6 replies, posted in Reporting)
The same construct is seen in
reporting/rep107.php
reporting/rep110.php
reporting/rep113.php
includes/ui/ui_view.inc
@joe: Do any of these reports or file show the same effect?
809 01/15/2020 11:37:22 pm
Re: Install error - Uninitialized string offset (4 replies, posted in Installation)
@joe: Maybe put in this fix after checking if PHP version >= 7.
The chr(32) is to specify Ascii instead of any other collation like utf-8, etc. that would occur if a mere space was put in place of it.
810 01/15/2020 11:34:06 pm
Re: Purchase Order Report rep209 (6 replies, posted in Reporting)
@joe: what should change and where (earlier or later) - should this be committed?
811 01/15/2020 05:41:20 pm
Re: Credit GL Items in Purchase Invoice (7 replies, posted in Banking and General Ledger)
Where is the Development Forum?
@joe: any secret forum....?
812 01/14/2020 12:32:12 am
Re: db_pager.inc bug, sql with no "where" keyword error (3 replies, posted in Report Bugs here)
The inserted line in the proposed solution is:
$this->from = $parts[1];
There is no "else" in the current codebase nor thru from FA v2.2.1.
It is not there even in @FreeMan's cloned repo as of 4 years ago.
Wonder which version of FA is being used.
813 01/14/2020 12:28:06 am
Re: Sales Order Inquiry Sort Descending? (9 replies, posted in Accounts Receivable)
Thanks @joe.
Whilst we are on this, we might as well optimise the sql in the last function in sales/includes/db/sales_order_db.inc with:
--- sales/includes/db/sales_order_db.inc Tue Jan 14 05:30:15 2020
+++ sales/includes/db/sales_order_db.inc Tue Jan 14 05:42:21 2020
@@ -632,11 +632,9 @@
{
$sql = "SELECT $field
FROM ".TB_PREF."sales_order_details d
- WHERE order_no =
- (SELECT order_no FROM ".TB_PREF."sales_orders o
+ LEFT JOIN " .TB_PREF."sales_orders o on d.order_no=o.order_no
WHERE debtor_no=" . db_escape($order->customer_id) . "
- ORDER BY order_no DESC LIMIT 1)
- ORDER BY d.id DESC LIMIT 1";
+ ORDER BY d.id DESC LIMIT 1";
$last_query=db_query($sql, "Could not retrieve last order detail");
$row = db_fetch_row($last_query);
814 01/13/2020 09:06:10 am
Re: db_pager.inc bug, sql with no "where" keyword error (3 replies, posted in Report Bugs here)
@joe: is this necessary?
815 01/13/2020 08:58:11 am
Re: List of FA24 Official Extensions (2 replies, posted in Modules Add-on's)
https://github.com/apmuthu/FA24extensions/tree/master/Extensions/rep_cash_flow_statement
816 01/13/2020 08:50:11 am
Re: Sales Order Inquiry Sort Descending? (9 replies, posted in Accounts Receivable)
@joe: can this be incorporated into the core?
817 01/01/2020 05:14:44 pm
Re: Posting Transactions To Previous, Open Fiscal Year? (9 replies, posted in Setup)
@joe: There should be a Maintenance Mode where only one Administrator can login on one terminal - this can be done by setting a sys_prefs table variable that is company specific in the Company Settings where the existing sessions will need to be cut (gracefully) off like timing out the logins of all non Admin users assuming that there is just one Super Admin for the Company.
Short of this, a physical disconnect of the network for all other users is the only option.
818 01/01/2020 10:13:35 am
Re: Download link broken - returning 404 (4 replies, posted in Installation)
@joe: Please correct the website - error as per attachment
819 12/30/2019 04:54:38 am
Re: Initial/Opening/Beginning balances (6 replies, posted in Reporting)
If you wish to proceed the way you want then FA is not for you.
If you wish to accomodate your request within FA, then make sure you have an account from which monies come out and go into.
When you start a fresh company in FA with no opening balances, then where did the Bank's Opening balance come from and whom should it be repaid to when the said bank account is closed?
Make a list of all opening balances you wish to transfer into FA and make a journal entry for all of them with the balance appropriated to the cash account. Make sure that the cash account balance is in debit as it should be returned to the shareholders and other stakeholders should the company close. Otherwise make a cash receipt entry from someone who has loaned you the amount to balance your books.
Please learn Double Entry Book Accounting or take professional Accountant's advice before attempting FA - there are some good tutorial links in the Wiki too.
820 12/29/2019 03:47:07 pm
Re: Initial/Opening/Beginning balances (6 replies, posted in Reporting)
FA is a double entry accounting system that accomodates single entry forms where the contra entry can be the cash account.
821 12/29/2019 03:45:21 pm
Re: Ledger account cannot be deleted (4 replies, posted in Setup)
Since you are creating a new FA installation, make a copy of the sql/en_US-new.sql file and edit it to remove what accounts you do not want and inject new ones taking care to ensure that any references to the old account code in the sys_prefs table is properly accounted for and then use this new sql to create your company.
Opening balances must necessarily be entered as journals from your old balance sheet and / or by credit/debit notes.
822 12/29/2019 08:11:28 am
Re: Ledger account cannot be deleted (4 replies, posted in Setup)
Do not delete such ledger accounts as there will be an audit trail and next reference records associated with it besides subsequent account codes thereafter.
823 12/29/2019 08:10:07 am
Re: Initial/Opening/Beginning balances (6 replies, posted in Reporting)
When such a bank balance is available it will be part of the balance sheet that came from the period just before you started on FA. Place all balance sheet entries in one Journal entry and they should contra one another. If you are doing it in parts, then use an intermediary "Suspense Account" which will zero itself out when all such balance sheet entries are imported in. In case allocations need to be done, use Debit Note / Credit Note for such bank / cash balances for the apportioned amounts.
824 12/29/2019 08:06:17 am
Re: bank statement report (7 replies, posted in Reporting)
@sewkar: Just kidding. If you can afford it, kindly contribute to the project. It will in part pay for the hosting, and other expenses. Thanks for the feature request - that is what makes Open Source worth pursuing and preserving - peer group vetted best way forward.
We can explore where else the "All" can be implemented.
825 12/29/2019 02:30:50 am
Re: bank statement report (7 replies, posted in Reporting)
Possibly an option in the PARAM_0 to have ALL might be all that is necessary without having a new report altogether.
Also the page numbers caveat should be noted - all pages are in sequence with no page reset when account changes.