The "Our Customer No:" maps onto suppliers.supp_account_no field. This is the CustomerID allotted to us in the Suppliers' books of account.
3,001 05/23/2017 04:34:07 pm
Re: Solved: Supplier ID in Rep 201 and 205 (5 replies, posted in Reporting)
3,002 05/23/2017 04:23:56 pm
Re: Excel rows does not show overs 65536 (16 replies, posted in Reporting)
Since the existing Workbook.php is small and provides for small sized old formal xls files, let us implement the xlsx type format using any later excel library only for those reports that are over say 60K lines. Worksheets in the current instance need not be provided for each page. A new worksheet for every 60K lines may be the way forward without changing the library. This way both branches can benefit.
3,003 05/21/2017 06:21:42 pm
Re: Excel rows does not show overs 65536 (16 replies, posted in Reporting)
For now let is put a check for > 65535 lines and a appendage to the file name that it is truncated.
We use the reporting/includes/Workbook.php's BIFF Writer format that is probably the oldest and most compatible across spreadsheet applications.
$maxsize = 7087104;The above limits filesize in Workbook.php.
Is there a way to flow the balance to new worksheets?
Or better still output a set of excel sheets sequentially numbered and zip them up....
The original PEAR package that has this file with all inclusions expanded out is at:
https://github.com/pear/Spreadsheet_Excel_Writer
http://hotexamples.com/examples/-/Spreadsheet_Excel_Writer_BIFFwriter/-/php-spreadsheet_excel_writer_biffwriter-class-examples.html
https://fossies.org/dox/SimpleGroupware_0.745/classSpreadsheet__Excel__Writer__BIFFwriter.html
Other Excel Libraries:
C++ - https://www.codeproject.com/Articles/42504/ExcelFormat-Library
PHP - https://github.com/PHPOffice/PHPExcel
3,004 05/21/2017 12:42:57 pm
Re: Excel rows does not show overs 65536 (16 replies, posted in Reporting)
FrontAccounting v1.1.0?
Where did you get it from?
Try using some filter to reduce the rows.
Alternatively try to generate the PDF first and then use some program / service to convert it to Excel 2007 format.
@joe: Should we not generate the xlsx (Excel 2007) format if there are more than 65535 rows?
3,005 05/21/2017 12:39:53 pm
Re: FA 2.4 Dashboard bug. (13 replies, posted in Report Bugs here)
It may be your PHP version.
Replace the line 211:
foreach ($waapp->modules as $module)with
$wapp_modules = $waapp->modules;
foreach ($waapp_modules as $module)3,006 05/21/2017 12:35:39 pm
Re: Show total value of credit column and debit column at GL inquiry (3 replies, posted in Reporting)
Use the cumulative values and print at the end of the report in the appropriate reporting/repXXX.php file.
3,007 05/19/2017 05:47:41 pm
Re: Same day BANK payment terms (2 replies, posted in Banking and General Ledger)
Which version of FA are you using? Try - payment within 1 day.
3,008 05/19/2017 05:46:03 pm
Re: Welcome (15 replies, posted in Setup)
Output is chosen as PDF or Excel type. If PDF is visible in browser, just print from there. Printers need to be available on your system or LAN with appropriate drivers installed. If you choose to setup your printer in the Print Profile in FA, then it will get automatically printed.
3,009 05/18/2017 01:08:53 am
Re: Problem with Trial Balance. (6 replies, posted in Reporting)
Please see the versions in my online repo:
3. en_US-new.sql - English US Standard 4 digit CoA.
The differences between 1 and 3 above are that VARCHAR(60) in the English CoA is VARCHAR(120) in the Arabic CoA for the following fields to accommodate multibyte characters:
bank_accounts.bank_account_name
chart_class.class_name
chart_master.account_name
chart_types.name3,010 05/17/2017 05:33:24 pm
Re: Problem with Trial Balance. (6 replies, posted in Reporting)
Use the en_US-new.sql to start with. Gradually introduce the ar_EG-8digits CoA in stages, starting first with the normal translations and then work your way thru' to the 8 digit account codes. See when and where it breaks. Alternatively try to check the difference in the schemas between the two CoAs.
3,011 05/17/2017 05:29:41 pm
Re: Need Salesman wise report (25 replies, posted in Reporting)
Since the TB_PREF is already alaised in the FROM part, it is not necessary anywhere else.
3,012 05/16/2017 03:46:21 pm
Re: Solved: Backup does not complete (9 replies, posted in Report Bugs here)
When the backup file size becomes big, the php.ini's settings and script timeout values may begin to matter. What was the size of your last backup - with and without compression? Check to see if this is on the threshold of the php.ini and apache conf settings.
3,013 05/16/2017 03:43:42 pm
Re: Problem with Trial Balance. (6 replies, posted in Reporting)
Try to make a fresh installation and create the closing balance and create a new fiscal year and set it to be the active one and then close the earlier fiscal and then delete the earlier fiscal and then see if the trial balance for the current one tallies. It is imperative for the IDs of the fiscal years to be in chronological order.
Alternatively start with the current fiscal year and insert a journal voucher for the opening balance and then check if the trial balance tallies before beginning to enter the transactions for the current fiscal year.
3,014 05/15/2017 12:00:35 pm
Re: Delivery Report (4 replies, posted in Reporting)
Which version of FA are you using?
Did you add the said fields to the appropriate tables?
If it is FA v2.3.25+, then see the wiki article on adding data into generic text fields like Description or memo/text fields and then parse them from there. This way upgradation of DB issues will not arise.
Another Wiki article deals with adding columns to tables.
3,015 05/14/2017 09:31:17 pm
Re: Costed Inventory Movement Report is not Reconciled (23 replies, posted in Report Bugs here)
Thanks @joe, @boxygen.
Committed to my repo after synching the whitespaces first so that the actual changes alone can be visible clearly.
3,016 05/14/2017 07:29:57 am
Re: Report Redirect in New Tab (9 replies, posted in Reporting)
Another possibility (Comment 87) is to have 'REP_WINDOW' replaced with '_blank' avoiding the need to comment it out.
3,017 05/11/2017 06:02:46 pm
Re: Report Redirect in New Tab (9 replies, posted in Reporting)
Each time you have a popup of a PDF, just save it as a file and then open each in your PDF Viewing Application in separate windows and compare them.
3,018 05/11/2017 05:58:30 pm
Re: Duplicate code in WriteOff in FA 2.3 (2 replies, posted in Accounts Receivable)
Thanks for the insight @joe.
The WriteOff has both a positive and negative entry pair for quantity: $credit_line->qty_dispatched in the database. Restored code.
3,019 05/10/2017 09:44:39 pm
Topic: Duplicate code in WriteOff in FA 2.3 (2 replies, posted in Accounts Receivable)
In FA 2.3.x, lines 202-206 in sales/includes/db/sales_credit_db.inc:
add_stock_move_customer(ST_CUSTCREDIT, $credit_line->stock_id,
key($credit_note->trans_no), $credit_note->Location,
$credit_note->document_date, $reference, -$credit_line->qty_dispatched,
$curr_std_cost, 0, $price,
$credit_line->discount_percent);are duplicately executed for $credit_type WriteOff as it is present in lines 209-213 as well.
Committed in my repo's FAMods.
@joe: can update in upstream.
In FA 2.4, there appears to be no WriteOff distinction for the $credit_type and it stands committed.
3,020 05/10/2017 09:10:31 pm
Re: Customer Balances Report | Allocated (12 replies, posted in Reporting)
This issue has been test committed out in FA 2.4 unstable repo. Please provide feedback with PHP 5.3 and MySQL 5.1.
@joe: please update the FA 2.3 repo as well if it works since we do not want the stable version to have glaring bugs such as this.
3,021 05/10/2017 09:06:23 pm
Re: orphaned company databases (6 replies, posted in Setup)
It is possible that the Company 0 is not the default company.
It is possible that the company prefix of '0_' may be in non default company as well.
Default company is based on $def_coy variable's value in config_db.php(attached example) file.
The example attached has the default company as 0 and the 0th element of the $db_connections array has it's tb_pref element as "0_" but this may not always be the case.
3,022 05/08/2017 02:09:57 pm
Re: orphaned company databases (6 replies, posted in Setup)
You can create a new company only from the default company (generally 0) in any installation. Make sure you obtain the entire sql backup from your PHP 7 upgraded server (preferably pre-upgrade state) and the stanza pertaining to the company in the config_db.php file there as that would be useful to restore in the PHP 5 server instance.
3,023 05/05/2017 10:17:26 am
Re: Add new field in Journal Entry (2 replies, posted in Banking and General Ledger)
I assume you are using FA v2.3.25 as the Assets tab is missing.
You want to make a Bank Payment Entry and have the reference entered into a separate form field in the Journal Entry Page. How would you know which Bank payment entry's reference you want in the Journal Entry? If it is part of the same transaction, read it from the appropriate table's field directly without having it redundantly stored.
You can also have the additional reference as part of the appropriate Memo form field.
You can use the Tags feature to link various transactions as a group.
3,024 05/05/2017 10:09:55 am
Re: Customer Balances Report | Allocated (12 replies, posted in Reporting)
Translate the Arabic CoA into English and compare with the equivalent en_US one.
Your steps are okay.
Try the en_US-demo.sql and see if the error appears.
3,025 05/02/2017 04:59:07 am
Re: Customer Balances Report | Allocated (12 replies, posted in Reporting)
Which version of FA are you using on what versions of PHP/MySQL and what platform?
What menu navigation steps did you use to achieve your output?
Whether Bank Payment or Customer Payment / Allocation was used?
Attached you output for forum self-sufficiency.
The Training Company (Demo Data)'s Customer Balance Report 101 is what you should have unless you customised your report and/or are using an older version of FA.
