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

fix web bug ---Ken

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