projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added POS and cash sale support, some smaller bugfixes.
[fa-stable.git]
/
inventory
/
inquiry
/
stock_status.php
diff --git
a/inventory/inquiry/stock_status.php
b/inventory/inquiry/stock_status.php
index c0509a73f38d307bed659059efdceb7b97d98912..2461c18899fde8069f34213860c7febcb1132c5c 100644
(file)
--- a/
inventory/inquiry/stock_status.php
+++ b/
inventory/inquiry/stock_status.php
@@
-18,7
+18,7
@@
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']))
+if (
list_updated('stock_id'))
$Ajax->activate('status_tbl');
//----------------------------------------------------------------------------------------------------
$Ajax->activate('status_tbl');
//----------------------------------------------------------------------------------------------------
@@
-61,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
@@
-110,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();
}
@@
-122,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();
}