Skip to content

Commit

Permalink
Price: optional BaseQuantity.
Browse files Browse the repository at this point in the history
  • Loading branch information
stas authored and corny committed Jun 26, 2024
1 parent 950288c commit 7476528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xrechnung/price.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(**kwargs)
def to_xml(xml)
xml.cac :Price do
xml.cbc :PriceAmount, *price_amount.xml_args
xml.cbc :BaseQuantity, *base_quantity.xml_args
xml.cbc(:BaseQuantity, *base_quantity.xml_args) unless base_quantity.nil?
allowance_charge&.to_xml(xml)
end
end
Expand Down

0 comments on commit 7476528

Please sign in to comment.