InventTrans 和 InventJournalTrans 表

InventTrans and InventJournalTrans tables

开始于:

InventJournalName

The InventJournalName table contains information for inventory journal names. The table is used to initialize inventory journals and assign the default values from the InventJournalName table to the inventory journal and functions as a template for the inventory journals.

据我所知,我有一份期刊列表,以及它们的类型。

使用 JournalNameId 和 JournalType 我们可以在以下位置添加新记录:

InventJournalTable

The InventJournalTable table contains information about inventory journals. The table holds information about how the journal should be handled by the system, e.g., how is should be posted.

InventJournalTable 将使用 InventJournalName 中的字段来 "instantiate" 它的字段。这个对吗?所以我们会有很多期刊,它们都有各自的期刊类型。

现在是:

InventJournalTrans

The InventJournalTrans table contains information about items and represents a line in an inventory journal. Each record has information related to a specific item and is related to a record in the InventJournalTable which is the journal header.

因此,InventJournalTrans 中的每一行都将链接到 InventJournalTable 中的日记帐。

我想我明白了,但是 InventTrans 的作用是什么?

那些表都是库存日记帐,更像是手动库存更改。例如,如果用户想要将 100 个小部件从仓库 A 转移到仓库 B,他们可以创建转移日志。

Inventory and warehouse management>Journals。一组类似的表格是

  • LedgerJournalName
  • LedgerJournalTable
  • LedgerJournalTrans

General Ledger>Journals

InventTrans(重要的是与 InventTransOrigin 配对)用于跟踪几乎任何地方发生的所有库存交易。如果您在生产中生产一个 widget 并且它的 BOM 上有 w1、w2、w3 组成的部分,您将看到这些交易在 InventTrans。如果您创建销售订单并将 小部件 销售给客户,您会在其中看到该交易。

最后,回到原来的流水账例子,如果从仓库A调到仓库B,它也会在那里显示为两个交易。