fix: MIOPurSerializer添加supplier

This commit is contained in:
caoqianming 2024-04-07 15:18:41 +08:00
parent 0cf9f14a5c
commit 29f085253c
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ class MIOSaleSerializer(CustomModelSerializer):
class Meta:
model = MIO
fields = ['id', 'number', 'note', 'order', 'inout_date']
fields = ['id', 'number', 'note', 'order', 'inout_date', 'customer']
def create(self, validated_data):
validated_data['type'] = MIO.MIO_TYPE_SALE_OUT
@ -207,7 +207,7 @@ class MIOPurSerializer(CustomModelSerializer):
class Meta:
model = MIO
fields = ['id', 'number', 'note', 'pu_order', 'inout_date']
fields = ['id', 'number', 'note', 'pu_order', 'inout_date', 'supplier']
def create(self, validated_data):
validated_data['type'] = MIO.MIO_TYPE_PUR_IN