Are you using the latest snapshot of FA 2.4.2+ ?
2,576 10/23/2017 04:21:15 am
Re: Bug in Journal Inquiry View (18 replies, posted in Report Bugs here)
2,577 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,578 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,579 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,580 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,581 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,582 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,583 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,584 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,585 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,586 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,587 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,588 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);
2,589 10/21/2017 10:07:02 am
Topic: Remove double return in hooks.inc (3 replies, posted in Report Bugs here)
The file includes/hooks.inc has it's last class method default_get_dispatchable_quantity() called only in the page's last function hook_get_dispatchable_quantity().
1. Is this set of functions necessary here?
2. The said method has two consecutive return statements - remove or comment one of them if they should be there for some alternative workaround for a different set of PHP versions.
2,590 10/21/2017 09:36:16 am
Re: Activating extension in new company (1 replies, posted in Modules Add-on's)
Install of an extension and activating it for specific companies can be done only from the default company. All other companies can only then enable/disable permissions for it's security sections for appropriate roles for themselves.
2,591 10/21/2017 07:24:44 am
Re: Purchase order voiding BUG (10 replies, posted in Report Bugs here)
The problem is that you are trying to Void it twice - once on successfully Voiding a transaction and since Transaction# is still showing the voided one as a label in the resultant page you may have pressed the Void Transaction again. The Memo field gets cleared but the Transaction# field does not.
@joe: The success message should show the Transaction# that was successfully voided and the Transaction# label in the form should be blanked out on the success page.
2,592 10/20/2017 07:44:15 pm
Re: Auto Numbering on Item Code (11 replies, posted in Items and Inventory)
There is another issue that appears. When we try to add one more item to a SalesKit, the SalesKit (the one we are adding to) appears in the selection drop down box and we can actually get into a circular binge! If some other SalesKits are chosen then it may be okay and that too only if this current one is not part of the SalesKit we are adding.....This may not really be a problem if the Sales Kit being added to another Sales Kit gets populated by it's constituent items!
If we can replace the primary key id with the stock_id and item_code as a compound primary key in the item_codes table and re-code all the classes and functions to adhere to it, then maybe we can do what you want. It will probably break a few extensions as well!
@joe: good to have.
2,593 10/20/2017 04:34:06 pm
Re: Hello World Extension for FA (17 replies, posted in Modules Add-on's)
The $_SESSION['App']->applications array of objects is dumped and attached herein for further coding and ordering the tabs.
2,594 10/20/2017 04:17:50 pm
Re: Auto Numbering on Item Code (11 replies, posted in Items and Inventory)
Actually the Uniqueness for the said couple of fields is enforced by an index. It could have been the compound primary key in which case your need would be satisfied.
FA for the most part has tables with just one single primary key to make it easy to code record manipulations (select, update,delete).
The fields stock_id and item_code are both generally VARCHAR(20 except a few of the former are CHAR(20) in all tables they are part of. The varied definition is probably an error or some index justification.
grep stock_id sql/en_US-new.sql
`item_code` varchar(20) NOT NULL default '',
`item_code` varchar(20) NOT NULL,
`item_code` varchar(20) NOT NULL default '',
grep item_code sql/en_US-new.sql
`stock_id` varchar(20) NOT NULL default '',
`stock_id` varchar(20) NOT NULL,
`stock_id` char(20) NOT NULL default '',
`stock_id` varchar(20) NOT NULL default '',
`stock_id` char(20) NOT NULL default '',
`stock_id` varchar(20) NOT NULL default '',
`stock_id` char(20) NOT NULL DEFAULT '',
`stock_id` varchar(20) NOT NULL default '',
`stock_id` varchar(20) NOT NULL default '',
`stock_id` varchar(40) default NULL,
`stock_id` char(20) NOT NULL default '',
2,595 10/20/2017 03:51:11 pm
Re: Recurrent invoices and sales groups (9 replies, posted in Wish List)
If two branches of a single customer are assigned to different Sales Groups, will your listing appear fine if the new Sales Group filter is in place?
The tag for strike-through here is del (in [ ] and [/ ]).
2,596 10/20/2017 02:39:05 pm
Re: Recurrent invoices and sales groups (9 replies, posted in Wish List)
You're right. The field group_no (Sales Group) is part of the #_cust_branch table and hence there can be only one Sales Group for one branch.
This means that you will also need to have a cust_branch filter if you want to make a report Sales Group - wise.
2,597 10/20/2017 03:16:39 am
Re: Purchase order voiding BUG (10 replies, posted in Report Bugs here)
Update to latest FA 2.4.2+ and see if this issue resolves itself.
The changed files from FA 2.4.1 to FA 2.4.2 (#4 post) and that for fixes thereafter (#12 post) are in the Announcements thread for FA 2.4.2.
2,598 10/20/2017 01:57:49 am
Re: No need for charts in installed_extensions.php in company# (2 replies, posted in Modules Add-on's)
@joe: your take?
2,599 10/20/2017 12:29:05 am
Re: Recurrent invoices and sales groups (9 replies, posted in Wish List)
Then as it is still possible to assign the same branch to more than one sales group, the uniqueness of the requested filter would will cause erroneous sums in the resultant report.
2,600 10/19/2017 05:50:25 pm
Re: Recurrent invoices and sales groups (9 replies, posted in Wish List)
@joe: makes sense?
What happens if a customer is in more than one sales group?