diff --git a/erp_web/pages/reports/customer_account.html b/erp_web/pages/reports/customer_account.html index f3966d01..d26fd2a7 100644 --- a/erp_web/pages/reports/customer_account.html +++ b/erp_web/pages/reports/customer_account.html @@ -241,7 +241,7 @@ supType: "customer" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyA = res.data.rows.getAllMoney.toFixed(2) - 0; $.ajax({ type: "get", @@ -254,7 +254,7 @@ supType: "customer" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyB = res.data.rows.getAllMoney.toFixed(2) - 0; var money = moneyA + moneyB; var moneyBeginNeedGet = beginNeedGet - 0; //期初应收 @@ -289,7 +289,7 @@ supType: "customer" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyA = res.data.rows.getAllMoney.toFixed(2) - 0; $.ajax({ type: "get", @@ -302,7 +302,7 @@ supType: "customer" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyB = res.data.rows.getAllMoney.toFixed(2) - 0; var money = moneyA + moneyB; var moneyBeginNeedGet = beginNeedGet - 0; //期初应收 diff --git a/erp_web/pages/reports/vendor_account.html b/erp_web/pages/reports/vendor_account.html index c5cb9740..119020c5 100644 --- a/erp_web/pages/reports/vendor_account.html +++ b/erp_web/pages/reports/vendor_account.html @@ -240,7 +240,7 @@ supType: "vendor" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyA = res.data.rows.getAllMoney.toFixed(2) - 0; $.ajax({ type: "get", @@ -253,7 +253,7 @@ supType: "vendor" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyB = res.data.rows.getAllMoney.toFixed(2) - 0; var money = moneyA + moneyB; var moneyBeginNeedGet = beginNeedGet - 0; //期初应收 @@ -288,7 +288,7 @@ supType: "vendor" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyA = res.data.rows.getAllMoney.toFixed(2) - 0; $.ajax({ type: "get", @@ -301,7 +301,7 @@ supType: "vendor" }), success: function (res) { - if (res && res.code === 200 && res.data && res.data.rows && res.data.rows.getAllMoney) { + if (res && res.code === 200 && res.data && res.data.rows) { var moneyB = res.data.rows.getAllMoney.toFixed(2) - 0; var money = moneyA + moneyB; var moneyBeginNeedGet = beginNeedGet - 0; //期初应收