File: index.rst

package info (click to toggle)
tryton-modules-stock 3.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,520 kB
  • ctags: 687
  • sloc: python: 4,855; xml: 2,134; makefile: 6
file content (238 lines) | stat: -rw-r--r-- 6,391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
Stock Module
############

The stock module defines fundamentals for all stock management
situations: Locations where product are stored, moves between these
locations, shipments for product arrivals and departures and inventory
to control and update stock levels.

Location
********

Locations are generic places where products are physically or
virtually stored. There are six types of locations:

* Storage

  Storage locations define real places where products are stored.


* Warehouse

  Warehouses are meta-locations which define input, storage and output
  locations. These locations are all of type Storage. Input and Output
  are locations where incoming an outgoing product are temporally
  stored awaiting transportation. The storage location is often the
  biggest location where products are stored for middle or long
  periods of time.

* Customer

  Customer locations are virtual locations accumulating products that
  have been sent to customers.

* Supplier

  Supplier locations are virtual locations accumulating products that have
  been received from suppliers.

* Lost And Found

  Lost And Found locations collects inventory gaps. See
  :ref:inventory for details.

Locations are organised in tree structures, allowing to define
fine grained structures.


Move
****

A move is a movement of a product in a given quantity between two
locations. It may eventually defines a unit price and a currency for
the products that are moved from or to another company, allowing to
compute stock value at any time (and to update the cost prices if the
choosen cost price method is *Average*). A move also defines a planned
date (when one plan to do the move) and an effective date (when the
move is actually made). Products that are used in stock move must of
of type *Goods* or *Assets*. Stock levels are ignored for
consumable, this means that they can be always assigned. *Service*
products are ignored by the stock module.

A move can be in one of this states:

* Draft

  The initial state, used when the move is created and to define
  future stock movement that are planned, but still subject to
  modifications.

* Assigned

  An assigned move allow to reserve some products. Thus preventing
  other user to assign them.

* Done

  The move is in state Done when the real movement is made.

* Cancel

  A cancelled move will be ignored by the system. Only Draft or
  Assigned move can be cancelled. To revert a move in state Done, an
  opposite move must be created.


Product Quantities
++++++++++++++++++

Product quantities on each location are the sum of all moves coming
from or going to this location.  For quantities that are computed for
a date in the past, only confirmed moves (i.e. in state Done) with an
effective date inferior to the considered date are taken into account,
reflecting the real situation. For future quantities, Draft and
Assigned move with a planned date greater than today and smaller than
the given date are also summed.


Shipment
********

A Shipment define a group of moves happening at the same date and
around the same location.


Supplier Shipment
+++++++++++++++++

A supplier shipment is used when products are received from a
supplier. It is mainly composed of a party (the supplier), a location
(the warehouse in which the products are coming) and two list of moves:

* Incoming moves

  The moves between the supplier location and the input location
  (as defined on the warehouse).

* Inventory moves

  The inventory moves are between the input location and the storage
  location (or one of his child locations).


The supplier shipment can be in one of this states:

* Draft

  Incoming moves and inventory moves (if they exist) are in draft.

* Received

  Incoming move are set in state Done, inventory moves are created if
  necessary.

* Done

  Inventory and incoming moves are in state Done.

* Cancel

  All moves are cancelled.


Customer Shipment
+++++++++++++++++

A customer shipment is used for sending products to customer. It is
mainly composed of a party (the customer), a location (the warehouse
out of which the product are going) and two list of moves:

* Inventory moves

  The moves between a storage location and the output location of the
  warehouse

* Outgoing moves

  The moves between the output location of the warehouse and a
  customer location.


The customer shipment can be in one of this states:

* Draft

  Outgoing moves and inventory moves (if they exist) are in draft.

* Waiting

  When a customer shipment is set to waiting, the inventory moves are
  created (or completed) to balance the outgoing moves. The waiting
  state also means that the shipment should be processed.

* Assigned

  The assigned state is when products have been assigned (or reserved)
  from the storage locations.

* Packed

  The packed state is when the inventory moves have been made, i.e
  when the products have been physically moved to the outgoing
  locations.

* Done

  The shipment is Done when the outgoing moves have been made,
  e.g. when a truck left the warehouse.

* Cancel

  A shipment which is not yet completed (not in state Done) can be
  cancelled at any time. This also cancel all the moves.


Internal Shipment
+++++++++++++++++

An internal shipment is used for sending products across locations
inside the company. It is mainly composed of two locations and a list
of moves. It can be in one of these states:


* Draft

  The moves (if they exist) are in draft.

* Waiting

  The waiting state means that the shipment should be processed.

* Assigned

  The assigned state is when products have been assigned.

* Done

  The shipment is Done when the moves have been made.

* Cancel

  A shipment which is not yet completed (not in state Done) can be
  cancelled at any time. This also cancel all the moves.



Inventory
*********

Inventories allow to control and update stock levels. They are mainly
composed of two locations (a Storage location and a Lost And Found
location), and a list of inventory lines. A button allow to
auto-complete inventory lines with respect to the expected quantities
for each product in the location. Inventory lines consist of: a
product and it's default unit of measure, an expected quantity and the
real quantity (the real products on the shelves).

When the inventory is confirmed, moves are created to balance expected
quantities and real ones.