取物料工作台 現有量

2021-08-19 20:40:15 字數 2928 閱讀 1549

電子錶—取現有量

物料工作台 現有量

inv_quantity_tree_pub.clear_quantity_cache;

inv_quantity_tree_pub.query_quantities(p_api_version_number => 1.0

,p_init_msg_lst => 'f'

,x_return_status => l_return_status

,x_msg_count => l_msg_count

,x_msg_data => l_msg_data

,p_organization_id => p_organization_id

,p_inventory_item_id => p_inventory_item_id  -- 物料

,p_tree_mode => 2

,p_is_revision_control => false

,p_is_lot_control => true    --- 是否受批次控制

,p_is_serial_control => false  -- 是否受序列控制

,p_revision => null

,p_lot_number => p_lot_number  -- 批次

,p_lot_expiration_date => null

,p_subinventory_code => p_subinventory_code   -- 庫存

,p_locator_id => p_inventory_location_id  -- 貨位

,p_onhand_source => inv_quantity_tree_pvt.g_all_subs

,x_qoh => l_qoh  -- 現有量

,x_rqoh => l_rqoh

,x_qr => l_qr

,x_qs => l_qs

,x_att => l_att  -- 可用量

,x_atr => l_atr -- 可保留量);

functionget_item_att_qty(p_inventory_item_id     number,--物料

p_organization_id       number,--庫存組織

p_subinventory_code     varchar,--子庫存

p_inventory_location_id number--

) return number is

l_onhand_qty    number;

l_resv_qty      number;

l_qoh           number;

l_rqoh          number;

l_qr            number;

l_qs            number;

l_att           number;

l_atr           number;

l_tree_mode     number;

l_booked_qty    number;

l_msg_count     varchar2(100);

l_msg_data      varchar2(1000);

l_return_status varchar2(1);

x_return        varchar2(1);

begin

-- transact mode

l_tree_mode := 2;

inv_quantity_tree_pub.clear_quantity_cache;

inv_quantity_tree_pub.query_quantities(p_api_version_number  => 1.0,

p_init_msg_lst        => 'f',

x_return_status       => l_return_status,

x_msg_count           => l_msg_count,

x_msg_data            => l_msg_data,

p_organization_id     => p_organization_id,

p_inventory_item_id   => p_inventory_item_id,

p_tree_mode           => l_tree_mode,

p_is_revision_control => false,

p_is_lot_control      => false,

p_is_serial_control   => false,

p_revision            => null,

p_lot_number          => null,

p_lot_expiration_date => null,

p_subinventory_code   => p_subinventory_code,

p_locator_id          => p_inventory_location_id,

p_onhand_source       => inv_quantity_tree_pvt.g_all_subs,

x_qoh                 => l_qoh,

x_rqoh                => l_rqoh,

x_qr                  => l_qr,

x_qs                  => l_qs,

x_att                 => l_att, --可用量

x_atr                 => l_atr); --可保留量  

return l_att;

end get_item_att_qty;

我的linux工作台

日了 好腦子不如爛筆頭。天天googlelinux命令,快煩死我了。我今天終於忍不住寫乙個日常命令的blog,以後需要什麼命令,就來這兒複製,請大家監督。find name find user find group chown root oinstall home ilearn product ia...

移動網優工作台

概述 自從網優中心從網維中心脫離出來之後,還沒有乙個專門針對網優中心的整合了網優中心及其合作夥伴需要的工作流的系統,而且對於關鍵資料的維護還停留在電子 手工記錄管理的階段。為了更好地利用資訊化手段,提高網優工作的管理水平和工作效率,加強對關鍵網優資料的管理,建設 網優工作台 就顯得尤為重要,該系統主...

RCP II 擴充套件通用工作台 2 2

4 建立 searchviewlabelprovider類 package xqtu.google.views import eclipse.jface.viewers.itablelabelprovider import eclipse.jface.viewers.labelprovider im...