// if (location.protocol === 'https:') {
// 	var url_global = "https://rms.rusera.co.id/";
// } else {
// 	var url_global = "http://rms.rusera.co.id/";
// }
var url_global = "https://rms.rusera.co.id/";
var api_global = url_global+"api/";

//API Inventory
var api_inv_list = api_global+"api_inventory.php?action=get_data";
var api_inv_shipment = api_global+"api_inventory.php?action=get_data_shipment";
var api_inv_insert = api_global+"api_inventory.php?action=insert";
var api_inv_update = api_global+"api_inventory.php?action=update";
var api_inv_detail = api_global+"api_inventory.php?action=get_detail";

//API Brand
var api_select_brand = api_global+"api_brand.php?action=get_data";

//API Client
var api_client_list = api_global+"api_client.php?action=get_data_list";
var api_client_insert = api_global+"api_client.php?action=insert";
var api_client_edit = api_global+"api_client.php?action=edit";
var api_client_delete = api_global+"api_client.php?action=delete";
var api_client_select = api_global+"api_client.php?action=get_data_select";
var api_client_detail = api_global+"api_client.php?action=get_detail";

//API Region
var api_region_select = api_global+"api_region.php?action=get_data_select";

//API PO
var api_po_total = api_global+"api_po.php?action=get_total";
var api_po_list = api_global+"api_po.php?action=get_data";

//API history
var api_history_list = api_global+"api_history.php?action=get_data";