client/skr/models/SalesOrder.coffee in stockor-0.2 vs client/skr/models/SalesOrder.coffee in stockor-0.3.0

- old
+ new

@@ -64,9 +64,10 @@ @unset('order_total') onCustomerChange: -> return unless @isNew() associations = ['billing_address', 'shipping_address'] - + for attr in ['terms_id'] + @set(attr, @customer[attr]) @customer.withAssociations(associations).then => for name in associations @associations.replace(@, name, @customer[name])