Skip to content

Commit

Permalink
[#17] 采购模块
Browse files Browse the repository at this point in the history
为合同增添了几个字段
  • Loading branch information
eyeeco committed Jan 12, 2018
1 parent b58f8e4 commit e0e0469
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Procurement/serializers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
SupplierListSerializer, SupplierDetailSerializer,
BaseSupplyRelationshipSerializer, BaseSupplierCheckSerializer)

from .contact_detail import (
ContractDetailSerializer,)

from .bidding import (
BaseBiddingSheetSerializer, BiddingSheetListSerializer,
BaseBiddingApplicationSerializer, BiddingApplicationListSerializer,
Expand All @@ -36,6 +33,7 @@

from .comment import (BaseBiddingCommentSerializer,)

from .contact_detail import (ContractDetailSerializer,)

__all__ = [
'MaterialSubApplySerializer', 'MaterialSubApplyListSerializer',
Expand Down
6 changes: 6 additions & 0 deletions Procurement/serializers/contact_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@


class ContractDetailSerializer(serializers.ModelSerializer):
contract_number = serializers.CharField(
source='bidding_sheet.contract_number', read_only=True)
contract_amount = serializers.FloatField(
source='bidding_sheet.contract_amount', read_only=True)
billing_amount = serializers.FloatField(
source='bidding_sheet.billing_amount', read_only=True)

class Meta:
model = ContractDetail
Expand Down

0 comments on commit e0e0469

Please sign in to comment.