projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed warnings related to empty item/customer/supplier selector in search modes.
[fa-stable.git]
/
inventory
/
prices.php
diff --git
a/inventory/prices.php
b/inventory/prices.php
index 70dd97d8a39f4a4639fb885e12ff714e0ad32899..7132eb624c7fab66153285b2cb4e8c6fd38b9445 100644
(file)
--- a/
inventory/prices.php
+++ b/
inventory/prices.php
@@
-200,7
+200,8
@@
if (!isset($_POST['price'])) {
}
$kit = get_item_code_dflts($_POST['stock_id']);
}
$kit = get_item_code_dflts($_POST['stock_id']);
-small_amount_row(_("Price:"), 'price', null, '', _('per') .' '.$kit["units"]);
+$units = $kit ? $kit["units"] : '';
+small_amount_row(_("Price:"), 'price', null, '', _('per') .' '.$units);
end_table(1);
if ($calculated)
end_table(1);
if ($calculated)