projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed ajax update on account add.
[fa-stable.git]
/
inventory
/
inquiry
/
stock_status.php
diff --git
a/inventory/inquiry/stock_status.php
b/inventory/inquiry/stock_status.php
index acaa0c0f493ddffb40a466291e40d99eb6016ccd..ae0764567c14fbde263f5cf1f7caa619755d4cbf 100644
(file)
--- a/
inventory/inquiry/stock_status.php
+++ b/
inventory/inquiry/stock_status.php
@@
-18,6
+18,8
@@
include_once($path_to_root . "/includes/data_checks.inc");
include_once($path_to_root . "/inventory/includes/inventory_db.inc");
include_once($path_to_root . "/inventory/includes/inventory_db.inc");
+if (isset($_POST['_stock_id_update']))
+ $Ajax->activate('status_tbl');
//----------------------------------------------------------------------------------------------------
check_db_has_stock_items(_("There are no items defined in the system."));
//----------------------------------------------------------------------------------------------------
check_db_has_stock_items(_("There are no items defined in the system."));
@@
-46,6
+48,7
@@
if (is_service($mb_flag))
$loc_details = get_loc_details($_POST['stock_id']);
$loc_details = get_loc_details($_POST['stock_id']);
+div_start('status_tbl');
start_table($table_style);
if ($kitset_or_service == true)
start_table($table_style);
if ($kitset_or_service == true)
@@
-58,6
+61,7
@@
else
_("Demand"), _("Available"), _("On Order"));
}
table_header($th);
_("Demand"), _("Available"), _("On Order"));
}
table_header($th);
+$dec = get_qty_dec($_POST['stock_id']);
$j = 1;
$k = 0; //row colour counter
$j = 1;
$k = 0; //row colour counter
@@
-107,11
+111,11
@@
while ($myrow = db_fetch($loc_details))
}
label_cell($myrow["location_name"]);
}
label_cell($myrow["location_name"]);
- qty_cell($qoh);
- qty_cell($myrow["reorder_level"]);
- qty_cell($demand_qty);
- qty_cell($qoh - $demand_qty);
- qty_cell($qoo);
+ qty_cell($qoh
, false, $dec
);
+ qty_cell($myrow["reorder_level"]
, false, $dec
);
+ qty_cell($demand_qty
, false, $dec
);
+ qty_cell($qoh - $demand_qty
, false, $dec
);
+ qty_cell($qoo
, false, $dec
);
end_row();
}
end_row();
}
@@
-119,7
+123,7
@@
while ($myrow = db_fetch($loc_details))
{
/* It must be a service or kitset part */
label_cell($myrow["location_name"]);
{
/* It must be a service or kitset part */
label_cell($myrow["location_name"]);
- qty_cell($demand_qty);
+ qty_cell($demand_qty
, false, $dec
);
end_row();
}
end_row();
}
@@
-132,7
+136,7
@@
while ($myrow = db_fetch($loc_details))
}
end_table();
}
end_table();
-
+div_end();
end_form();
end_page();
end_form();
end_page();