Commit 8760935f authored by eddie.woo's avatar eddie.woo

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

parents 6b7e0730 24ecceed
...@@ -706,6 +706,8 @@ public class ReportServiceImpl { ...@@ -706,6 +706,8 @@ public class ReportServiceImpl {
private Integer convertType(Integer dataSourceType) { private Integer convertType(Integer dataSourceType) {
if (dataSourceType.equals(FormulaDataSourceDetailType.InputInvoiceDataSourceDto.getCode())) { if (dataSourceType.equals(FormulaDataSourceDetailType.InputInvoiceDataSourceDto.getCode())) {
return CellDataSourceType.InputInvoice.getCode(); return CellDataSourceType.InputInvoice.getCode();
} else if(dataSourceType.equals(FormulaDataSourceDetailType.OutputInvoiceDataSourceDto.getCode())){
return CellDataSourceType.OutputInvoice.getCode();
} else { } else {
return CellDataSourceType.Formula.getCode(); return CellDataSourceType.Formula.getCode();
} }
...@@ -714,7 +716,9 @@ public class ReportServiceImpl { ...@@ -714,7 +716,9 @@ public class ReportServiceImpl {
private Integer convetToFType(Integer cellDataSourceType) { private Integer convetToFType(Integer cellDataSourceType) {
if (cellDataSourceType.equals(CellDataSourceType.InputInvoice.getCode())) { if (cellDataSourceType.equals(CellDataSourceType.InputInvoice.getCode())) {
return FormulaDataSourceType.InputInvoice.getCode(); return FormulaDataSourceType.InputInvoice.getCode();
} else { } if(cellDataSourceType.equals(CellDataSourceType.OutputInvoice.getCode())){
return FormulaDataSourceType.OutputInvoice.getCode();
}else {
return FormulaDataSourceType.Other.getCode(); return FormulaDataSourceType.Other.getCode();
} }
} }
......
...@@ -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 ? sourceData.invoiceDate.substring(0, 10) : ''; 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,7 +278,9 @@ ...@@ -278,7 +278,9 @@
} }
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) {
$scope.readonly = true;
if(data && data.result) if(data && data.result)
updateTasksStatus(data.data); updateTasksStatus(data.data);
if(data.data.status=='Begin'){ if(data.data.status=='Begin'){
......
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