! -> Note
$ -> Affected files
+30-Jun-2009 Joe Hunt
+# Small annoying bug-fixes in items.php and items_trans_db.inc
+$ /inventory/manage/items.php
+ /inventory/includes/db/items_trans_db.inc
+
30-Jun-2009 Joe Hunt
+ Implemented automatic price calculation of items from std. cost.
$ /admin/company_preferences.php
$qoh = get_qoh_on_date($_POST['stock_id']);
+ $date_ = Today();
if ($qoh > 0)
{
$update_no = get_next_trans_no(systypes::cost_update());
- $date_ = Today();
if (!is_date_in_fiscalyear($date_))
$date_ = end_fiscalyear();
unset($_POST['NewStockID']);
unset($_POST['dimension_id']);
unset($_POST['dimension2_id']);
+ unset($_POST['no_sale']);
}
//------------------------------------------------------------------------------------
display_notification(_("A new item has been added."));
$_POST['stock_id'] = $_POST['NewStockID'] =
$_POST['description'] = $_POST['long_description'] = '';
+ $_POST['no_sale'] = 0;
set_focus('NewStockID');
}
$Ajax->activate('_page_body');