Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cfe33dcc983125139ef9c2ac853f4cd7a6487ef3 1 parent 0350311
@jimmybaker authored
View
15 lib/shippinglogic/fedex/request.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'
View
9 lib/shippinglogic/fedex/ship.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.