Commit 24ecceed authored by sherlock's avatar sherlock

Merge branch 'dev_oracle_sherlock' into 'dev_oracle'

bug 19878

See merge request root/atms!182
parents 723e8ef1 b573730a
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,7 @@
//销项数据源 //销项数据源
case enums.formulaDataSourceType.OutputInvoice: case enums.formulaDataSourceType.OutputInvoice:
obj.period = sourceData.period; obj.period = sourceData.period;
obj.date = sourceData.invoiceDate ? (new Date(sourceData.invoiceDate)).dateTimeToString('yyyyMMdd') : " obj.date = sourceData.invoiceDate ? (new Date(sourceData.invoiceDate)).dateTimeToString('yyyyMMdd') : "";
obj.acquiringEnterprise = sourceData.buyerName; obj.acquiringEnterprise = sourceData.buyerName;
obj.invoiceCode = sourceData.invoiceCode; obj.invoiceCode = sourceData.invoiceCode;
obj.invoiceNumber = sourceData.invoiceNumber; obj.invoiceNumber = sourceData.invoiceNumber;
...@@ -1120,6 +1120,10 @@ ...@@ -1120,6 +1120,10 @@
if (report && report.result && report.data) { if (report && report.result && report.data) {
$scope.reportId = report.data.id; $scope.reportId = report.data.id;
getReportData(); getReportData();
} else if(!(report.result && report.data)){
$scope.reportData = [];
$scope.formulaBlocks = [];
$scope.manualDataSources = [];
} }
}); });
} }
......
...@@ -278,8 +278,10 @@ ...@@ -278,8 +278,10 @@
} }
function doStartCaculate2(isMergeManualDataSource) { function doStartCaculate2(isMergeManualDataSource) {
vatReportService.generateAll(vatSessionService.project.id, isMergeManualDataSource, vatSessionService.month, vatSessionService.logUser.id ? vatSessionService.logUser.id : "").success(function (data) { vatReportService.generateAll(vatSessionService.project.id, isMergeManualDataSource, vatSessionService.month, vatSessionService.logUser.id ? vatSessionService.logUser.id : "").success(function (data) {
if(data && data.result) $scope.readonly = true;
if(data && data.result)
updateTasksStatus(data.data); updateTasksStatus(data.data);
if(data.data.status=='Begin'){ if(data.data.status=='Begin'){
$scope.timer= $interval(function(){ $scope.timer= $interval(function(){
......
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