Add Warehouse instruction button in Inventory Shipment and open warehouse instruction screen

Issue No: IC-1574
Created 11/11/2015 1:36:14 AM
Type Task
Priority Major
Status Closed
Resolution Fixed
Fixed Version 15.4
Description Add Warehouse instruction button in Inventory Shipment and open warehouse instruction screen.   Call this function in InventoryShipmentViewController:   onWarehouseInstructionClick: function(button, e, eOpts) \{ var win = this.getView(); var vm = win.viewModel; var current = vm.data.current; var context = win.context;   if (current.phantom === true) return;   if (context.data.hasChanges()) \{ i21.functions.showErrorDialog('Please save changes before opening Warehouse Instructions screen'); return; \}   if (current.data.intWarehouseInstructionHeaderId !== null) \{ iRely.Functions.openScreen('Logistics.view.WarehouseInstructions', \{ action: 'edit', filters : [\{ column: 'intWarehouseInstructionHeaderId', value: current.data.intWarehouseInstructionHeaderId, conjunction: 'and'\}] \}); \} else \{ iRely.Functions.openScreen('Logistics.view.WarehouseInstructions', \{ action: 'new', intInventoryShipmentId : current.data.intShipmentId, strReferenceNumber : current.data.strReferenceNumber, intSourceType: 2, intCommodityId: current.data.intCommodityId, intCompanyLocationId: current.data.intCompanyLocationId, intCompanyLocationSubLocationId: current.data.intSubLocationId \}); \} \},     While opening Inventory Shipment screen, read intWarehouseInstructionHeaderId from tblLGWarehouseInstructionHeader table and supply to view already saved instructions.   In bill of lading report, add warehouse instructions same as the format given below (sub-report). If warehouse instructions are not entered, data will not be displayed in the report. You can use [dbo].[uspLGGetWarehouseInstructionReport] SP to get this data with intWarehouseInstructionHeaderId as parameter.   !pastedImage_d47089_0.png!