init
This commit is contained in:
42
include/javascript/action_helper.js
Normal file
42
include/javascript/action_helper.js
Normal file
@@ -0,0 +1,42 @@
|
||||
function checkIsTheSameContractor(){
|
||||
var error=false;
|
||||
var val='';
|
||||
$("input:checkbox[name='mass[]']:checked").each(function() {
|
||||
|
||||
if(val==''){
|
||||
|
||||
val=$("#mass_"+$(this).val()).val();
|
||||
|
||||
if($("#mass_inv_"+$(this).val()).val()!=''){
|
||||
error=true;
|
||||
}
|
||||
} else {
|
||||
if( $("#mass_"+$(this).val()).val()!=val){
|
||||
error=true;
|
||||
}
|
||||
val=$("#mass_"+$(this).val()).val();
|
||||
if($("#mass_inv_"+$(this).val()).val()!=''){
|
||||
error=true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
return error;
|
||||
|
||||
}
|
||||
|
||||
|
||||
function gotoInvoice(){
|
||||
var error=false;
|
||||
var val='';
|
||||
var ids=new Array();
|
||||
$("input:checkbox[name='mass[]']:checked").each(function() {
|
||||
$(this).val();
|
||||
ids.push( $(this).val());
|
||||
|
||||
});
|
||||
|
||||
window.open("index.php?module=EcmInvoiceOuts&action=EditView&isWZ=true&wz_record_zb="+ids.join(','));
|
||||
}
|
||||
Reference in New Issue
Block a user