X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=blobdiff_plain;f=inventory%2Fmanage%2Fitem_codes.php;h=1881258c22593c9cc1c66a47c9bef3530946ca45;hp=0742780aaa272753e7d2cbfa7e017e2a6b3e7b2f;hb=2f3375b4493c1b1e0b17c2801298275f22f8d76e;hpb=5189bc26f377d678d0a3d88a2b623d69c0e1a278 diff --git a/inventory/manage/item_codes.php b/inventory/manage/item_codes.php index 0742780a..1881258c 100644 --- a/inventory/manage/item_codes.php +++ b/inventory/manage/item_codes.php @@ -113,11 +113,15 @@ echo "
"; set_global_stock_item($_POST['stock_id']); +$units = $dec = ''; $result = get_item_code_dflts($_POST['stock_id']); -$dec = $result['decimals']; -$units = $result['units']; -$dflt_desc = $result['description']; -$dflt_cat = $result['category_id']; +if ($result) { + $dec = $result['decimals']; + $units = $result['units']; + $dflt_desc = $result['description']; + $dflt_cat = $result['category_id']; +} + $result = get_all_item_codes($_POST['stock_id']); div_start('code_table');