Skip to content

Commit

Permalink
chg: can define customer number
Browse files Browse the repository at this point in the history
  • Loading branch information
Skulli committed Jun 27, 2024
1 parent c9457fc commit 26ed3a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/secretariat/trade_party.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@
module Secretariat
TradeParty = Struct.new("TradeParty",
:name, :street1, :street2, :city, :postal_code, :country_id, :vat_id, :contact_name, :contact_phone, :contact_fax, :contact_email,
:tax_id, :registration_number,
:tax_id, :registration_number, :trade_party_id,
keyword_init: true) do
def to_xml(xml, exclude_tax: false, version: 2)
if trade_party_id.to_s != ""
xml["ram"].Name trade_party_id
end
xml["ram"].Name name
if registration_number.to_s != ""
xml["ram"].SpecifiedLegalOrganization do
Expand Down

0 comments on commit 26ed3a3

Please sign in to comment.