there are some changes on the password reset page to add the rule validation

Hi, I have implemented an improved user security module.
It contains:
- password rule enforcement
- auto block if user failed login after several attempts (need admin to unblock)
- password expiry date to force user reset password after a period of time
- unique login (same user cannot login from 2 different places at the same time)

If anyone interested, please contact me: bharata1803@gmail.com

Hi, I am available. My email is bharata1803@gmail.com

I am interested. You may send the details to me bharata1803@gmail.com

In file purchasing/includes/db/invoice_db.inc line 375:

    if (count($supp_trans->src_docs) == 1)
    {
        $invoice_no = key($supp_trans->src_docs);
        $invoice_alloc_balance = get_supp_trans_allocation_balance(ST_SUPPINVOICE, $supp_trans->src_docs);
        if ($invoice_alloc_balance > 0) 
        {     //the invoice is not already fully allocated 

This line actually give error:

$invoice_alloc_balance = get_supp_trans_allocation_balance(ST_SUPPINVOICE, $supp_trans->src_docs);

Because $supp_trans->src_docs is an array and it should be a string. I believe it should be:

$invoice_alloc_balance = get_supp_trans_allocation_balance(ST_SUPPINVOICE, $invoice_no);

Hi,

I am aware of db_pager functionality. Now I need to make a table with paging functionality from already queried data.
Is there any way to do this?

Hello,

In one of the server, I found that when I generate a (modified) report with a specific name (nor random), FA is not able to write the latest PDF because the PDF file with the same name already there. The result is report displayed is always the same old report.
I have added in the rep php file checking if file exist and unlink it but it somehow still unable to write the new report.
As for the permission, the company/0/pd_files directory has been set to drwxrwxr-x, which mean the user and group has privilege to write. This doesn't happen in my development (windows XAMPP) server. The server is CentOS.
Any idea how to fix this?

8

(0 replies, posted in Report Bugs here)

Hello,

I made a new graphics in the dashboard. It should be relatively simple and in my local it does work as expected.
My code is below:

function display_sales_per_month()
{
    $pg = new graph();

    
    $this_year = date('Y');
    $title = _('Sales per month');
    $data = get_sales_in_year($this_year);
        $months = array(_('Jan'), _('Feb'), _('Mar'),
            _('Apr'), _('May'), _('Jun'),
            _('Jul'), _('Aug'), _('Sep'),
            _('Oct'), _('Nov'), _('Dec'),
        );
        $x_axis = array();
        $y_axis = array();
        foreach($data['monthly'] as $k=>$v){
            $x_axis[] = $months[$k-1];
            $y_axis[] = $v;
        }
        
        $pg->x = $x_axis;
        $pg->y = $y_axis;
    source_graphic($this_year, $title, _(""), $pg, _("Sales per month"), null, 1);
}

It just display total invoice per month.
What I got when I upload is this:

https://i.imgur.com/FEpxLtq.png

It got some weird string.

Thanks. U have checked this bug has persisted since at least 2.4.2 and it is quite critical because data entry via journal entry feature that relate to account receivable will write the cust_trans using this method and it will fail because the query is wrong.

Instead of

$sql = "INSERT INTO ".TB_PREF."debtor_trans (trans_no, type, debtor_no, branch_code, tran_date, reference, ov_amount, rate)
        SELECT "
        .db_escape($trans_no).", ".db_escape($trans_type).", debtor_no,"
        .db_escape($branch_id).",'".date2sql($date)."', ".db_escape($ref).","
        .db_escape($amount).", ".db_escape($rate)."
        FROM ".TB_PREF."cust_branch WHERE branch_code=".db_escape($branch_id);

It should be

$sql = "INSERT INTO ".TB_PREF."debtor_trans (trans_no, type, debtor_no, branch_code, tran_date, reference, ov_amount, rate)
        VALUES ("
        .db_escape($trans_no).", ".db_escape($trans_type).", (SELECT debtor_no FROM ".TB_PREF."cust_branch WHERE branch_code=".db_escape($branch_id). ") ,"
        .db_escape($branch_id).",'".date2sql($date)."', ".db_escape($ref).","
        .db_escape($amount).", ".db_escape($rate).")";

The sub query SELECT debtor_no ... result should bebecome the debtor_no column when inserting.

barbarian wrote:

I found this incorrect sql query:

Screenshot

The SQL Query is wrong. INSERT INTO .... SELECT FROM ...

I found this incorrect sql query:

Screenshot

13

(6 replies, posted in FA Modifications)

Thanks,

I will check on this.

rafat wrote:

@barbarian
Look at this discussion.

https://frontaccounting.com/punbb/viewtopic.php?id=7854

At post 63 @notrinos says:

notrinos wrote:

Awsome @joe

On this basis we can generate countless charts for unlimited number of different statistical needs

I have tried the changes on my local installation and its very nice..

Any way to add graph in the dashboard via module and not modifying the core?

In FA, sales group table name is "TB_PREFIX.groups".
When I setup FA without prefix, the table name is only "groups".
In mysql 8, groups is a reserved keyword so all query with table groups would throw an error.
It can be solved by adding backtick in the table name part in the query but it would change a lot in FA.

Hello,

I want to ask about changing item or supplier tax. It seems that if I create a PO or GRN and then the tax setup is changed in Item Tax Types, the tax in already created PO or direct GRN will also be affected.

For example, if I create PO yesterday which only consist of item A and item A only has 1 tax,  it will calculate the overall amount using that tax. But, if I add new tax for A today, when I check the yesterday's PO, the overall amount is also changed which now has 2 tax for item A.

It is make sense from the coding perspective because PO only refer item id and it will query tax information from the database according to what is stored when it is access. But isn't it dangerous? Old PO or direct GRN should retain its tax information when it is created. So the invoice should be based on the tax information when PO is created not when invoice is created.

sewkar wrote:
barbarian wrote:

Thank you for your suggestion. Maybe I will add "batchable" boolean in item so that the batch menu will only appear when the item is set to true.

is your modification premium or open source?

It is not free.

Thank you for your suggestion. Maybe I will add "batchable" boolean in item so that the batch menu will only appear when the item is set to true.

I made this modification for a clinic, hence the name of the patient and case field.

As for the batch selection, it is only appear when delivery or GRN operation exist.
So, it will only appear on:
- Direct delivey
- Direct invoice
- Delivery against sales order

In purchasing, it will only exist in:
- Direct GRN
- Direct supplier invoice
- Receive Purchase Order Items

In inventory, you can see batch selection in adjustment and stock transfer.

There is no need to choose batch in sales order and purchase order due to batch mostly internal document.


apmuthu wrote:

Patient's Name and Case are the 2 new form fields in Sales => Direct Delivery and Sales Order in your demo. Where is the batch Selection? The Invoice against Sales Delivery has a Batch button though. None of the Purchase links have any Batch feature.

Provide some sample data to experience the Batch details.

You can do away with the 0_cases table and keep the data as a comma delimited string in a setting in the 0_sys_prefs table.

The other extra tables used are 0_stock_batch, 0_stock_batch_moves.

The 0_stock_batch_moves table can be accommodated within the core 0_stock_moves table (possibly others above too) with some combination of innocuous values in unused fields of price, reference and standard_cost.

This is my modification on adding batch and expiry date on the batch: LINK
username: admin
password: admin

Currently, I have implemented batch selection for:
- sales direct delivery + direct invoice
- sales delivery from sales order
- purchasing direct GRB + direct invoice
- purchasing receive item GRN from PO
- inventory adjustment
- stock transfer
- stock check sheet report

I haven't finished implemented batch selection for manufacturing/work order and creating report spesific to the batch.
Please have a look at that and if you need, don't hesitate to contact me: bharata1803@gmail.com

The guy named Mario Hana use almohasb email address for paypal invoice but never paid me. He used a lot of excuses and really strange excuse. I don't know the relationship between them or whether they are the same person or not. I also contacted by guy named David Polin. Maybe notrinos can tell us how he know about Mario Hana, almohasb, and David Polin.

It was my mistake to give my work before I got paid. I have worked for years and this is the only time I got scammed. The guy already told me he had transferred the money via bank transfer (international) and told me it would arrive in 3-5 days. I believed him and gave him the work. After that "transfer" failure, I forced him to use paypal, transferwise, western union etc. He gave me fake WU transaction number and fake tansferwise receipt.

Anyway, just be careful guys. Make sure to not believe anyone and get paid before delivery. Only use paypal or other direct payment method that you can know the guy paying you is not lying. If you contacted guy above, just don't trust easily.

22

(13 replies, posted in Report Bugs here)

I also have this problem in google chrome. It always occur but in opera, it  rarely occur if not at all. What is the best solution here? I am using 2.4.8

I got this error when process depreciation.

https://i.imgur.com/jCagBg2.png

Any solution?

24

(1 replies, posted in Jobs wanted/offered, non-free offers)

Hello,

Please contact me via email bharata1803@gmail.com. I will be gladly to work with you.

If you still need developer, contact me via email: bharata1803@gmail.com