Why don't you look at the HR module by @notrinos. This is already done there
376 09/23/2018 06:05:51 pm
Re: Is it possible to extend the function get_ctrl in reports_classes.inc? (5 replies, posted in FA Modifications)
377 09/10/2018 05:13:38 am
Re: get exchange rates not working from ECB YAHOO GOOGLE BLOOMBERG (2 replies, posted in Banking and General Ledger)
@ichtus See this Post
https://frontaccounting.com/punbb/viewtopic.php?id=7530
378 09/06/2018 06:34:17 am
Re: Update google url for currency converter (13 replies, posted in Report Bugs here)
I am using free.CurrencyConverterAPI.com and it works for almost all Currencies
elseif ($provider == 'CCA') //free.currencyconverterapi.com
{
$filename = "/api/v5/convert?q={$curr_b}_{$curr_a}&compact=y";
$site = "free.currencyconverterapi.com";
$proto = 'https://';
}379 08/27/2018 05:36:17 pm
Re: Installation of a VPS (Virtual Private Server) (3 replies, posted in Installation)
@oakstreet1 which HostingProvider are you using?
380 08/23/2018 10:24:21 pm
Topic: Installation of a VPS (Virtual Private Server) (3 replies, posted in Installation)
I am writing this post just to share my experiences so that any newbie, non IT professional, can gets benefit from this.
When we talk about Installation of FA, we are generally not assuming the installation of any server. Since FA is very light weight and it can easily run on Shared Hosting so the users don't need any VPS. But sometimes for better performance and for critical users one need to have a VPS.
The worst thing about VPS, that I faced as a Non IT professional, is that hosting companies don't take the total responsibility of a VPS's uptime. It is only you who has to take care of all aspects of VPS.
For this reason I was prolonging the use of a VPS. But finally when it became inevitable for me I met @fernando_bender one of the members of FA community and founder of myERPlink.com. I found him very well versed in Server Management. He offers complete server support. So people like me who want to focus on their core business like consultancy can hire his services at a very reasonable prices.
For server security I spent hours on internet to know how to get my linux server secured (Not SSL). I found this articl http://billpatrianakos.me/blog/2014/07/ … right-now/ very helpful in this regard.
I would like to mention few steps that any newbie can follow.
1. Buy a Blank VPS, preferably with Debian OS
2. Install VestaCP.com a very light weight GUI. This install will automatically install all related services
3. Use above article to secure your server
4. Start using it after installing FA.
I would be sharing my further experiences good or bad in using the VPS in the same post.
Thanks to FA Community ![]()
381 08/22/2018 07:18:15 pm
Re: A bug in Report Supplier Balances rep201.php (4 replies, posted in Accounts Payable)
Yes, I can verify
382 08/20/2018 05:59:11 pm
Re: Editable Item Description's Input is TextBox. How to Enable TextArea (13 replies, posted in FA Modifications)
@kvvaradha, thanks got it.
383 08/19/2018 04:38:39 am
Re: A bug in Sales Order Entry (2 replies, posted in Report Bugs here)
I got it. This problem is due to this last commit
384 08/19/2018 04:25:46 am
Topic: A bug in Sales Order Entry (2 replies, posted in Report Bugs here)
I downloaded the latest repo from Github today and installed it. The Sales Order Entry page when open for the first time is showing some problem. I suspect that this problem has arised due to some recent commits.
The screenshot is here
You can see the Drobdown List of Items in Unit Column. This gets fixed automatically as soon as any Item is selected
385 08/19/2018 03:57:24 am
Re: Editable Item Description's Input is TextBox. How to Enable TextArea (13 replies, posted in FA Modifications)
I can see this commit by @joe for Item Editable Description. I have applied this but I couldn't find any change in Behaviour of Editable Item Description. Any Idea how shall I expect the change?
386 08/13/2018 08:41:46 am
Re: A bug in Report Supplier Balances rep201.php (4 replies, posted in Accounts Payable)
I copied the Logic from rep101.php and it worked.
function get_open_balance($supplier_id, $to)
{
if($to)
$to = date2sql($to);
$sql = "SELECT SUM(IF(t.type = ".ST_SUPPINVOICE." OR (t.type IN (".ST_JOURNAL." , ".ST_BANKDEPOSIT.") AND t.ov_amount>0),
-abs(t.ov_amount + t.ov_gst + t.ov_discount), 0)) AS charges,";
$sql .= "SUM(IF(t.type != ".ST_SUPPINVOICE." AND NOT(t.type IN (".ST_JOURNAL." , ".ST_BANKDEPOSIT.") AND t.ov_amount>0),
abs(t.ov_amount + t.ov_gst + t.ov_discount) * -1, 0)) AS credits,";
$sql .= "SUM(IF(t.type != ".ST_SUPPINVOICE." AND NOT(t.type IN (".ST_JOURNAL." , ".ST_BANKDEPOSIT.")), t.alloc * -1, t.alloc)) AS Allocated,";
$sql .= "SUM(IF(t.type = ".ST_SUPPINVOICE.", 1, -1) *
(abs(t.ov_amount + t.ov_gst + t.ov_discount) - abs(t.alloc))) AS OutStanding
FROM ".TB_PREF."supp_trans t
WHERE t.supplier_id = ".db_escape($supplier_id);
if ($to)
$sql .= " AND t.tran_date < '$to'";
$sql .= " GROUP BY supplier_id";
$result = db_query($sql,"No transactions were returned");
return db_fetch($result);
}387 08/13/2018 08:00:56 am
Topic: A bug in Report Supplier Balances rep201.php (4 replies, posted in Accounts Payable)
I found a bug in Supplier Balances Report.
Check this screen shot of comparison. Opening Balance of the SUpplier was recorded on 30th June. When we query including 30th June the report shows value correctly under Charges Column But When we query from 1st July the Reports Shows the opening balance wrongly under Credits Column.
The reason is that the Opening Balance was entered through Journal Entry. and Journal Entry is not being checked in the get_open_balance() function in rep201.php.
388 08/10/2018 02:09:07 pm
Topic: Marker in Void Transactions (2 replies, posted in Setup)
When a Transaction is selected to be voided in FA, It is not highlighted.
Below code would server the cause. Replace the code starting at Line # 174
function is_selected($row) // Function added by faisal
{
global $selected_id;
return $row['trans_no'] == $selected_id ? true : false;
}
$trans_ref = false;
$sql = get_sql_for_view_transactions(get_post('filterType'), get_post('FromTransNo'), get_post('ToTransNo'), $trans_ref);
if ($sql == "")
return;
$cols = array(
_("#") => array('insert'=>true, 'fun'=>'view_link'),
_("Reference") => array('fun'=>'ref_view'),
_("Date") => array('type'=>'date', 'fun'=>'date_view'),
_("GL") => array('insert'=>true, 'fun'=>'gl_view'),
_("Select") => array('insert'=>true, 'fun'=>'select_link')
);
$table =& new_db_pager('transactions', $sql, $cols);
$table->set_marker('is_selected', _("Marked transactions will be voided.")); //Added by Faisal389 08/05/2018 04:08:30 pm
Topic: Suppliers Payment is not editable. Any solution? (11 replies, posted in Accounts Payable)
Unlike Customer payment, Supplier payment is not editable. Any solution for this
390 08/05/2018 07:27:05 am
Re: Payroll & Human Resource Management. (216 replies, posted in Modules Add-on's)
@cs you need to enable it from Access Setup
391 08/05/2018 04:27:38 am
Re: Ajax Time Out in GL Inquiry (11 replies, posted in Banking and General Ledger)
I wrote a function to write to a file the sql output for debugging purpose. I forgot to comment that out. That was actually taking too long.
392 08/04/2018 06:02:01 pm
Re: Ajax Time Out in GL Inquiry (11 replies, posted in Banking and General Ledger)
@poncho1234 yes lac is 100,000 in our local language ![]()
393 08/04/2018 06:00:50 pm
Re: Ajax Time Out in GL Inquiry (11 replies, posted in Banking and General Ledger)
@kvvaradha, you are right. Thanks alot
I got the problem. One of my customization was basically causing the issue. I must have checked that without customized code.
Regards.
394 08/04/2018 01:58:48 pm
Re: Ajax Time Out in GL Inquiry (11 replies, posted in Banking and General Ledger)
I increased the max_execution_time so the problem mitigated but what if the records increases?
395 08/02/2018 12:35:02 pm
Topic: Ajax Time Out in GL Inquiry (11 replies, posted in Banking and General Ledger)
When querying one month transactions for a given gl account, the Ajax does not return any record because the number of records are around 300. What could be the solution for this? Can't we have multiple pages in the return of Query?
396 08/01/2018 07:36:12 pm
Re: Allow Bank Transfers Via Bank Payments (4 replies, posted in Banking and General Ledger)
Modify the Code block at Line 182 on gl_bank.php with code below. This is to ensure the Edit of Bank Payment.
while ($row = db_fetch($result)) {
if (is_bank_account($row['account']) && $_GET['ModifyPayment']=='Yes' && $row['amount'] > 0) //Added block by faisal
{
$cart->add_gl_item( $row['account'], $row['dimension_id'],
$row['dimension2_id'], $row['amount'], $row['memo_']);
}
elseif (is_bank_account($row['account']) ) {
// date exchange rate is currenly not stored in bank transaction,
// so we have to restore it from original gl amounts
$ex_rate = $bank_trans['amount']/$row['amount'];
}
else {
$cart->add_gl_item( $row['account'], $row['dimension_id'],
$row['dimension2_id'], $row['amount'], $row['memo_']);
}
}397 08/01/2018 07:19:45 pm
Re: Allow Bank Transfers Via Bank Payments (4 replies, posted in Banking and General Ledger)
Add this line at Line 411 in gl_bank.php
hidden('ModifyPayment',@$_GET['ModifyPayment']); //added by faisal
hidden('NewPayment',@$_GET['NewPayment']); //added by faisalincludes/ui/gl_bank_ui.inc at Line 253 (ignore this code set in above post#1)
if (@$_GET['NewPayment'] == 'Yes' || @$_POST['NewPayment'] == 'Yes' || @$_GET['ModifyPayment'] == 'Yes' || @$_POST['ModifyPayment'] == 'Yes' )
$skip_bank = !$_SESSION["wa_current_user"]->can_access('SA_BANK2BANK');
else {
$skip_bank = true;
}
echo gl_all_accounts_list('code_id', null, $skip_bank, true); // modified by faisal398 07/30/2018 06:07:23 am
Re: Payroll & Human Resource Management. (216 replies, posted in Modules Add-on's)
great ![]()
399 07/23/2018 11:05:32 pm
Topic: Allow Bank Transfers Via Bank Payments (4 replies, posted in Banking and General Ledger)
I have customized the code as below
includes/access_levels.inc Line 269
'SA_BANK2BANK' => array(SS_GL|13, _("Bank Transfer Through Bank Payment")), //added by faisalincludes/ui/gl_bank_ui.inc at Line 253
if (@$_GET['NewPayment'] == 'Yes') //Added by faisal
$skip_bank = !$_SESSION["wa_current_user"]->can_access('SA_BANK2BANK');
else {
$skip_bank = true;
}
echo gl_all_accounts_list('code_id', null, $skip_bank, true); // modified by faisalgl/includes/db/gl_db_banking.inc at Line 477
if ($trans_type == ST_BANKPAYMENT AND $is_bank_to && !$_SESSION["wa_current_user"]->can_access('SA_BANK2BANK'))Line numbers may vary.
Please test and comment.
400 07/22/2018 06:23:13 pm
Re: Transaction References : The value is not incremented (10 replies, posted in Setup)
I think members are not sure how to test it. Let me explain it.
Suppose if the Next Available Reference for Journal Entry is JE222 in Transaction References. Change it to JE220. Now if you will make the Journal Entry you will get the message "Reference already in use".
Now place the above code in core and test now. You will see that the message will not appear and the system will itself increment the values and record the transaction with Reference JE222.
I hope now someone can test it and give feedback to @joe.
