Permalink
Browse files

Now showing invoice number, po number, and customer reference on labels

  • Loading branch information...
1 parent 0350311 commit cfe33dcc983125139ef9c2ac853f4cd7a6487ef3 @jimmybaker committed Jan 22, 2012
Showing with 19 additions and 5 deletions.
  1. +13 −2 lib/shippinglogic/fedex/request.rb
  2. +6 −3 lib/shippinglogic/fedex/ship.rb
@@ -110,9 +110,20 @@ def build_package(b)
end
b.CustomerReferences do
- b.CustomerReferenceType customer_reference_type
- b.Value customer_reference_value
+ b.CustomerReferenceType 'CUSTOMER_REFERENCE'
+ b.Value customer_reference_number
end
+
+ b.CustomerReferences do
+ b.CustomerReferenceType 'INVOICE_NUMBER'
+ b.Value invoice_number
+ end
+
+ b.CustomerReferences do
+ b.CustomerReferenceType 'P_O_NUMBER'
+ b.Value po_number
+ end
+
#
# b.SpecialServicesRequested do
# b.SpecialServiceTypes 'DANGEROUS_GOODS'
@@ -151,9 +151,12 @@ class Shipment; attr_accessor :rate, :currency, :delivery_date, :tracking_number
attribute :package_height, :integer
attribute :package_dimension_units, :string, :default => "IN"
- # customer reference
- attribute :customer_reference_type, :string, :default => 'CUSTOMER_REFERENCE'
- attribute :customer_reference_value, :string, :default => 'TC001_01_PT1_ST01_PK01_SNDUS_RCPCA_POS'
+ # customer references
+ attribute :invoice_number, :string, :default => ''
+ attribute :po_number, :string, :default => ''
+ attribute :customer_reference_number, :string, :default => ''
+ attribute :department_number, :string, :default => ''
+ attribute :ship_id, :string, :default => ''
# monetary options
attribute :currency_type, :string

0 comments on commit cfe33dc

Please sign in to comment.