X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fpurchasing_data.php;h=0a7a01c3d02be91c6cae1fe1610af77d2ae9b32e;hb=8e299fb1bbc9113b4efdcb6973239041129c47cf;hp=7bb09a54e2056e62da090ee3504bce9a3fb154e4;hpb=cc9972b02f2bf4ece12da3431266e85e96872fb1;p=fa-stable.git
diff --git a/inventory/purchasing_data.php b/inventory/purchasing_data.php
index 7bb09a54..0a7a01c3 100644
--- a/inventory/purchasing_data.php
+++ b/inventory/purchasing_data.php
@@ -99,7 +99,9 @@ if (!isset($_POST['stock_id']))
$_POST['stock_id'] = get_global_stock_item();
echo "
" . _("Item:"). " ";
-echo stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
+//Chaitanya : All items can be purchased
+echo stock_items_list('stock_id', $_POST['stock_id'], false, true);
+//echo stock_purchasable_items_list('stock_id', $_POST['stock_id'], false, true);
echo "
";
@@ -122,7 +124,7 @@ else
}
else
{
- start_table("$table_style width=65%");
+ start_table(TABLESTYLE, "width=65%");
$th = array(_("Supplier"), _("Price"), _("Currency"),
_("Supplier's Unit"), _("Conversion Factor"), _("Supplier's Description"), "", "");
@@ -139,7 +141,7 @@ else
amount_decimal_cell($myrow["price"]);
label_cell($myrow["curr_code"]);
label_cell($myrow["suppliers_uom"]);
- qty_cell($myrow['conversion_factor'], false, user_exrate_dec());
+ qty_cell($myrow['conversion_factor'], false, 'max');
label_cell($myrow["supplier_description"]);
edit_button_cell("Edit".$myrow['supplier_id'], _("Edit"));
delete_button_cell("Delete".$myrow['supplier_id'], _("Delete"));
@@ -169,12 +171,12 @@ if ($Mode =='Edit')
$_POST['price'] = price_decimal_format($myrow["price"], $dec2);
$_POST['suppliers_uom'] = $myrow["suppliers_uom"];
$_POST['supplier_description'] = $myrow["supplier_description"];
- $_POST['conversion_factor'] = exrate_format($myrow["conversion_factor"]);
+ $_POST['conversion_factor'] = maxprec_format($myrow["conversion_factor"]);
}
br();
hidden('selected_id', $selected_id);
-start_table($table_style2);
+start_table(TABLESTYLE2);
if ($Mode == 'Edit')
{
@@ -191,10 +193,10 @@ text_row(_("Suppliers Unit of Measure:"), 'suppliers_uom', null, 50, 51);
if (!isset($_POST['conversion_factor']) || $_POST['conversion_factor'] == "")
{
- $_POST['conversion_factor'] = exrate_format(1);
+ $_POST['conversion_factor'] = maxprec_format(1);
}
amount_row(_("Conversion Factor (to our UOM):"), 'conversion_factor',
- exrate_format($_POST['conversion_factor']), null, null, user_exrate_dec() );
+ maxprec_format($_POST['conversion_factor']), null, null, 'max');
text_row(_("Supplier's Code or Description:"), 'supplier_description', null, 50, 51);
end_table(1);