Esempio n. 1
0
class InvoiceLineSerializer(serializers.ModelSerializer):
    expense = ExpenseLineComponentSerializer(many=False)
    product = ProductLineComponentSerializer(many=False)
    service = ServiceLineComponentSerializer(many=False)
    tax = TaxSerializer(many=False)

    class Meta:
        model = InvoiceLine
        fields = "__all__"
Esempio n. 2
0
class ProductComponentSerializer(serializers.ModelSerializer):
    tax = TaxSerializer(many=False)

    class Meta:
        model = ProductComponent
        fields = "__all__"
Esempio n. 3
0
class ConfigSerializer(serializers.ModelSerializer):
    sales_tax = TaxSerializer(many=False)

    class Meta:
        model = SalesConfig
        fields = "__all__"