Method: ZATCA::UBL::CommonAggregateComponents::TaxTotal#rounding_amount_element

Defined in:
lib/zatca/ubl/common_aggregate_components/tax_total.rb

#rounding_amount_elementObject



45
46
47
48
49
# File 'lib/zatca/ubl/common_aggregate_components/tax_total.rb', line 45

def rounding_amount_element
  if @rounding_amount.present?
    ZATCA::UBL::BaseComponent.new(name: "cbc:RoundingAmount", value: @rounding_amount, attributes: {"currencyID" => @currency_id})
  end
end