MaiXinRong 5 år sedan
förälder
incheckning
f0a02efc14
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      app/lib/stage_im.js

+ 2 - 1
app/lib/stage_im.js

@@ -251,7 +251,8 @@ class StageIm {
                 (!im.name || im.name === d.name) &&
                 (!im.name || im.name === d.name) &&
                 (!im.unit || im.unit === d.unit) &&
                 (!im.unit || im.unit === d.unit) &&
                 self.ctx.helper.checkZero(self.ctx.helper.sub(im.unit_price, d.unit_price)) &&
                 self.ctx.helper.checkZero(self.ctx.helper.sub(im.unit_price, d.unit_price)) &&
-                (!im.pid || im.pid === d.pid);
+                (!im.pid || im.pid === d.pid) &&
+                (!im.pos_name || im.pos_name === d.pos_name);
         });
         });
         if (cd) {
         if (cd) {
             this._.assignInWith(im, cd, function(oV, sV, key) {
             this._.assignInWith(im, cd, function(oV, sV, key) {