The bug I am going to detail here needs a scenario.

Using on Journal Entry I recorded the Opening Balances of all customers.
Upon recording payment for one out of those customers I encountered following error.

/PATH-TO-FA/includes/errors.inc:207:    trigger_error('DATABASE ERROR : duplicate debtor transactions found for given params
sql that failed was : SELECT trans.*,ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total,cust.name AS DebtorName, cust.address, cust.curr_code, cust.tax_id, trans.prep_amount>0 as prepaid,com.memo_, branch.* FROM debtor_trans trans LEFT JOIN comments com ON trans.type=com.type AND trans.trans_no=com.id LEFT JOIN shippers ON shippers.shipper_id=trans.ship_via, debtors_master cust, cust_branch branch WHERE trans.trans_no='96' AND trans.type='0' AND trans.debtor_no=cust.debtor_no AND branch.branch_code = trans.branch_code


','256')
/PATH-TO-FA/sales/includes/db/cust_trans_db.inc:214:    display_db_error('duplicate debtor transactions found for given params','SELECT trans.*,ov_amount+ov_gst+ov_freight+ov_freight_tax+ov_discount AS Total,cust.name AS DebtorName, cust.address, cust.curr_code, cust.tax_id, trans.prep_amount>0 as prepaid,com.memo_, branch.* FROM &TB_PREF&debtor_trans trans LEFT JOIN &TB_PREF&comments com ON trans.type=com.type AND trans.trans_no=com.id LEFT JOIN &TB_PREF&shippers ON &TB_PREF&shippers.shipper_id=trans.ship_via, &TB_PREF&debtors_master cust, &TB_PREF&cust_branch branch WHERE trans.trans_no='96' AND trans.type='0' AND trans.debtor_no=cust.debtor_no AND branch.branch_code = trans.branch_code ','1')
/PATH-TO-FA/includes/ui/allocation_cart.inc:381:    get_customer_trans('96','0')
/PATH-TO-FA/sales/customer_payments.php:222:    check_allocations()
/PATH-TO-FA/sales/customer_payments.php:236:    can_process()

The reason for this bug is that multiple customer payments are recorded for One Transaction Number and Same Transaction Type.

I found the solution to this is to add 3rd argument in function call get_customer_trans() in /includes/ui/allocation_cart.inc as below on Line#399

                $trans = get_customer_trans($_SESSION['alloc']->allocs[$counter]->type_no, $_SESSION['alloc']->allocs[$counter]->type, $_SESSION['alloc']->person_id);

I hope this shall not cause any other bug.

102

(8 replies, posted in Modules Add-on's)

I have a sms plugin for FA. You can send forum email to me if needed .

in purchasing_db.inc on line # 200 the 10th argument true is extra I think

104

(1 replies, posted in FA Modifications)

That needs customization in sales_order_entry.php

check this post https://frontaccounting.com/punbb/viewtopic.php?id=7652

I am unable to void a PaySlip. Is there any way or I am missing something. PaySlip Creates a Journal Entry that can be voided but the PaySlip itself can't be voided.

I have a comment. I defined the Salary Structure for Each Employee. That sturcuture has a Basic Salary, Conveyance amount, House Allowance etc.

While calculating the Payslip the employee had 62 Leave hours.

The system is deducting the amount against these leave hours on whole amount. But it should be only applied to Basic Salary Amount.

Here is the Screen Shot.

My point is am I correct or system is correct?

@minmaxfamily please open debug mode and then share the screen shot

As I said earlier its the accountants way to handle this. No predefined formula. Yes you may provided you can justify it.

This is a pure accounting adjustment and every accountant has his own taste.
What I do is that I have created an account named "Openging Balance" in Owners Equity Group.

After adding all entries of Assets and Liabilities either in Debit or Credit I put the the Balancing Figure in the above account.

@trainer2008, you can use modules hooks.php to call the module's sales_order_entry.php instead of core file from the Navigation of your theme.

Here is the little snippet of the code

function install_options($app) {
        global $path_to_root;

        switch($app->id) {
            case 'orders':
                $app->modules[0]->lappfunctions[3] = new app_function(_('Water In&voice'),'modules/water_invoice/sales_order_entry.php?NewInvoice=0','SA_OPEN',MENU_TRANSACTION);
                $app->modules[1]->lappfunctions[2] = new app_function(_('Customer Transaction Inquiry'),'modules/water_invoice/inquiry/customer_inquiry.php?','SA_OPEN',MENU_INQUIRY);
                $app->modules[2]->lappfunctions[0] = new app_function(_('Add and Manage Customers'),'modules/water_invoice/customers.php?','SA_OPEN',MENU_ENTRY);

Hello @ccmacachor, I am working as a FA consultant for more than 70 clients in my country. I have my own server and slightly modified FA version to fit in the needs of my clients. If you need my support please contact me via Forum Email.

@siddiquinoor I have that extension that may need some modifications to fit in your needs. Please Contact me via Forum Email

114

(3 replies, posted in Reporting)

You can change FontSize at Line # 64

    $rep = new FrontReport(_('List of Journal Entries'), "JournalEntries", user_pagesize(), 8, $orientation);

in config.php set

$go_debug = 2;

Set the debug mode to On and then try again and see the error logs. Share those Logs here.

117

(82 replies, posted in FA Modifications)

Great @joe, does this covers the custom dashboards through modules?

@notrinos, the Employee Transaction Inquiry has a bug. Once you Select any one Employee, the Transactions related to Employee Advance is not shown. I tried a lot of ways but in vain. The SQL Query is too complex

Can anyone help out in this?

119

(13 replies, posted in Setup)

Thats not possible currently in FA. you may need some modifications to achieve this but not recommended because it will hit the current $_SESSION settings.

@jcnew the Closing Journal Entries are not done automatically. You need to close your Profit and Loss Accounts manually to shift them to Retained Earnings.

When you close a Fiscal Year then FA ensures that all previous fiscal years are also closed.

Closing a Fiscal Year also sets the sys_pref variable gl_closing_date to the Fiscal Year's ending date.

But if you want to set the 'gl_closing_date' during the fiscal year i.e. after one quarter you can use Closing GL Transactions page for this purpose to restrict gl transactions before that date.

121

(13 replies, posted in Setup)

In Multiple Companies add same user say admin and same password say bangladesh

Now on login screen you just need to select the company from Drop Down.

Finally the above bug is fixed and and committed Here

Ok I got the reason for the issue mentioned in Post # 174.

The function in_ajax() is returning false in pdf_report.inc in function End() that is why $Ajax->redirect($fname) is not being called.

I added on emp_inquiry.php below code to activate Ajax.

$Ajax->activate('trans_tbl');

$sql = get_sql_for_payslips(get_post('Ref'), get_post('Memo'), get_post('FromDate'), get_post('ToDate'), get_post('DeptId'), get_post('EmpId'), check_value('OnlyUnpaid'));

but it didn't worked.

Any clue how to activate Ajax on this page.

This is a great honor for me. Thanks

I am getting this error in Print Payslip

https://prnt.sc/tsnpkh