事务处理表的成本核算:mtl_material_transactions
(58条消息) mtl_material_transactions的COST字段定义_gsairon的专栏-CSDN博客
事务处理表的成本核算:mtl_material_transactions
MMT的成本字段定义:
1.actual cost ----> actual cost
2.transaction cost ----> the cost entered by the user during a transaction
3.prior cost ----> item cost before the transaction 交易前的项目成本
4.new cost ----> item cost after the transaction processing
SELECT MMT.ERROR_CODE ,
MMT.ERROR_EXPLANATION,
MMT.transaction_source_name,
transaction_quantity,
transaction_uom,
subinventory_code,
inventory_item_id,
mmt.actual_cost,
mmt.prior_cost,
mmt.new_cost,
mmt.transaction_cost
FROM mtl_material_transactions mmt
WHERE mmt.transaction_id in (124727534, 124727535);
运行查询后可知:由于这次是子库存转移事务,所以本次Transaction Cost为空,不会产生成本变化。
2. 库存间转移后,成本更新
SELECT MMT.*, MMT.ERROR_CODE ,
MMT.ERROR_EXPLANATION,
MMT.transaction_source_name,
transaction_quantity,
transaction_uom,
subinventory_code,
inventory_item_id,
mmt.actual_cost,
mmt.prior_cost,
mmt.new_cost,
mmt.transaction_cost
FROM mtl_material_transactions mmt
WHERE /*mmt.transaction_group_id = 124731249
and*/ mmt.shipment_number = 'JSH_TO_JJT001';
gsairon
关注
1
————————————————
版权声明:本文为CSDN博主「gsairon」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/gsairon/article/details/8433693
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
2020-01-15 DELETE和TRUNCATE drop 有什么不同