BV Commerce Forum
 » 
BV Commerce Support
 » 
General Support
 » 
Voiding shipment after shipping doesn't mark the product voided
 
        
            
            
    
        
Rank: Member
  Joined: 6/26/2008(UTC) Posts: 38
  
 
     | 
    
        
            
	      
                [4]  EXECUTIVE SUMMARY[/4] Take a test product, ship it via UPS, and then void it. The product (in BV) will still show up as shipped, but UPS.com will confirm that the shipping order has, in fact, been voided. [4]  FOR DEVELOPERS[/4] Open up "/BVAdmin/Orders/UPSOnlineTools_Void.aspx.vb" and put a breakpoint just under " Protected Sub btnGo_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnGo.Click" or line 14. I stepped through the BV code and watched all of the variables – I saw that BV was getting a “Success” return from UPS’s tracking system with no additional messages (which would have been error codes). I went to UPS.com and found this using the tracking number:  UPS.com confirms that the void operation worked just fine. From "/BVAdmin/Orders/UPSOnlineTools_Void.aspx.vb"Code:    Protected Sub btnGo_Click(ByVal sender As Object,                  ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnGo.Click         Dim req As New BVSoftware.BVC5.Shipping.Ups.VoidShipmentRequest         req.Settings.UserID = WebAppSettings.ShippingUPSUsername         req.Settings.Password = WebAppSettings.ShippingUPSPassword         req.Settings.License = WebAppSettings.ShippingUPSLicense         req.Settings.ServerUrl = WebAppSettings.ShippingUPSServer         req.ShipmentIdentificationNumber = Me.TrackingNumberField.Text.Trim
          Dim res As BVSoftware.BVC5.Shipping.Ups.VoidShipmentResponse         res = BVSoftware.BVC5.Shipping.Ups.XmlTools.SendVoidShipmentRequest(req)
          If Not res Is Nothing Then
              If WebAppSettings.ShippingUPSWriteXml = True Then                 Me.SaveXmlStringToFile("Void_" & req.ShipmentIdentificationNumber &                          "_Request.xml", req.XmlRequest)                 Me.SaveXmlStringToFile("Void_" & req.ShipmentIdentificationNumber &                          "_Response.xml", req.XmlResponse)             End If
              If res.Success = True Then                  Here is the part where success happens:                 The message prompt is updated, the tracking number box is reset,                 and that's it. No call I can see changing the shipping status of the                 BV item.Code:                 Me.msg.ShowOK("Shipment " & Me.TrackingNumberField.Text.Trim &                          " was voided.")                 Me.TrackingNumberField.Text = "1Z"             Else                 Me.msg.ShowWarning("Error " & res.ErrorCode & ": " & res.ErrorMessage)             End If         Else             msg.ShowWarning("Response object was empty")         End If
      End Sub
 
     | 
David Rodriguez Infinet Development, Inc.  | 
            
 
        
    
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
     | 
            
        
    
                           
    
        Forum Jump
         
    
    You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.