简单库存管理

名称:简单库存管理

描述:管理库存元素:自动减少库存请求上的库存并手动填充

版本:1.0.0

发布:2019-09-02

itop-version-min:2.5

扩散:iTop集线器

下载:http://www.combodo.com/itop-extensions/

此扩展为iTop添加了能力,以管理各种元素的库存。

特征

库存管理扩展引入了能力,以通过新的“库存”类管理库存。这样的库存元素可以具有不同的类型:RJ45的库存,电缆的库存,视频卡的库存…通过简单的分类类“库存类型”定义。

库存遵循生命周期:一旦创建,便可以提供(即可以增加可用数量)并可以消耗数量。库存的增加是通过生命周期功能完成的。当工单以库存和工单之间的链接上指定的数量链接到库存时,消耗完成了。多个工单可以附加到库存。

如果库存低于用户定义的警告级别,则每分钟运行后台任务,将库存移至“空”状态,并且如果已配置,则可能发送通知。

列出库存时,突出显示空的库存:

Empty stocks

如果向库存添加了足够的数量,则库存将返回到“重新库存”状态。

如果在审计之后发现某些物品从库存中消失或损坏,则可以通过在库存上添加负数来减少库存。

修订记录

版本发布日期注释
1.0.02019-09-02添加位置,说明,提供者,…
允许支持人员和变更执行者消耗库存
0.1.02016-06-07第一个版本

局限性

工单与库存的连接只能从库存的详细信息屏幕完成,而不能从工单的详细信息完成。将工单附加到库存时,将消耗库存元素。

状况在后台中计算的,在某些情况下可能会引起误解:

  • 当工单消耗了足够的物品以将库存的数量设置为阈值以下时,状况不会立即刷新。
  • 当您将空数量的库存添加到空时,它假定它再次被“供应”,这是最常见的情况,但是当您添加负数时,生成的状况看起来很混乱,因为它在60秒内显示为“已补货” ,直到cron.php完成工作为止。

要求

该扩展至少需要iTop 2.5.0以及扩展itop-config-mgmt 2.5.0和itop-tickets 2.5.0。

安装

使用标准安装流程 对于此扩展。

  1. 当提示您选择要安装的扩展时,选中“ iTop库存管理”并完成设置。

Installation screen

配置

该扩展不需要特定的配置参数。

“ iTop库存管理”依赖于服务cron.php.

确保计划将其运行在系统上。要检查此服务的状况,请使用以下命令:

php webservice/cron.php --auth_user=user --auth_pwd=password --status_only=1

用法

https://www.itophub.io/wiki/media?media=extensions%3Astock-element.png

配置管理部分下的“库存”菜单允许您列出在iTop中创建的库存元素对象过滤器和搜索。

https://www.itophub.io/wiki/media?media=extensions%3Astock-menu.png

库存属性

库存元素具有以下属性……

领域类型评论强制性的吗?
名称字母数字字符串 
组织组织的外键 
位置位置的外键不限于组织没有
类型库存类型的外键库存类型是一种简单的拓扑没有
提供者组织的外键 没有
状况枚举可能的值:新,进货,空
补货日期日期和时间上次提供库存时设置没有
警告等级整数可以发送通知的库存数量没有
当前数量整数库存中的当前元素数量。图片是自动计算的。没有
所有者联系人的外键 没有
描述HTML文字有关如何管理此库存的信息没有

内部领域

库存状况要检查布尔型表示库存状况不是最新的,它需要重新计算需求没有
累计数量整数从创建库存的日期开始提供的数量。图片是自动计算的强制性的
要添加到库存的数量有符号整数4位要添加到库存中的数量。它可以是负数。价值从一个供应保留到另一个。可选的

库存中的数量是已添加到库存元素的所有数量的总和与链接的库存请求所消耗的所有数量的总和之差。剩余数量的计算是异步的:由cron定期进行,可以通过特定的用户手动启动。

这些字段默认情况下不显示。在“添加到库存”库存期间,需要添加到库存的数量。

标签

…和链接(“历史记录”标签旁边):

标签描述
工单与库存相关的工单
文件资料与库存相关的文件

生命周期

这是库存元素遵循的生命周期:

Life cycle

在库存的列表或详细信息屏幕中,单击“新建”按钮将显示以下表单:

New stock element

创建后,配置经理可以通过“其他操作活动”菜单中的“添加到库存”按钮供应和库存。在此阶段输入的图片指示为该元素添加到库存的数量。可能为负。完成后,将显示整个详细信息屏幕:

Supplied stock

First "Add to stock"

First "Supplied"

功能可以随时从该状态或从空状态完成“添加到库存”。 “累计数量”属性存储已添加到当前库存元素中的对象的全局数量。该库存从不减少。

当工单通过消耗量的支持人员或变更执行者连接到库存时,当前数量减少。

First "Consumption"

After "Consumption"

状况暂时不正确的情况:

Second "Consumption"

After second "Consumption"

可以使用菜单“ Check库存状况”手动修复它,或者等待60秒让cron.php完成该工作。

状况计算

库存的计算状况以异步方式完成。结果,它可能是暂时错误的(少于60秒):

Before cron

  • 当cron运行时,它将状况重新计算为其正确的价值:

After cron

  • 或者当用户按下Other操作活动菜单中的Check stocks状况菜单时:

Compute status menu

Compute status result

为了将电流量移到阈值之上,需要再次提供库存需求。如果工单消耗的数量减少,也可以通过“机会”返回。

库存型

在编辑库存时,可以使用+按钮即时创建新的库存。配置经理可以在菜单库存管理类型学配置显示的仪表板中一次看到所有库存类型。

通知

该扩展程序不会自动创建任何通知。如果您希望通知库存所有者或任何其他联系人库存中的数量已降至库存以下,请先让您的iTop管理员创建通知。

为此,必须创建一个进入状态的触发器,例如:

Empty stock element

关联的触发器功能是标准。只需记住一点:库存元素的所有者由属性owner_id定义。因此,可以这样定义邮件的目的地:

SELECT Person WHERE id= :this->owner_id

原文:https://www.itophub.io/wiki/page?id=extensions%3Aitop-stock-mgmt


Simple Stock Management

name:
Simple stock management
description:
Manage stock elements: decrease automatically stock on User Requests and refill manually
version:
1.0.0
release:
2019-09-02
itop-version-min:
2.5
diffusion:
iTop Hub
download:
http://www.combodo.com/itop-extensions/

This extension adds to iTop the capability to manage stock of various elements.

Features

Stock Management extension introduces the capability to manage stock through a new “Stock” class. Such stock element can be of different type: stock of RJ45, stock of cables, stock of video cards… defined through a simple typology class “Stock Type”.

A Stock follows a life cycle: once created, it can be supplied (ie available quantity can be increased) and quantity can be consumed. Stock increase is done through a life cycle action. Where consumption is done when a Ticket is linked to the Stock with a quantity specified on the link between the stock and the Ticket. Multiple Tickets can be attached to a Stock.

If the Stock falls below the user defined Warning level, a background task running every minute, moves the stock to Empty state and a notification may be sent, if configured.

When listing the stocks, the empty ones are highlighted:

Empty stocks

The stock moves back to the Restocked state if enough quantity is added to the stock.

If after an audit, you discover that some items have disappeared from the Stock or are broken, then you can decrease the stock by adding a negative number to the Stock.

Revision History

VersionRelease DateComments
1.0.02019-09-02Add location, description, provider,…
Allow Support Agent and Change Implementor to consume Stocks
0.1.02016-06-07First version

Limitations

Attachment of ticket to a Stock can only be done from the details screen of a Stock, not from the details of the Ticket. Consumption of stock elements is done when attaching Ticket to it.

Status being computed in background, it can be misleading in some cases:

  • When a Ticket consumed enough items to set the Stock quantity below the threshold, the status isn't refreshed immediately.

  • When you add to an empty Stock, any quantity, it assumes it is “supplied” again, which is the most common situation, but when you add a negative number, the resulting status looks confusing, as it says “Restocked” during 60 seconds, until the cron.php does its job.

Requirements

The extension requires iTop 2.5.0, at least, as well as the extensions itop-config-mgmt 2.5.0 and itop-tickets 2.5.0.

Installation

Use the Standard installation process for this extension.

  1. When prompted to select the extensions to install, check “iTop Stock Management” and complete the setup.

Installation screen

Configuration

No specific configuration parameter is required for the extension.

“iTop Stock Management” relies on the service cron.php.

Make sure this one is scheduled to run on your system. To check the status of this service, use the command:

php webservice/cron.php --auth_user=user --auth_pwd=password --status_only=1

Usage

https://www.itophub.io/wiki/media?media=extensions%3Astock-element.pngThe “Stocks” menu available under the Configuration management section allows you to list, filter and search the stock element objects that have been created in iTop.https://www.itophub.io/wiki/media?media=extensions%3Astock-menu.png

Stock properties

A stock element has the following attributes…

FieldTypeCommentMandatory ?
NameAlphanumeric string Yes
OrganizationForeign key to an Organization Yes
LocationForeign key to a Locationnot limited to the organizationNo
TypeForeign key to a Stock TypeStock type is a simple topologyNo
ProviderForeign key to an Organization No
StatusEnumerationPossible values: New, Restocked, EmptyYes
Restocking dateDate and timeSet when the stock was supplied for the last timeNo
Warning levelIntegerStock quantity under which a notification can be sentNo
Current quantityIntegerCurrent quantity of elements in stock. Figure is automatically computed.No
OwnerForeign key to a Contact No
DescriptionHTML textInformation on how to manage this stockNo

Internal fields

Stock status to be checkedBooleanIndicates that the stock status is NOT up to date and that it needs to be recomputedNo
Cumulated quantityIntegerQuantity that have been supplied from the date the Stock has been created. Figure is automatically computedMandatory
Quantity to add to the stockSigned integer 4 digitsQuantity to add to the Stock. It can be negative. Value is kept from one supply to another.Optional

Quantity in stock is the difference between the sum of all quantities that have been added to the stock element and the sum of all quantities consumed by the linked user requests. Computation of remaining quantity is asynchronous: it is done regularly by the cron and can be manually launched through a specific action.

Those fields are not displayed by default. Quantity to add to the stock is required during “Add to stock” action.

Tabs

… and links (next to the history tab):

TabDescription
TicketsTickets related to the stock
DocumentsDocuments related to the stock

Life cycle

This is the life cycle followed by a Stock element:

Life cycle

From a list or the detail screen of Stock, clicking on the “New” button displays the following form:

New stock element

Once created, the Configuration Manager can supply the Stock through the “Add to stock” button available in the “other actions” menu. The figure entered at this stage indicates the quantity added to the stock for that element. It can be negative, to . Once done the whole detail screen is displayed:

Supplied stockFirst "Add to stock"First "Supplied"

The “Add to stock” action can be done any time from that state or from the empty state. The “Cumulated quantity” attribute stores the global quantity of objects that have been added to the current stock element. This figure never decreases.

Current quantity decreases when tickets are attached to the stock by a Support Agent or a Change Implementor with a consumed quantity.

First "Consumption"After "Consumption"

Situation where the status is temporarly inaccurate:Second "Consumption"After second "Consumption"It can be fixed manually with the menu “Check stock status”, or just wait 60 seconds for the cron.php to do the job

Status computation

Computation of stock status is done in an asynchronous way. As a result, it can be temporarily wrong (less than 60 seconds):Before cron

  • when the cron is running, it recomputes the status to its correct value:

After cron

  • or when the user press the Check stocks status menu available in the Other Actions menu:

Compute status menuCompute status result

In order to move the current quantity above the threshold, the stock needs to be supplied again. It could also come back by “chance”, if the quantity consumed by the tickets is decreased.

Stock type

New type of stock can be created on the fly while editing a stock, with the + button. The Configuration Manager can see all Stock types at once in the dashboard displayed by the menu Data administration / Typology configuration

Notification

The extension doesn't automatically create any notification. Should you wish to notify the stock owner or any other contact that the quantity in stock has fallen below the threshold, ask your iTop administrator to create the notification first.

For that purpose, a trigger on entering a state must be created, like:

Empty stock element

The associated trigger action is standard. Only point to keep in mind: the owner of the stock element is defined by the attribute owner_id. Destination of the mail can be, therefore, defined like this:

SELECT Person WHERE id= :this->owner_id

 

标签:
由 superadmin 在 2020/08/27, 16:11 创建
    

需要帮助?

如果您需要有关XWiki的帮助,可以联系:

深圳市艾拓先锋企业管理咨询有限公司