Try to accommodate your document types within the regular ones to avoid upgrade hassles. Make these entries in your custom module to be appended to the standard arrays. Only your custom reports will probably use them - beware of some constructs that cause a blanket "not equal to" comparator for document matches that may inadvertently include your new ones.
4,252 03/25/2015 05:22:29 pm
Re: How to handle purchases from outside of country? (7 replies, posted in Setup)
Treat EXCISE as a tax.
4,253 03/25/2015 05:19:53 pm
Re: FA v2.4 development (48 replies, posted in Setup)
Developments to the Unstable branch FA v2.4 have now been synched with changes from the Stable FA v2.3 on the release of FA v2.3.23. Further changes have been committed to the Unstable branch. This set of changes discerned since last reported pertain to this Hg snapshot.
The error reported in the 22nd post in this thread is still present in this snapshot.
The error in the sql/en_US-demo.sql for field definition is now rectified and the demo CoA installs correctly. The CoAs still have redundant indices - the devs have been informed.
Typos:
jiurnal => journal in comment on line 156 in sql/alter2.4.sql
multiply => multiple in comment on line 195 in sql/alter2.4.sql
hiddn => hidden in comment in line 96 in includes/ui/ui_input.inc
SQL Changes:
Improved journal trans: added currency support, tax and source document date and allow multiple customer/supplier allocations to single journal transaction:
New table 0_journal added - full support for any journal transaction
- no demo CoA entries as yet
- populate with:
INSERT INTO `0_journal` (`type`, `trans_no`, `tran_date`, `reference`, `event_date`,`doc_date`,`currency`,`amount`)
SELECT `gl`.`type`, `gl`.`type_no`, `gl`.`tran_date`, `ref`.`reference`, `gl`.`tran_date`,
`gl`.`tran_date`, `sys_curr`.`value`, SUM(IF(`gl`.`amount`>0,`gl`.`amount`,0))
FROM `0_gl_trans` gl LEFT JOIN `0_refs` ref ON gl.type = ref.type AND gl.type_no=ref.id
LEFT JOIN `0_sys_prefs` sys_curr ON `sys_curr`.`name`='curr_default'
WHERE `gl`.`type` IN(0, 35)
GROUP BY `type`,`type_no`;
0_cust_allocations.person_id field added and made part of unique key
0_debtor_trans.debtor_no populated into 0_cust_allocations.person_id
0_supp_allocations.person_id field added and made part of unique key
0_supp_trans.supplier_id populated into 0_supp_allocations.person_id
Added memo, usage fields to Quick Entries:
0_quick_entries.usage field added as a description field to denote where it should be used
0_quick_entry_lines.memo field added as a description field
Tax algorithm handling on supplier side is reverted as impractical:
0_suppliers.tax_algorithm field removed
0_supp_trans.tax_algorithm field removed
0_sys_prefs has a tax_algorithm entry default for customers only
includes/sysnames.inc has:
$tax_algorithms = array(
TCA_LINES => _("Sum per line taxes"),
TCA_TOTALS => _("Taxes from totals")
);
and is used in function get_tax_for_items() defined in taxes/tax_calc.inc
0_trans_tax_details.reg_type TINYINT added (0, 1 or NULL in the demo CoA data) and is populated with:
UPDATE `0_trans_tax_details` reg
SET reg.reg_type=1
WHERE reg.trans_type IN(20, 21); -- ST_SUPPINVOICE, ST_SUPPCREDIT
UPDATE `0_trans_tax_details` reg
SET reg.reg_type=0
WHERE reg.trans_type IN(10, 11); -- ST_SALESINVOICE, ST_CUSTCREDIT
New defines in includes/types.inc:
// tax register type
define('TR_OUTPUT', 0); // sales
define('TR_INPUT', 1); // purchase
0_gl_trans.type_no field definition in sql/en_US-demo.sql now stands corrected
Theme and cleanup changes:
Code cleanup for standard themes ported from FA 2.3 but inter-theme renderer.php files do not yet have their whitespace synched.
General code cleanup and HTML 4.01 compliance ported from FA 2.3 - some tag endings "/>" now become ">" whilst certain tag attribute values are quoted.
Improved error messages in transaction voiding
Sales invoice voiding is blocked when sales credit was issued against the invoice.
Class sys_prefs Method renamed:
$SysPrefs->refresh_company_prefs() => $SysPrefs->refresh()
New functions in UI:
tab_opened($name, $tab)
tab_closed($name, $tab)
tab_visible($name, $tab)
display_caption($msg) to display in <caption> tag added
//Confirm dialog to be used optionally in final form checking routine.
//Displays warning conditionally unless it was displayed
display_confirmation($msg)
New gl function for counter party name:
get_subaccount_data($code_id, $person_id)
Functions moved:
function write_journal_entries(&$cart) moved from gl/includes/db/gl_db_trans.inc to gl/includes/db/gl_journal.inc with single argument
function void_journal_trans($type, $type_no, $use_transaction=true) moved from includes/db/gl_db_trans.inc to new file gl/includes/db/gl_journal.inc
New file gl/includes/db/gl_journal.inc added
Now officially part of 0_sys_prefs table in CoA:
bcc_email
alternative_tax_include_on_docs
suppress_tax_rates
grn_clearing_act
default_receival_required
default_quote_valid_days
no_zero_lines_amount
show_po_item_codes
accounts_alpha
loc_notification
print_invoice_no
allow_negative_prices
print_item_images_on_quote
Theme fix for cool and default themes that still refer to the now defunct variable $allow_demo_mode along with white space synch is attached herein. The devs have been notified to make the necessary change.
4,254 03/24/2015 06:15:18 pm
Topic: Recent Unstable commitswrongly posted to stable branch steadied now (0 replies, posted in Announcements)
Consequent on the release of the FA v2.3.23 stable and the changes there in being merged with the Unstable v2.4 branch, development was possibly intended to go on in the latter only and it was prematurely moved to be the stable branch resulting in the unstable branch commits getting into the stable one. This "mistake" was quickly realised but the repo mess was there to stay along with that in the official Git. Both have since been reverted to the release state for the stable repo as on date. Attached is the equivalences of the snapshot taken from the official Git mirror.
Unfortunately, the Sourceforge Mercurial repo is not very usefully graphical and we will have to wait for some real commit in the stable branch for it's path (blue) to show up properly.
4,255 03/24/2015 11:22:02 am
Re: FA v2.4 development (48 replies, posted in Setup)
FA v2.3.23 stable has been released and it's updates have been merged into FA v2.4 dev repo and some more fixes incorporated into the latter.
4,256 03/24/2015 11:05:36 am
Topic: FA Repo Update (0 replies, posted in Modules Add-on's)
The devs have updated the FA v2.3 extensions pkg repo on 2015-03-21 and "there is just a version bump and old changes to import_items extension" which does not yet incorporate the latest fixes in my unofficial Github repo.
The Charts for chart_ar_EG-GAAP and chart_en_GB-general have not been updated from my repo and remain erroneous.
Attached is the patch for the various extensions to make it uptodate (without the attendant config and files in the _init folder in each of them).
Also the Tamil language files and the new Venezuelan Chart of Accounts files have not been inducted as also the rep_email_customers extension.
FA v2.4 pkg extensions have been proviced for Charts, Themes and Languages - replace 2.3 with 2.4 in version.php's repo array. The module extensions are not yet migrated.
4,257 03/24/2015 10:57:17 am
Re: How to handle purchases from outside of country? (7 replies, posted in Setup)
Use GRN - Goods receival note. It is designed for such imports.
4,258 03/23/2015 08:42:56 pm
Re: Item for specific user group (3 replies, posted in Items and Inventory)
The "Exclude from sales" is stored in the field stock_master.no_sale and it's usage is affected by the field stock_category.dflt_no_sale.
Line 620 of includes/ui/ui_lists.inc:
$sql .= " AND !i.inactive AND !s.inactive AND !s.no_sale";
blindly checks the presence of any value and may not discern the nuances of different values for it in your design unless changed accordingly.
Other files that use this field are:
inventory\manage\item_categories.php
includes\db\items_category_db.inc
inventory\includes\db\items_db.inc
inventory\manage\items.php
4,259 03/23/2015 08:29:14 pm
Re: Anyone super patient to help me install FA ? (4 replies, posted in Installation)
Create a database for FA to use.
Create a MySQL user for FA to use to access the FA database created earlier (set all privileges for the user to access the db).
Files and Folder permissions for the FA fileset should be readable and writeable by the web server user.
4,260 03/23/2015 08:25:49 pm
Re: need retrieving tax rate per item during invoice generation (14 replies, posted in Reporting)
The latest is in the Official Git Repo.
http://devel.frontaccounting.com/git/?p … ;a=summary
FA v2.3.23 has been released today.
4,261 03/22/2015 06:32:16 pm
Re: How to handle purchases from outside of country? (7 replies, posted in Setup)
Choose the settlement currency for the vendor.
Get an exchange rate entered for the date on which you book the import.
Create the direct sales invoice and a proper Goods Receival Note (GRN) for it.
Then make payment entries for it and book the expenses for the purchase.
Are you using OpenMiracle? This is the FA Forum.
4,262 03/22/2015 06:27:47 pm
Re: Anyone super patient to help me install FA ? (4 replies, posted in Installation)
Apache 2.4 has a different apache config format which must be taken into account - then FA will run okay. FA generally runs well in Apache 2.2.
If MySQL is running, just run
mysql -u root -p -e 'SHOW VARIABLES LIKE "%version%";'
Checkout the FreeBSD MySQL page.
Make sure all files and folders under the webroot of FA is owned by the webserver user for starters (secure it later).
Browse to your FA webroot and install from the browser after having setup a MySQL database and a user with all privileges for it and flushing the privileges.
4,263 03/22/2015 06:14:59 pm
Re: need retrieving tax rate per item during invoice generation (14 replies, posted in Reporting)
Take the latest FA snapshot from the official Git Repo.
4,264 03/21/2015 08:32:52 pm
Re: Closing month end (5 replies, posted in Banking and General Ledger)
FA 2.4 is a moving target .... just stick with FA 2.3 and roll your own for now.
4,265 03/21/2015 08:27:46 pm
Re: Print Payment voucher (2 replies, posted in Banking and General Ledger)
Read the FA Wiki..
Purchases => Supplier Inquiry - last column in searched page.
4,266 03/21/2015 08:17:56 pm
Re: importing bank statements (4 replies, posted in Banking and General Ledger)
Serban Constantinescu's Bank Statement Import Extension - Forum Post
4,267 03/21/2015 08:13:14 pm
Re: Add columns to gl_trans table (5 replies, posted in FA Modifications)
This can be done using the the Non Field DB Data method used for Bin Location in Inventory. Just put in an optional piece of text like "TID#1254352" into the memo_ field and have it parsed and used like the BinLoc pseudo field in Inventory. This would indicate your unique Tax ID number 1254352.
4,268 03/20/2015 04:57:51 am
Re: edit customer payment (2 replies, posted in Accounts Receivable)
Take a backup. Check for the said transaction in the sql and make changes there and then upload and restore it! If anything breaks, you can always revert to the original state.
4,269 03/20/2015 04:55:24 am
Re: Urgent : Add Customer Telephone No, Fax No and Attn to Invoice (1 replies, posted in Accounts Receivable)
It can be added in the address of the Customer if needed.
The Non Field DB Data concept may also be used for both screen form and report requirements to modify existing ones as desired.
4,270 03/20/2015 04:53:38 am
Re: Closing month end (5 replies, posted in Banking and General Ledger)
You may be able to use federated tables in MySQL to achieve it with a combination of user access permissions and policies. AFAIK, FA does not yet support such a feature.
A bad and yet working workaround may be to change the starting month of the active Fiscal Year temporarily....
4,271 03/20/2015 04:51:28 am
Re: Add columns to gl_trans table (5 replies, posted in FA Modifications)
Module is the best way to go in general. Where a report needs to be modified for use in all it's instances in the same company, then it would be better to keep the modified version in company/#/reporting/repXXX.php so that it is used when the appropriate report in the FA menu system is called. This is valid only if there are no extra parameters to be passed on from the report request form. If you need more form fields than are there in the default report request form, then make a module of it.
Give me an example of extra field you would want in the gl_trans table and you may be able to accommodate it elsewhere using the Non Field DB Data method explained in the wiki.
Custom modules for complex requirements can have their own tables linked on a 1:1 or 1:N basis with the core FA tables. This way, when an FA upgrade occurs, you will not be left standing high and dry.
4,272 03/19/2015 05:26:15 pm
Re: Restore Help (5 replies, posted in Installation)
Most generally:
customers masters are in crm_contacts, crm_persons, cust_branch, debtor_trans
suppliers masters are in crm_contacts, crm_persons, suppliers
selling prices are in prices
purchase prices are in purch_data
inventory are in stock_master, stock_category, item_codes, loc_stock, item_units
Refer the ERD in the Wiki for further details.
4,273 03/19/2015 03:52:02 pm
Re: Zero/negative inventory handling (9 replies, posted in Banking and General Ledger)
Do you want to make it positive inventory only? Do you want to avoid recalculation after switching back from Allowing negative inventory? Then manually set the value in the sys_prefs table and config.php file.
4,274 03/19/2015 03:49:54 pm
Re: pdf report problem (1 replies, posted in Reporting)
If you use the standard fonts for English without utf-8 then see that the appropriate font is available. Else use the dejave.zip file from frontaccounting.com's downloads section. The Wiki has what you need.
4,275 03/19/2015 03:47:50 pm
Re: manual install of extensions (2 replies, posted in Setup)
The wiki has it.