Module: XmlConv::PostProcess::Soap

Defined in:
lib/postprocess/soap.rb

Class Method Summary collapse

Class Method Details

.update_partner(transaction) ⇒ Object



7
8
9
10
11
12
# File 'lib/postprocess/soap.rb', line 7

def Soap.update_partner(transaction)
  if((bdd = transaction.model) && (delivery = bdd.deliveries.first) \
     && (bsr = delivery.bsr) && (customer = bsr.customer))
    transaction.partner = customer.acc_id || customer.party_id
  end
end