From b9372204a6357a1cb23af2bf97c66abef8b113c2 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 15 Apr 2025 11:06:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20update=5Finm=E5=85=B3=E4=BA=8E=E9=94=80?= =?UTF-8?q?=E5=94=AE=E5=8F=91=E8=B4=A7/=E5=85=B6=E4=BB=96=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/inm/services.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/inm/services.py b/apps/inm/services.py index b6236b46..e1b37566 100644 --- a/apps/inm/services.py +++ b/apps/inm/services.py @@ -253,10 +253,16 @@ class InmService: do_in(item) elif instance.type == MIO.MIO_TYPE_SALE_OUT: from apps.sam.services import SamService - cls.update_mb(instance, in_or_out) + if is_reverse: + cls.update_mb(instance, 1) + else: + cls.update_mb(instance, -1) SamService.mio_saleout(instance, is_reverse) elif instance.type == MIO.MIO_TYPE_OTHER_OUT: - cls.update_mb(instance, in_or_out) + if is_reverse: + cls.update_mb(instance, 1) + else: + cls.update_mb(instance, -1) elif instance.type == MIO.MIO_TYPE_DO_OUT: mioitems = MIOItem.objects.filter(mio=instance) if is_reverse: