The latest zh_CN Chart of Accounts has been updated for FA 2.4.2 in my repo. The field orders and table sets stand synched with the en_US-new.sql counterpart. Missing Accounts added. The data in the stock_category table is yet to be updated after install as of now.
2,526 10/24/2017 08:39:56 pm
Topic: zh_CN Chart updated for FA 2.4.2 (0 replies, posted in Misc. Charts of Accounts)
2,527 10/24/2017 08:37:02 pm
Re: en_GB general CoA error - FA 2.4.1 (9 replies, posted in Misc. Charts of Accounts)
As long as you have no transactions, the lookup data like customers, suppliers and items can easily be exported and re-imported with the likes of phpMyAdmin / SQLyog. Anyway, goodluck.
You might want to synch your schema at the very least before you start entering transactions.
Take an sql dump of your database (only the structure/schema) without any data and upload it somewhere and paste the link here. Will try to provide the alter statements for the database to synch the schema to the en_US-new.sql standard as in my repo.
2,528 10/24/2017 02:18:46 pm
Re: Import Direct Purchase Invoice (9 replies, posted in Jobs wanted/offered, non-free offers)
Try one of the import transaction extensions. You will have to enter the exact string values for the fields needed.
2,529 10/24/2017 02:16:44 pm
Re: problem at creating a pdf report in Arabic (3 replies, posted in Report Bugs here)
You are using the Foxit PDF reader to view PDF documents. Make sure you are using a recent FireFox Browser as it comes with a native PDF viewer so that it shows up in the browser itself. Check your browser Applications linkage options.
2,530 10/24/2017 02:12:59 pm
Re: Unable to Edit or Void a Credit Note (14 replies, posted in Accounts Payable)
The last time FA was updated was on 13th Oct 2017 as on date.
2,531 10/24/2017 07:58:49 am
Re: How to change $systypes_array headings (3 replies, posted in Reporting)
Use a local property in your extension application class and code it as:
var $extn_$systypes_array = $systypes_array;
$extn_systypes_array[ST_SALESINVOICE] = _('Donations');
2,532 10/24/2017 07:55:17 am
Re: How to Hide Reports (4 replies, posted in Reporting)
Try to remove some tabs too.....
2,533 10/24/2017 06:46:26 am
Re: Duplicated ID in gl_bank.php (1 replies, posted in Report Bugs here)
The function gl_options_controls is defined (but not used) differently in the following files (only the second one has the footer in it):
gl/includes/ui/gl_journal_ui.inc
gl/includes/ui/gl_bank_ui.inc
The said function is called in the following files by including the respective file above:
gl/gl_journal.php
gl/gl_bank.php
Let us first start naming global functions uniquely.
The said function may need to be fixed in the file gl/includes/ui/gl_bank_ui.inc and if the function is renamed for uniqueness, then the corresponding function call in gl/gl_bank.php too should be corrected.
2,534 10/24/2017 06:24:53 am
Re: Leap Year (Period Y-1) Not included in Profit and Loss (15 replies, posted in Banking and General Ledger)
I too have no problems rendering them. Attached are the outputs from the en-US-demo.sql CoA.
2,535 10/23/2017 04:34:45 pm
Re: en_GB general CoA error - FA 2.4.1 (9 replies, posted in Misc. Charts of Accounts)
The Chart SQL files in sql/*.sql will not be touched by FA. They are used as templates to create a new company only. Hence replacing the them from my repo will not affect anything except that the next company you create will be okay to start with itself.
The backup sqls are the ones that contain your changes and they are created on the fly and are stored in company/#/backup folder. This is the one you will want to correct and synch it's schema and data with the one in my repo - use with care - and then upload and restore therefrom.
Since you do not have any transactions yet, it might be easier to create a new company from the sql in my repo and then incorporate the small changes you have made all over again in it.
2,536 10/23/2017 04:27:11 pm
Re: Unable to Edit or Void a Credit Note (14 replies, posted in Accounts Payable)
The Supplier Credit Note is editable in a fully working install of FA 2.4.2+.
My earlier email listed the db changes in the Voiding of a Supplier Credit Note.
It appears that your install is broken.
2,537 10/23/2017 04:30:02 am
Re: Bug in Journal Inquiry View (18 replies, posted in Report Bugs here)
What happens if each transaction is posted separately instead of combining all three payments received into one journal transaction - is it okay? If so, then there is GROUP BY / SUM error in the sql used. Post the urls that are affected.
@joe: Needs investigation and fixing.
2,538 10/23/2017 04:21:15 am
Re: Bug in Journal Inquiry View (18 replies, posted in Report Bugs here)
Are you using the latest snapshot of FA 2.4.2+ ?
2,539 10/23/2017 04:17:44 am
Re: Developing new theme (1 replies, posted in Modules Add-on's)
Each theme is a subfolder in the themes folder. Any theme installed from the pkg repo will be found in the modules folder with a corresponding entry in the installed_extensions.php file. Copy and rename a folder in the themes folder and edit the files there to customise your unique theme.
2,540 10/23/2017 04:10:32 am
Re: Purchase order voiding BUG (10 replies, posted in Report Bugs here)
@Dynamic: It appears that your install / data had some glitches during the upgrade. Try to migrate the data into a fresh install and provide feedback. The latest snapshot works as expected as the screenshots in my earlier post will show. The db too was checked for successful voiding.
@joe: There are many places where such Transaction # display would be useful and can be changed during a more mature release. The bug to be fixed is the clearing out of the Transaction# from the form field after successful voiding.
2,541 10/23/2017 03:40:35 am
Re: Unable to Edit or Void a Credit Note (14 replies, posted in Accounts Payable)
Setup -> Void Transaction -> Transaction Type: Supplier Credit Note -> Search and choose the one you want and void it.
A Credit Note will have the GL entry(table: gl_trans) type=21 and the Accounts Payable (2100 in en_US-new/demo CoA) with person_type_id=3 and the actual person_id being the id of the supplier. This will also bear an entry in the supp_trans, supp_invoice_items and audit_trail tables as well.
On voiding, the amounts get zeroed out in the supp_invoice_items, supp_trans, gl_trans tables for the specific record(s).
The anatomy of the Void of a Supplier Credit Note is discerned from the diff between the pre and post void backups:
--- fa24_1_pre-void_backup.sql Mon Oct 23 09:18:59 2017
+++ fa24_1_post-void_backup.sql Mon Oct 23 09:19:56 2017
-insert into `1_audit_trail`(`id`,`type`,`trans_no`,`user`,`stamp`,`description`,`fiscal_year`,`gl_date`,`gl_seq`) values
- (32,21,1,1,'2017-10-23 09:12:19','',2,'2017-10-23',0);
+insert into `1_audit_trail`(`id`,`type`,`trans_no`,`user`,`stamp`,`description`,`fiscal_year`,`gl_date`,`gl_seq`) values
+ (32,21,1,1,'2017-10-23 09:19:10','',2,'2017-10-23',NULL)
+ ,(33,21,1,1,'2017-10-23 09:19:10','Voided.\n',2,'2017-10-23',0);
-insert into `1_gl_trans`(`counter`,`type`,`type_no`,`tran_date`,`account`,`memo_`,`amount`,`dimension_id`,`dimension2_id`,`person_type_id`,`person_id`) values
- (41,21,1,'2017-10-23','2100','',25,0,0,3,'1')
- ,(42,21,1,'2017-10-23','5010','Test Supplier CN',-25,0,0,NULL,NULL);
+insert into `1_gl_trans`(`counter`,`type`,`type_no`,`tran_date`,`account`,`memo_`,`amount`,`dimension_id`,`dimension2_id`,`person_type_id`,`person_id`) values
+ (41,21,1,'2017-10-23','2100','',0,0,0,3,'1')
+ ,(42,21,1,'2017-10-23','5010','Test Supplier CN',0,0,0,NULL,NULL);
-insert into `1_supp_invoice_items`(`id`,`supp_trans_no`,`supp_trans_type`,`gl_code`,`grn_item_id`,`po_detail_item_id`,`stock_id`,`description`,`quantity`,`unit_price`,`unit_tax`,`memo_`,`dimension_id`,`dimension2_id`) values
- (2,1,21,'5010',-1,0,'','',0,-25,0,'Test Supplier CN',0,0);
+insert into `1_supp_invoice_items`(`id`,`supp_trans_no`,`supp_trans_type`,`gl_code`,`grn_item_id`,`po_detail_item_id`,`stock_id`,`description`,`quantity`,`unit_price`,`unit_tax`,`memo_`,`dimension_id`,`dimension2_id`) values
+ ,(2,1,21,'5010',-1,0,'','',0,0,0,'Test Supplier CN',0,0);
-insert into `1_supp_trans`(`trans_no`,`type`,`supplier_id`,`reference`,`supp_reference`,`tran_date`,`due_date`,`ov_amount`,`ov_discount`,`ov_gst`,`rate`,`alloc`,`tax_included`) values
- (1,21,1,'001/2017','ABC_112','2017-10-23','2017-10-23',-25,0,0,1,0,0);
+insert into `1_supp_trans`(`trans_no`,`type`,`supplier_id`,`reference`,`supp_reference`,`tran_date`,`due_date`,`ov_amount`,`ov_discount`,`ov_gst`,`rate`,`alloc`,`tax_included`) values
+ ,(1,21,1,'001/2017','ABC_112','2017-10-23','2017-10-23',0,0,0,1,0,0);
+insert into `1_voided`(`type`,`id`,`date_`,`memo_`) values
+ (21,1,'2017-10-23','');
2,542 10/23/2017 03:27:26 am
Re: en_GB general CoA error - FA 2.4.1 (9 replies, posted in Misc. Charts of Accounts)
Your install has the latest FA master snapshot since it was officially last changed only on 13th Oct 2017 as on date.
The sql from my repo would be useful only for subsequent new companies created.
However, the sql file can be used in conjunction with a diff tool like WinMerge to compare the diffs with respect to your existing FA backup sql file and the latter's schema and data fields for inserts be suitably amended to incorporate any changes and then restored into FA. If there are any transactions using the Account Codes like 0xxx, then they will need to be corrected as per the one in my repo if the config file in the default install is to be left alone.
This is specific to UK, Canada and a few other Charts. The devs have yet to find the time to update their official pkg repos and till then FA Consultants can/will prey on unwary newbies who would have unsuspectingly added quite some data to their affected installs making them prime targets to be held to ransom. Re-creating the company and adding in the few transactions all over again may be the easier and advised way for many.
2,543 10/23/2017 03:20:37 am
Re: Auto Numbering on Item Code (11 replies, posted in Items and Inventory)
The SalesKit circular issue is a bit more complex even if the self choosability of level 1 is implemented..
SalesKit SK1 is created to have some items.
SalesKit SK2 has some items.
SalesKit SK3 has some items and SalesKit1 as part of it.
SalesKit SK3 is now added to be part of SK2.
SalesKit SK1 will now be able to choose SK2 which in turn has SK3 with in turn comprises of SK1 itself!.
A complete self join based tree lookup with multiple 'inheritances' would need to be implemented.
So let us keep it simple even if slightly stupid!
2,544 10/22/2017 02:33:52 am
Re: en_GB general CoA error - FA 2.4.1 (9 replies, posted in Misc. Charts of Accounts)
Update your FA 2.4.2 to FA 2.4.2+ by incorporating in the fixes since it's release (See #4 and #12 in the Announcements post for the release).
Only the Standard en_US new and demo CoAs are in the default install. Install your requisite Chart from the official repo and replace the sql/<Chart sql> file from my repo. The UK Chart in the official repo needs a config setting to allow alphanumeric characters in the Account Code whereas the one in my repo has prevented leading zeroes in them and works with the standard config setting.
2,545 10/21/2017 05:33:52 pm
Re: Supplier purchase account doesnt show as default GL account in Invoice (4 replies, posted in Accounts Payable)
https://frontaccounting.com/fawiki/index.php?n=Help.SystemAndGeneralGLSetup
https://frontaccounting.com/fawiki/index.php?n=Help.Items
2,546 10/21/2017 05:30:37 pm
Re: Purchase order voiding BUG (10 replies, posted in Report Bugs here)
That is how it should be. We have only voided the PO Delivery and not the PO itself. A PO does not need to be voided, it can be cancelled in it's Edit screen.
2,547 10/21/2017 05:24:38 pm
Re: Supplier purchase account doesnt show as default GL account in Invoice (4 replies, posted in Accounts Payable)
Where did you get the 8 Digit GAAP Chart from?
Compare your chart sql template with the (FA 2.4.2+) one in my GitHub repo.
You will find that none of the official repo charts have the account number 50090001 (in both FA 2.3.x and FA 2.4.x) and that the default COGS A/c is 42090001 and is listed there as the default one in the sys_prefs table too.
2,548 10/21/2017 05:00:12 pm
Re: Invoice Editable (23 replies, posted in FA Modifications)
Updated.
The diff of your new file added as compared to the stock FA 2.4.2+ master apart from whitespace changes are::
--- sales/includes/ui/sales_order_ui.inc Sun May 21 21:49:30 2017
+++ sales/includes/ui/sales_order_ui.inc Sat Oct 21 22:32:51 2017
@@ -236,6 +236,10 @@
display_note(_("Marked items have insufficient quantities in stock as on day of delivery."), 0, 1, "class='stockmankofg'");
div_end();
+
+ if(list_updated('stock_id')) //added by faisal phuong
+ set_focus('stock_id');
+
}
// ------------------------------------------------------------------------------
@@ -265,6 +269,9 @@
else
{
customer_list_row(_("Customer:"), 'customer_id', null, false, true, false, true);
+ If (isset($_GET['InvoiceNo']))
+ hidden('InvoiceNo', $_GET['InvoiceNo']); //Added by Faisal for Invoice Edit
+
if ($order->customer_id != get_post('customer_id', -1))
{
2,549 10/21/2017 10:47:01 am
Re: Hello World Extension for FA (17 replies, posted in Modules Add-on's)
Placed the Hello World tab in the 4th position (configurable in the code). Requested for tab positioning method in the application class itself in this post.
2,550 10/21/2017 10:36:15 am
Topic: New method for application class re-ordering the application tabs (0 replies, posted in Modules Add-on's)
Whenever a new tabbed application is added to FrontAccounting, it appears in a tab just before the Setup tab as coded in the front_accounting class method init() and invoked at the end of the includes/session.inc file.
Any new extension developer would want to position their application's tab (if it is an application predominantly residing in a separate tab) at some specific place and not just before the Setup one.
To alleviate this situation without having to code inconsistently/redundantly in each extension, it would be better to have a method in the application class (in applications/application.php) on the following lines contemplated to be in my hello_world extension for now:
// Change tab order
$i = 4; // set this extension on the 4th tab
$x = $app->applications;
$y = array_pop($app->applications); // this application was added last just now
$app->applications = Array();
$app->applications = array_merge(array_slice($x, 0, $i-1), array('hello' => $y), array_slice($x, $i-1));
unset($x,$y,$i);