Topic: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14
Hi All,
I just installed latest FA version it has been working fine but only one problem was that when I input quantity on Sales order, Direct Delivery or direct Invoice after pressing Add Item, input quantity turns 0 and I was getting the Total 0.
however I endeavored to find the issue and found that on line# 90
add_item_code($stock_id, $stock_id, $description, $category_id, 1, 0); of file items_db.inc which is residing in
\inventory\includes\db
requiring $stock_id twice which causing problem to find the item to add in cart line for code on lines 64-65
$order->add_to_cart (count($order->line_items),$item['stock_id'],
$new_item_qty*$item['quantity'], $item_price, $discount, 0,0, $description); of file sales_order_ui.inc residing in folder
..\sales\includes\ui\sales_order_ui.inc.
I just removed duplicate $stock_id from add_item_code($stock_id, $stock_id, $description, $category_id, 1, 0); of file items_db.inc and everything seems working fine so far.
Is it OK or there should be something else which I am missing.