{"id":1097,"date":"2017-01-11T16:02:46","date_gmt":"2017-01-11T13:02:46","guid":{"rendered":"http:\/\/guvensahin.com\/?p=1097"},"modified":"2020-05-12T23:43:21","modified_gmt":"2020-05-12T20:43:21","slug":"dynamics-ax-2012-eldeki-stogu-cache-siniflarini-kullanarak-alma","status":"publish","type":"post","link":"https:\/\/guvensahin.com\/tr\/dynamics-ax-2012-eldeki-stogu-cache-siniflarini-kullanarak-alma\/","title":{"rendered":"Dynamics AX 2012 &#8211; Eldeki Sto\u011fu Cache S\u0131n\u0131flar\u0131n\u0131 Kullanarak Alma"},"content":{"rendered":"<p>Bildi\u011finiz gibi ax da eldeki sto\u011fu almak istedi\u011fimizde ya InventSum tablosuna select atar\u0131z yada InventOnHand s\u0131n\u0131f\u0131n\u0131 kullan\u0131r\u0131z. \u00c7o\u011fu zaman bu 2 y\u00f6ntem i\u015fimizi g\u00f6r\u00fcr. Fakat WMS mod\u00fcl\u00fcn\u00fcn kullan\u0131ld\u0131\u011f\u0131 baz\u0131 durumlarda bizim koddan ald\u0131\u011f\u0131m\u0131z de\u011fer ile ax&#8217;\u0131n sorgulamalar &gt; eldeki stok formu alt\u0131nda bize g\u00f6sterdi\u011fi uyu\u015fmayabilir.<\/p>\n<p>Bu durumda do\u011fru sto\u011fu almak i\u00e7in ax&#8217;\u0131n eldeki stok formunda kulland\u0131\u011f\u0131 cache s\u0131n\u0131f\u0131n\u0131 direkt olarak kullanabiliriz. Bunun i\u00e7in a\u015fa\u011f\u0131daki kod&#8217;u kullanabilirsiniz.<\/p>\n<pre>\r\nstatic void AvailPhysicalFromCache(Args _args)\r\n{\r\n    Qty                         ret;\r\n    InventDim                   InventDim;\r\n    InventAvailabilityFormCache InventAvailabilityFormCache;\r\n    ;\r\n\r\n    InventDim.clear();\r\n    InventDim.inventSiteId       = \"K001\";\r\n    InventDim.InventLocationId   = \"KT01\";\r\n    InventDim.configId           = \"B11\";\r\n    InventDim.InventColorId      = \"01\";\r\n\r\n\r\n    InventAvailabilityFormCache = InventAvailabilityFormCache::construct();\r\n    \r\n    ret = InventAvailabilityFormCache.availabilityByItemId(\"ITEM-010\", InventDim).availPhysical();\r\n    \r\n    info(strFmt(\"%1\", ret));\r\n}\r\n<\/pre>\n<p>Ho\u015f\u00e7akal\u0131n.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bildi\u011finiz gibi ax da eldeki sto\u011fu almak istedi\u011fimizde ya InventSum tablosuna select atar\u0131z yada InventOnHand s\u0131n\u0131f\u0131n\u0131 kullan\u0131r\u0131z. \u00c7o\u011fu zaman bu 2 y\u00f6ntem i\u015fimizi g\u00f6r\u00fcr. Fakat WMS mod\u00fcl\u00fcn\u00fcn kullan\u0131ld\u0131\u011f\u0131 baz\u0131 durumlarda bizim koddan ald\u0131\u011f\u0131m\u0131z de\u011fer ile ax&#8217;\u0131n sorgulamalar &gt; eldeki stok formu alt\u0131nda bize g\u00f6sterdi\u011fi uyu\u015fmayabilir. Bu durumda do\u011fru sto\u011fu almak i\u00e7in ax&#8217;\u0131n eldeki stok formunda&hellip;&nbsp;<a href=\"https:\/\/guvensahin.com\/tr\/dynamics-ax-2012-eldeki-stogu-cache-siniflarini-kullanarak-alma\/\" rel=\"bookmark\">Daha fazlas\u0131n\u0131 oku &raquo;<span class=\"screen-reader-text\">Dynamics AX 2012 &#8211; Eldeki Sto\u011fu Cache S\u0131n\u0131flar\u0131n\u0131 Kullanarak Alma<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":916,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[234],"tags":[193,198,263,285],"class_list":["post-1097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dynamics-ax","tag-axapta","tag-dynamics-ax-2","tag-warehouse","tag-x"],"_links":{"self":[{"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/posts\/1097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/comments?post=1097"}],"version-history":[{"count":9,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/posts\/1097\/revisions"}],"predecessor-version":[{"id":1106,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/posts\/1097\/revisions\/1106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/media\/916"}],"wp:attachment":[{"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/media?parent=1097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/categories?post=1097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/guvensahin.com\/tr\/wp-json\/wp\/v2\/tags?post=1097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}