Commit d2dc7810 authored by 季圣华's avatar 季圣华
Browse files

解决客户、供应商对账金额错误的bug

parent 15a5131e
......@@ -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; //期初应收
......
......@@ -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; //期初应收
......
Supports Markdown
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