FA provides Roles that can be used to provide specific modules access to any user assigned to the specific role.
However, out of the box, FA does not support segregation of POS to specific salesman - this means that if a Salesman is assigned to a POS, he can operate on any POS location. One or more POS are assigned to a specific location. But one POS cannot be assigned to more than one location at a time.
3,176 12/26/2016 04:40:14 pm
Re: Sales person and Access set up (1 replies, posted in Setup)
3,177 12/26/2016 04:32:58 pm
Re: Hyperlinks in FA working only after page refresh (16 replies, posted in Installation)
As this is specific to very few installs, please use the suggested workaround in the 12th post in this thread referring to includes/session.inc file.
3,178 12/26/2016 04:14:30 pm
Re: Change invoice date (12 replies, posted in Banking and General Ledger)
@cambell: Your commit is quite nice. You might want to restrict the use of the TB_PREF to the FROM table alone and not in the other parts of the select statement. The WHERE clause can check for on or before instead of just before date.
$sql = "SELECT supp_trans.trans_no,
supp_trans.type,
supp_trans.supplier_id,
supp_trans.tran_date,
supp_trans.ov_amount,
bank_trans.ref AS bank_ref,
bank_trans.amount AS bank_amount,
bank_accounts.id AS bank_id,
bank_accounts.bank_name,
bank_accounts.bank_account_name,
bank_accounts.bank_curr_code
FROM " . TB_PREF . "supp_trans supp_trans INNER JOIN
" . TB_PREF . "bank_trans bank_trans ON (supp_trans.trans_no = bank_trans.trans_no
AND supp_trans.type=bank_trans.type) INNER JOIN
" . TB_PREF . "bank_accounts bank_accounts ON (bank_trans.bank_act = bank_accounts.id)
WHERE supp_trans.supplier_id=" . $supplier_id . "
AND supp_trans.tran_date <= '" . $date . "'
AND supp_trans.type=" . ST_SUPPAYMENT . "
ORDER BY supp_trans.tran_date DESC
LIMIT 1";
@joe: Want to pull it in?
3,179 12/23/2016 04:19:35 am
Re: Bug submitting forms in FA 2.3.x when file field not changed (6 replies, posted in Report Bugs here)
No customisation, no extensions.
Plain vanilla install of FA 2.3.25+ from official GitHub Master.
en_US-demo.sql - CoA with US demo data.
Test Environment:
Server and client (localhost) on WinXPSp3, XAMPP 1.7.3 having:
MySQL Server & Client version: 5.1.41
Apache/2.2.14
PHP Version 5.3.1
Browser FireFox v37.0.2
This change is important as there could be some instances where during some var scope / js / function execution, the value of a POSTed checkbox variable is set to 0 as would obtain when "cleaning" of POST variables occur. In such an instance, mere checking for the existence of the POST variable would be insufficient, it's value must be 1 (for single checkbox value as prevalent in all if not most of FA) or some pre-set value (some have the audacity to make it -1 when not chosen) and at the very least, that, if present, it should be checked if (not) zero.
Since no change is effected on the POSTed checkbox variable by the code using this function, please let me know how batch invoicing / delivery processing would be affected - do they change the value of the POSTed checkbox variable?
3,180 12/22/2016 08:00:56 pm
Re: Bug submitting forms in FA 2.3.x when file field not changed (6 replies, posted in Report Bugs here)
Fixed in my repo.
3,181 12/22/2016 07:03:35 am
Re: Bug submitting forms in FA 2.3.x when file field not changed (6 replies, posted in Report Bugs here)
@joe: Please fix in both versions.
3,182 12/22/2016 04:26:59 am
Topic: Bug submitting forms in FA 2.3.x when file field not changed (6 replies, posted in Report Bugs here)
Try this:
Setup => Company Setup => Save
Even though the checkbox "Delete Company Logo" is unchecked and there is no change in the logo file that exists, the changes in other fields do not get saved and the error: The existing image could not be removed arises.
This is due to the fact that the function check_value() only checks if the checkbox element exists in the $_POST and not if it's value is set to 1 - some browsers (versions) and windows OSes tested in FA 2.3.x (test on other combinations and even in FA 2.4.x for corrections like this) need the said function in includes/ui/ui_input.inc:
function check_value($name)
{
if (!isset($_POST[$name]))
return 0;
return 1;
}
to be
function check_value($name)
{
if (!isset($_POST[$name]) || !$_POST[$name])
return 0;
return 1;
}
0 is generally evaluates false and if 1 is the value of a ticked checkbox enforced throughout FA, then a NOT check of 1 can be used.
In fact, a very thorough check to accomodate unlike variable type comparisions would entail:
function check_value($name)
{
if (!isset($_POST[$name]) || ($_POST[$name]+0) === 0)
return 0;
return 1;
}
3,183 12/22/2016 03:56:30 am
Re: PAYMENT TYPES (8 replies, posted in Accounts Payable)
Setup -> Payment Terms.
The Wiki link in the 2nd post in this thread has a typo.
3,184 12/21/2016 01:30:58 pm
Re: Purchase Items With Cash (6 replies, posted in Accounts Payable)
Direct Invoice should create a Sales Order and on Delivery, the Invoicing occurs. Hence payment is a separate entry for such tracking.
3,185 12/21/2016 01:28:55 pm
Re: Adding Recovery On Cash Invoice (3 replies, posted in FA Modifications)
Shipping can be used for the excess and worded so or transferred by JV.
3,186 12/21/2016 01:27:48 pm
Re: Returnable Items (3 replies, posted in Items and Inventory)
Sell Cylinder at say $10 per piece and credit-back as and when returned. If there is no price, tracking is difficult in the db.
3,187 12/19/2016 11:55:16 am
Re: Adding Recovery On Cash Invoice (3 replies, posted in FA Modifications)
Make a cash receipt for the amount you want to show in "Recovery" and allocate it to the appropriate partially unpaid invoice. Keep the rest of the cash for the cash invoice allocation.
3,188 12/19/2016 11:51:17 am
Re: Need Salesman wise report (25 replies, posted in Reporting)
Try this. The table alias names' prefixes have been removed.
3,189 12/19/2016 09:17:22 am
Re: Point Of Sale (6 replies, posted in Jobs wanted/offered, non-free offers)
ChromsiPOS is UK based and is coded in Java and compiled for use on a Tomcat Server.
3,190 12/19/2016 08:57:06 am
Re: Companies, how many is reasonable (1 replies, posted in Installation)
You can store one company per DB or many companies in a single DB with prefixes - prefixes are recommended for security and inadvertant overwriting on wrong company restoration.
The InnoDB engine will need to be large enough to accomodate all the InnoDB tables in all the DBs of the server unless the InnoDB per-table settings are configured. Filesize per file on the OS should also be considered (32 bit limitations, etc).
The size of the data will vary with each company's transaction volume and document attachments.
Servers with upto 10 companies (_0 to _9 prefixes) with transaction volumes to fit into a virtual instance of say 10 GB with 2 fiscal years in open state with 3 users each and not much document attachments can be a ball park figure. The total number of active simultaneous users will be important too as will be bandwidth available and latency, CPUs / speed, RAM and other hardware considerations.
PlaNetTel supported FrontAccounting OpenVZ containers on Debian Squeeze (yes it's old) with 8GB VDisk / 1GB RAM, comes pre-installed with 10 company databases for use with any prefix in each to enable restoration from any other install / prefix.
3,191 12/18/2016 01:45:43 pm
Re: Need Salesman wise report (25 replies, posted in Reporting)
Attached is the modified rep102.php file for FA 2.3.25+ to be used with the changes in the previous post.
3,192 12/18/2016 12:51:04 pm
Re: COA for Belgium - Dutch language (3 replies, posted in Misc. Charts of Accounts)
Please remove the field 0_bank_trans.bank_trans_type_id and state what FA version you are deploying it for.
Also, there are 2 entries for Algemene debiteur in 0_crm_persons table. This affects data in the 0_cust_branch table as well.
Correct the schema of the table 0_cust_branch comparing it with the sql/en_US-new.sql file. Likewise, 0_debtors_master, 0_stock_category and 0_suppliers for field order.
Synch the indexes and their order in the schema of 0_debtor_trans with that in sql/en_US-new.sql so that upgrades will proceed smoothly.
Likewise, synch the field definition of 0_debtor_trans_details.src_id.
The 3rd entry in your 0_item_units table is blank.
Attached SQL file has the tables ordered to match the sql/en_US-new.sql file.
3,193 12/18/2016 12:46:11 pm
Re: Auto populate "Price After Tax" in Purchase Orders (4 replies, posted in Accounts Payable)
You will find the Wiki page on Troubleshooting FA useful.
3,194 12/18/2016 12:42:50 pm
Re: Fixed Assets (1 replies, posted in Banking and General Ledger)
Assuming you have not customised your FA and do not have any extensions installed (other than language)
1. Take a backup opf your sql and web files in FA 2.3.22
2. Upgrade from v2.3.22 to v2.3.25+ (Git Master), upgrade any language extensions if used.
3. Run any incremental sql patches (php) in the sql folder
4. Check your config.php file with the config.default file for any new variables and include them with sane values.
5. Adjust your CoA schema (apart from the collation) to the schema in sql/en_US-new.sql
6. Make sure that your FA is working properly and take a backup (sql and web files)
7a. If you wish to stay within the ambit of the FA 2.3.x series, then install the Fixed Assets extension
7b. Otherwise, you can upgrade to FA 2.4RC1
8. Revert any Depreciation for the current year back to the asset ledger folios using Journal Vouchers.
9. Enter last balance sheet's value into the Fixed Asset register with the depreciation amounts.
Provide feedback to the forum which ever way you chose.
Please note that the FA 2.3.x Fixed Assets Extension needs some extra db privileges - possibly functions, procedures, triggers.
3,195 12/15/2016 06:51:33 pm
Re: Auto populate "Price After Tax" in Purchase Orders (4 replies, posted in Accounts Payable)
Sales Prices and currency for items (stock_id) are stored in the prices table.
Suppliers Prices for items (stock_id along with suppliers UoM and conversion factor) are stored in purch_data table.
The above are used when looking up the fields in the sales and purchase order/invoice forms.
The actual price used for the specific invoice's item is stored in the sales_order_details and purch_order_details tables respectively.
Hence the closed PO's and Invoices will not have their prices altered when the items' sales and purchase prices vary at the item's lookup tables for sale and purchase.
Unless your most recent purchase item cost is entered against the supplier's list of items on that date, it will not be the one looked up thereafter.
3,196 12/15/2016 06:40:26 pm
Re: Changing one of the columns in "Invoice Against Sales Delivery" (6 replies, posted in Accounts Receivable)
Keeping the Branch Column and adding the Ship_From field along with the appropriate report and sql filters / where constructs and the headings ($cols) will mitigate the Branch filter issue.
1. Create a local Git repo using TortoiseGIT in your windows environment (works with Linux and Mac too) with the core files in a core folder.
2. Place your files in a mods sibling folder. Import the affected core files as is into the same path under your mods folder and commit the change.
3. Make changes to the files in the mods folder and commit the change with information regarding the feature / change envisaged with it.
4. Whenever the core file changes, compare with your modded file and implement the changes thereof in it.
3,197 12/14/2016 04:24:18 pm
Re: Changing one of the columns in "Invoice Against Sales Delivery" (6 replies, posted in Accounts Receivable)
Your navigation:
Sales -> Invoice Against Sales Delivery
will yield a url like:
http://localhost/sales/inquiry/sales_deliveries_view.php?OutstandingOnly=1
The file sales/inquiry/sales_deliveries_view.php calls the function get_sql_for_sales_deliveries_view() defined in sales/includes/db/cust_trans_db.inc just before assigning the array of column headings to $cols.
Edit the SQL in the said function to include the Ship_From field and adjust the $cols for the heading (either by hardcoding or as gettext translation string in .po/.mo).
3,198 12/14/2016 04:00:15 pm
Re: Alt G on Apple Keyboard (1 replies, posted in Report Bugs here)
On a Macintosh, the Alt key is called the Option key. It is not used to enter numeric character codes. Instead, keyboard letters and numbers are used.
3,199 12/14/2016 03:57:48 pm
Re: 2.4RC1 Transaction References (3 replies, posted in Setup)
So are you just migrating the "Transaction Reference" feature from FA v2.4 back to v2.3 and not upgrading from FA 2.3 to FA 2.4?
FA 2.4 uses all InnoDB tables whilst only some are so in FA 2.3.
3,200 12/11/2016 05:01:16 am
Re: Changing one of the columns in "Invoice Against Sales Delivery" (6 replies, posted in Accounts Receivable)
You are trying to change the heading label - it has nothing to do with the actual field from where it comes. The type array element is for formatting the column and also has nothing to do with the contents of any table's field.
Anything like: _("string") is shortform for gettext("string") and is changed by changing the *.po file and compiling it as *.mo file using msgfmt. Refer the Translations page in the Wiki.
To achieve what you want, pick out the strings that are affected and then trace the translation strings in the appropriate .po file and edit them in a text editor using "No BOM" format and then compile it it as the *.mo file and replace it in the fa install.