add hidden constant
This commit is contained in:
parent
f52ae35dc6
commit
0c40a6dda5
@ -1291,16 +1291,18 @@ if ($action == 'create')
|
|||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
print $form->select_company('', 'socid', '(s.client = 1 OR s.client = 2 OR s.client = 3) AND status=1', 1);
|
print $form->select_company('', 'socid', '(s.client = 1 OR s.client = 2 OR s.client = 3) AND status=1', 1);
|
||||||
// reload page to retrieve customer informations
|
// reload page to retrieve customer informations
|
||||||
print '<script type="text/javascript">
|
if (!empty($conf->global->RELOAD_PAGE_ON_CUSTOMER_CHANGE))
|
||||||
$(document).ready(function() {';
|
{
|
||||||
print '
|
print '<script type="text/javascript">
|
||||||
$("#socid").change(function() {
|
$(document).ready(function() {
|
||||||
var socid = $(this).val();
|
$("#socid").change(function() {
|
||||||
// reload page
|
var socid = $(this).val();
|
||||||
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&ref_client="+$("input[name=ref_client]").val();
|
// reload page
|
||||||
|
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&ref_client="+$("input[name=ref_client]").val();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
</script>';
|
||||||
</script>';
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
print '</tr>' . "\n";
|
print '</tr>' . "\n";
|
||||||
|
|||||||
@ -1356,16 +1356,18 @@ if ($action == 'create' && $user->rights->commande->creer)
|
|||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
print $form->select_company('', 'socid', 's.client = 1 OR s.client = 3', 1);
|
print $form->select_company('', 'socid', 's.client = 1 OR s.client = 3', 1);
|
||||||
// reload page to retrieve customer informations
|
// reload page to retrieve customer informations
|
||||||
print '<script type="text/javascript">
|
if (!empty($conf->global->RELOAD_PAGE_ON_CUSTOMER_CHANGE))
|
||||||
$(document).ready(function() {';
|
{
|
||||||
print '
|
print '<script type="text/javascript">
|
||||||
$("#socid").change(function() {
|
$(document).ready(function() {
|
||||||
var socid = $(this).val();
|
$("#socid").change(function() {
|
||||||
// reload page
|
var socid = $(this).val();
|
||||||
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&ref_client="+$("input[name=ref_client]").val();
|
// reload page
|
||||||
|
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&ref_client="+$("input[name=ref_client]").val();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
</script>';
|
||||||
</script>';
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
print '</tr>' . "\n";
|
print '</tr>' . "\n";
|
||||||
|
|||||||
@ -1960,16 +1960,18 @@ if ($action == 'create')
|
|||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
print $form->select_company('', 'socid', 's.client = 1 OR s.client = 3', 1);
|
print $form->select_company('', 'socid', 's.client = 1 OR s.client = 3', 1);
|
||||||
// reload page to retrieve customer informations
|
// reload page to retrieve customer informations
|
||||||
print '<script type="text/javascript">
|
if (!empty($conf->global->RELOAD_PAGE_ON_CUSTOMER_CHANGE))
|
||||||
$(document).ready(function() {';
|
{
|
||||||
print '
|
print '<script type="text/javascript">
|
||||||
$("#socid").change(function() {
|
$(document).ready(function() {
|
||||||
var socid = $(this).val();
|
$("#socid").change(function() {
|
||||||
// reload page
|
var socid = $(this).val();
|
||||||
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid;
|
// reload page
|
||||||
|
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
</script>';
|
||||||
</script>';
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
print '</tr>' . "\n";
|
print '</tr>' . "\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user