Commit 69aab9f3 authored by chase's avatar chase

Merge branch 'dev_mysql' of http://code.tech.tax.asia.pwcinternal.com/root/atms into dev_mysql

parents 53b2f354 f182be29
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
var year=now.getFullYear(); var year=now.getFullYear();
var vatMonth=vatSessionService.month; var vatMonth=vatSessionService.month;
if(vatSessionService.year==year){ if(vatSessionService.year==year){
if(vatMonth===month-1){ if(vatMonth===month||vatMonth===month-1){
return false; return false;
}else{ }else{
return true; return true;
...@@ -406,7 +406,7 @@ ...@@ -406,7 +406,7 @@
allowOutsideClick: false, allowOutsideClick: false,
confirmButtonText: $translate.instant('Yes'), confirmButtonText: $translate.instant('Yes'),
cancelButtonText: $translate.instant('No'), cancelButtonText: $translate.instant('No'),
closeOnConfirm: true, closeOnConfirm: false,
closeOnCancel: true closeOnCancel: true
}, },
function (isConfirm) { function (isConfirm) {
...@@ -478,6 +478,7 @@ ...@@ -478,6 +478,7 @@
} }
else { else {
doStartCaculate2(false); doStartCaculate2(false);
swal.close();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment