Hide stock_type and item_type if the employee isn't authorized to item kits. On register if item type is non-stock don't display the zero stock balance message, and correct the default quote format when initializing the field.

This commit is contained in:
Steve Ireland committed 2017-02-19 13:41:04 -05:00
1 parent 9bf8989960
commit e4955027d1
6 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -683,7 +683,7 @@ class Sale_lib
$print_option = '2'; // Do not include in list
}
$result &= $this->add_item($item_kit_item['item_id'], $item_kit_item['quantity'], $item_location, $discount, $price, null, null, null, $print_option, $print_option, $item_kit_item['stock_type']);
$result &= $this->add_item($item_kit_item['item_id'], $item_kit_item['quantity'], $item_location, $discount, $price, null, null, null, $print_option, $item_kit_item['stock_type']);
if($stock_warning == null)
{