77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# File 'lib/solidus_bactracs/api/shipment_serializer.rb', line 77
def line_items_xml(xml: nil, line_item: nil, variant: nil, order: nil)
shipment_notice = @shipment.shipment_notice
xml.RMALine {
xml.DFItem find_sku_variant(variant)
xml.DFModelNum find_sku_variant(variant)
xml.DFCategory
xml.DFCategoryDescription
xml.DFQuantity line_item.quantity
xml.DFUnitPrice line_item.price
xml.DFSerialNumbers
xml.Ud1s
xml.CurrentWarranties
xml.DFComments
xml.DFStatus @shipment.state
xml.PurchaseDate order.completed_at.strftime(SolidusBactracs::ExportHelper::BACTRACS_DATE_FORMAT)
xml.ServiceProvider shipment_notice&.service
xml.WarrantyRepair
xml.RMALineTest
xml.InboundShipWeight variant.weight.to_f
xml.RPLocation get_rp_location
xml.DFPart get_df_part
}
end
|