fix: MIOPurSerializer添加supplier
This commit is contained in:
parent
0cf9f14a5c
commit
29f085253c
|
@ -183,7 +183,7 @@ class MIOSaleSerializer(CustomModelSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = MIO
|
model = MIO
|
||||||
fields = ['id', 'number', 'note', 'order', 'inout_date']
|
fields = ['id', 'number', 'note', 'order', 'inout_date', 'customer']
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
validated_data['type'] = MIO.MIO_TYPE_SALE_OUT
|
validated_data['type'] = MIO.MIO_TYPE_SALE_OUT
|
||||||
|
@ -207,7 +207,7 @@ class MIOPurSerializer(CustomModelSerializer):
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = MIO
|
model = MIO
|
||||||
fields = ['id', 'number', 'note', 'pu_order', 'inout_date']
|
fields = ['id', 'number', 'note', 'pu_order', 'inout_date', 'supplier']
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
validated_data['type'] = MIO.MIO_TYPE_PUR_IN
|
validated_data['type'] = MIO.MIO_TYPE_PUR_IN
|
||||||
|
|
Loading…
Reference in New Issue