|
@@ -615,9 +615,9 @@ function tableDataRemake(changeListData) {
|
|
let pushbwmx = '0;0';
|
|
let pushbwmx = '0;0';
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
- return (item.bwmx === undefined || item.bwmx === clinfo[2]) && item.quantity === parseFloat(clinfo[5]);
|
|
|
|
|
|
+ return (item.bwmx === undefined || item.bwmx === clinfo[2]) && (item.quantity !== null ? item.quantity === parseFloat(clinfo[5]) : 0 === parseFloat(clinfo[5]));
|
|
});
|
|
});
|
|
- pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + leafInfo.quantity;
|
|
|
|
|
|
+ pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
} else {
|
|
} else {
|
|
pushbwmx = '0;' + (listinfo.quantity !== null ? listinfo.quantity : 0);
|
|
pushbwmx = '0;' + (listinfo.quantity !== null ? listinfo.quantity : 0);
|
|
}
|
|
}
|
|
@@ -634,9 +634,9 @@ function tableDataRemake(changeListData) {
|
|
let pushbwmx = '0;0';
|
|
let pushbwmx = '0;0';
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
if (listinfo.leafXmjs !== undefined) {
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
const leafInfo = listinfo.leafXmjs.find(function (item) {
|
|
- return (item.bwmx === undefined || item.bwmx === clinfo[2]) && item.quantity === parseFloat(clinfo[5]);
|
|
|
|
|
|
+ return (item.bwmx === undefined || item.bwmx === clinfo[2]) && (item.quantity !== null ? item.quantity === parseFloat(clinfo[5]) : 0 === parseFloat(clinfo[5]));
|
|
});
|
|
});
|
|
- pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + leafInfo.quantity;
|
|
|
|
|
|
+ pushbwmx = leafInfo.code + '_' + (leafInfo.bwmx !== undefined ? leafInfo.bwmx : '') + ';' + (leafInfo.quantity !== null ? leafInfo.quantity : 0);
|
|
} else {
|
|
} else {
|
|
pushbwmx = '0;' + (listinfo.quantity !== null ? listinfo.quantity : 0);
|
|
pushbwmx = '0;' + (listinfo.quantity !== null ? listinfo.quantity : 0);
|
|
}
|
|
}
|