卡扣凭证

This commit is contained in:
G 2018-12-13 16:53:59 +08:00
parent 03259c40a1
commit cf64fce9bc
2 changed files with 5 additions and 5 deletions

View File

@ -214,11 +214,11 @@
var res = RunJavaMethodTrans("com.tenwa.lease.app.quartzmession.Checkfordeduction", "execute", "contract_number="+contract_number);
if (res== "true") {
alert("生成凭证成功!");
alert("执行成功!");
location.reload();
}else{
alert("生成凭证失败!");
alert("执行失败!");
return;
}
}

View File

@ -142,18 +142,18 @@ public class Checkfordeduction {
}
}
public boolean execute(JBOTransaction tx){
public String execute(JBOTransaction tx){
try{
initLVRentIncome();
for(String voucherno:voucher_nos){
CreateVoucher(voucherno);
}
return true;
return "true";
}catch (Exception e){
e.printStackTrace();
return false;
return "false";
}
}