add :originator_type to Invoice::AdjustmentSerializer

This commit is contained in:
Mohamed ABDELLANI
2023-07-14 17:30:52 +01:00
parent 68a6fb132a
commit b027387bee

View File

@@ -3,7 +3,7 @@
class Invoice
class AdjustmentSerializer < ActiveModel::Serializer
attributes :adjustable_type, :label, :included_tax_total, :additional_tax_total, :amount,
:currency
:currency, :originator_type
has_many :tax_rates, serializer: Invoice::TaxRateSerializer
def tax_rates