Topic: Entry Purchase > Supplier Invoice (fa 2.4)

Is It a bug?

1. I create PO
2. Receipt Items
3. Supplier Invoice

When I add items in Supplier Invoice, there is error message : The price being invoiced is more than the purchase order price by more than the allowed over-charge percentage. The system is set up to prohibit this. See the system administrator to modify the set up parameters if necessary.

then i debug this code are not created in html code
file purchasing\includes\ui\invoice_ui.inc line 397 (fa 2.4)
then i change code like fa.2.3.24 running well.

i compare fa 2.4 with fa 2.3.24

purchasing\includes\ui\invoice_ui.inc line 397 (fa 2.4)
....
            label_cell(get_trans_view_str(ST_SUPPRECEIVE, $myrow["grn_batch_id"]));
               hidden('qty_recd'.$n, $myrow["qty_recd"], false);
               hidden('item_code'.$n, $myrow["item_code"], false);
               hidden('item_description'.$n, $myrow["description"], false);
               hidden('prev_quantity_inv'.$n, $myrow['quantity_inv'], false);
               hidden('order_price'.$n, $myrow['unit_price'], false);
               hidden('std_cost_unit'.$n, $myrow['std_cost_unit'], false);
               hidden('po_detail_item'.$n, $myrow['po_detail_item'], false);
...


purchasing\includes\ui\invoice_ui.inc line 372 (fa 2.3.24)
....
            label_cell(get_trans_view_str(25, $myrow["grn_batch_id"]).
               hidden('qty_recd'.$n, $myrow["qty_recd"], false).
               hidden('item_code'.$n, $myrow["item_code"], false).
               hidden('item_description'.$n, $myrow["description"], false).
               hidden('prev_quantity_inv'.$n, $myrow['quantity_inv'], false).
               hidden('order_price'.$n, $myrow['unit_price'], false).
               hidden('std_cost_unit'.$n, $myrow['std_cost_unit'], false).
               hidden('po_detail_item'.$n, $myrow['po_detail_item'], false).
               hidden('location'.$n, $myrow["loc_code"], false));
...

Thank you.

2 (edited by apmuthu 12/09/2015 08:38:08 am)

Re: Entry Purchase > Supplier Invoice (fa 2.4)

This is a feature option.

In FA 2.3, check the config.php for the lines 161-172 (FA 2.4 - lines 115-126):

    /* Accounts Payable */
    /* System check to see if quantity charged on purchase invoices exceeds the quantity received.
       If this parameter is checked the proportion by which the purchase invoice is an overcharge
       referred to before reporting an error */

    $check_qty_charged_vs_del_qty = true;

    /* System check to see if price charged on purchase invoices exceeds the purchase order price.
       If this parameter is checked the proportion by which the purchase invoice is an overcharge
       referred to before reporting an error */

    $check_price_charged_vs_order_price = True;