var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super(...arguments);this.newvalue=0;this.ItemIds=[0];this.OrderItemIds=[0];this.DcTypeName="";this.LoBId=0;this.AddressId=0;this.IsWidget=!1;this.BranchId=0;this.IsFormEdit=!1;this.InvoiceId=0;this.OrderId=0;this.ItemType="";this.DcId=0;this.IsDirectAllocation=!1;this.IsDirectDC=!1;this.IsEditDC=!1;this.DeleteDcItems=[];this.CheckAvailability=!0;this.AutoMrp=!1;this.IsAddItem=!1;this.SettingValue="";this.DctypeId=0;this.IsFromOrder=!1;this.IsFromInvoice=!1;this.ItemCount=0;this.OrderTypeId=0;this.IsTransfer=!1;this.IsClaim=!1;this.InventoryApplyType=1;this.IsDraft=!1;this.CheckAvailQty=!1;this.OldBranchId=0;this.IsBranchValidation=!1;this.CheckBranchValidation=!1}init(n,t,r){var u=i.Instance();u.resetAllvariables();u.fileCacheHelper.loadJsFile("apps/transact/controls/inventory/splitItem.js",function(){u.fileCacheHelper.loadJsFile("apps/transact/managers/inventory/dcmanager.js",function(){u.fileCacheHelper.loadJsFile("apps/transact/managers/orders/ordermanager.js",function(){u.fileCacheHelper.loadJsFile("apps/transact/managers/inventory/itemmanager.js",function(){u.fileCacheHelper.loadJsFile("apps/transact/managers/invoicemanager.js",function(){u.fileCacheHelper.loadJsFile("apps/transact/controls/pricelist/managers/pricelistmanager.js",function(){u.fileCacheHelper.loadJsFile("platform/core/helpers/numberhelper/numberhelper.js",function(){u.fileCacheHelper.loadJsFile("apps/transact/enums/enum.js",function(){u.fileCacheHelper.loadJsFile("platform/tag/managers/tagmanager.js",function(){u.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){u.loadControlSettings(t.ControlJsonText,t.FormPropertyId);u.loadPropertySettings(t.PropertySettings,t.FormPropertyId);r!==null&&r()})})})})})})})})})})}CustomerLink(){$(".hrefSection_MoreOptions").text()=="Less Options"&&($(".section_ShipperInformation").addClass("hidden"),$(".hrefSection_MoreOptions").text("More Options"))}loadControl(t){var r=this,u,f;r.fileCacheHelper.loadJsFile("apps/transact/enums/enum.js",null);$(".section_ItemDetails").find(".card-header").remove();$(".section_ShipperInformation").hide();$(".hrefSection_MoreOptions").click(function(){$(".hrefSection_MoreOptions").text()=="Less Options"?($(".hrefSection_MoreOptions").text("More Options"),$(".section_ShipperInformation").hide()):$(".hrefSection_MoreOptions").text()=="More Options"&&($(".hrefSection_MoreOptions").text("Less Options"),$(".section_ShipperInformation").show())});$(".txtAutoComplete_shipfromaddressid").change(function(){r.DctypeId==n.Apps.Transact.Enums.DcType.Outward&&(r.IsTransfer==!0&&Number($(".txtAutoComplete_shiptoaddressid").val())==Number($(".txtAutoComplete_shipfromaddressid").val())&&($(".txtAutoComplete_shiptoaddressid").empty(),Unibase.Platform.Forms.Components.FormViewer.Instance().showError("Source Portal Destination Portal can't be same ")),bootbox.confirm(" Are you Want to Change ShipFromAddress?",function(t){if(t==!1){$(".txtAutoComplete_shipfromaddressid").val("");$(".txtAutoComplete_shipfromaddressid").text("");var u=new Option($("#hf_ShipFromAddressName").val(),$("#hf_ShipFromAddressId").val(),!0);$(".txtAutoComplete_shipfromaddressid").append(u);$(".txtAutoComplete_shipfromaddressid").val(Number($("#hf_ShipFromAddressId").val()))}else i.instance.BranchId=Number($(".txtAutoComplete_shipfromaddressid").val()),$.when(r.getLobSettings(r.LoBId,r.BranchId,!1)).then(function(){n.Apps.Transact.Controls.SplitItem.instance.SplitDcItemList=[];r.DcId!=0||r.IsFromOrder?($(".dc-item-list").empty(),r.IsFromOrder?(r.OrderItemIds=[0],r.bindDcItems(r.OrderId,r.IsFromOrder,r.IsFromInvoice)):r.bindDcItems(r.DcId,r.IsFromOrder,r.IsFromInvoice)):$(".dc-item-list-added").length>0&&$(".dc-item-list-added").each(function(n,t){var i=$(t).find("#hf_rowid").val(),u=$("#li_"+i);r.getItemDetails(u,r.ItemIds[n+1],0)})})}))});$(".date_dcdate").change(function(){if(i.instance.OrderId!=0){var n=Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+Unibase.Themes.Providers.DetailHelper.installedAppId+"_orderdate").Value,t=moment(n,"DD/MM/YYYY").format("MM/DD/YYYY"),r=new Date(t),u=$(".date_dcdate").val().toString(),f=moment(u,"DD/MM/YYYY").format("MM/DD/YYYY"),e=new Date(f);e
Item Details<\/div>