Commit 5dd5d411 authored by ken-y's avatar ken-y

fix web bug ---Ken

parent f335718d
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
(function initialize() { (function initialize() {
$log.debug('VatPreviewInputInvoiceController.ctor()...'); $log.debug('VatPreviewInputInvoiceController.ctor()...');
initPeriods(); initPeriods();
showPopover(); initDatePicker1();
$scope.gridOptions = { $scope.gridOptions = {
rowHeight: constant.UIGrid.rowHeight, rowHeight: constant.UIGrid.rowHeight,
selectionRowHeaderWidth: constant.UIGrid.rowHeight, selectionRowHeaderWidth: constant.UIGrid.rowHeight,
......
...@@ -102,10 +102,12 @@ ...@@ -102,10 +102,12 @@
$scope.gridOptions.data = data.list; $scope.gridOptions.data = data.list;
$scope.queryProfitLossResult.pageInfo = data; $scope.queryProfitLossResult.pageInfo = data;
computeProfitLossPage(); computeProfitLossPage();
$scope.ledgerName = data.list[0].ledgerName; if(data.size>0){
$scope.currencyCode = data.list[0].ledgerCurrencyCode; $scope.ledgerName = data.list[0].ledgerName;
$scope.status = data.list[0].status; $scope.currencyCode = data.list[0].ledgerCurrencyCode;
$scope.importDate = $filter('date')(data.list[0].date, "yyyy-MM-dd hh:mm:ss"); $scope.status = data.list[0].status;
$scope.importDate = $filter('date')(data.list[0].date, "yyyy-MM-dd hh:mm:ss");
}
} }
}); });
}; };
......
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