未订购接收(unordered receipts)和使用替换物料接收(substitue receipts)

在进行未订购接收和替换物料接收时,需要预先设置组织或物料的接收参数。未订购接收需开启'Allow Unordered Receipts',而替换物料接收需开启'Allow Substitute Receipts'。流程包括:通过Manufacturing and Distribution Manager责任执行未订购接收,创建并批准采购订单,匹配未订购收据,以及接收交易。替换物料接收则涉及主物料的创建和关联。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 
前提条件:
1.做未订购接收前必须将组织或物料的Receiving中的"Allow Unordered Receipts"选项设置为"Yes".
注意:物料(master item)中Receiving中的"Allow Unordered Receipts"选项默认为空,这时如果组织(Inventory->Setup->Organization->Receiving parameter)中的"Allow Unordered Receipts"选项有设置的话,就继承组织的设置.但是如果物料中有设置的话,不管组织中是否设置,都以物料的设置为准.
2.同上,做替换物料接收前必须将组织或物料的Receiving中的"Allow Substitue Receipts"选项设置为"Yes".
 
设置参数后未订购接收步骤如下:
Responsibility: Manufacturing and Distribution Manager
1. Preform unordered receipts
(N)Inventory->Transactions->Receiving->Receipts
(B)Unordered
注意:未订购接收在没有补上采购订单前,只能收货,不能入库。
 
2. Create a new Purchasing Order and Approve
(N)Purchasing->Purchase Orders->Purchase Orders
 
3. Match Unordered receipts
(N)Inventory->Transaction->Receiving->Match Unordered Receipts
 
4.Receiving Transactions
(N)Inventory->Transaction->Receiving->Receiving Transactions
 
设置参数后使用替换物料接收步骤如下:
1.New two master items
(N)Inventory->Items->Mastere Items
 
2.Make relationship between two items
(N)Inventory->Items->Item Relationships
Or
(N)Inventory->Items->Mastere Items->(Menu)Tools->Item Relationships
 
设置完成后就可以在接收时选择替换物料了.
 
还有cascade receipts(必须是同一种物料和同一供应商)和express receipts
unordered_setunordered_map都是C++标准库中的关联容器,它们的主要区别在于存储方式元素的顺序性: 1. **存储方式**[^1]: - unordered_set内部使用哈希表来存储元素,每个元素都有一个唯一的哈希值,这使得插入、删除查找操作的时间复杂度接近常数O(1),即使对于大型集合也是如此。 - unordered_map同样基于哈希表,但它存储的是键值对,键(Key)通过哈希函数映射到哈希桶,值(Value)存储在对应的位置。 2. **顺序性**: - mapset(包括unordered_set)默认按照元素的比较器(如默认情况下是自然排序)保持元素的顺序,但unordered_版本则不保证这一点,因为它们依赖于哈希函数的结果而不是元素本身的顺序。 3. **元素唯一性**: - 在unordered_set中,元素必须是唯一的,不允许有重复的值。 - unordered_map的键(Key)也是唯一的,如果试图插入已经存在的键,旧的值会被覆盖。 使用方法示例: ```cpp #include <unordered_set> #include <iostream> // 示例unordered_set std::unordered_set<int> unique_numbers; unique_numbers.insert(5); unique_numbers.insert(3); // 插入新元素,已存在5,所以不会重复插入 for (const auto& num : unique_numbers) { std::cout << num << " "; // 输出:3 5 } // 示例unordered_map std::unordered_map<std::string, int> name_to_age; name_to_age["Alice"] = 25; // 插入键值对 if (name_to_age.find("Bob") != name_to_age.end()) { std::cout << "Bob's age: " << name_to_age["Bob"] << "\n"; // 如果Bob存在,输出年龄 } else { std::cout << "Bob not found\n"; } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值