|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
/**
|
|
|
|
|
* Created by yixian on 2017-02-05.
|
|
|
|
|
*/
|
|
|
|
|
define(['angular'], function (angular) {
|
|
|
|
|
define(['angular','decimal'], function (angular,decimal) {
|
|
|
|
|
'use strict';
|
|
|
|
|
var app = angular.module('invoiceApp', ['ui.router']);
|
|
|
|
|
app.config(['$stateProvider', function ($stateProvider) {
|
|
|
|
@ -67,6 +67,7 @@ define(['angular'], function (angular) {
|
|
|
|
|
$scope.tradeLogs = resp.data.data;
|
|
|
|
|
$scope.pagination = resp.data.pagination;
|
|
|
|
|
$scope.analysis = resp.data.analysis;
|
|
|
|
|
$scope.total_surcharge = decimal.add($scope.analysis.total_surcharge,$scope.analysis.tax_amount).toFixed(2);
|
|
|
|
|
$scope.analysis.refund_fee = angular.copy(Math.abs($scope.analysis.refund_fee));
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Search failed', content: resp.data.message, type: 'error'});
|
|
|
|
|