Revision 233f338c
Von Jan Büren vor etwa 8 Jahren hinzugefügt
SL/WH.pm | ||
---|---|---|
1164 | 1164 |
|
1165 | 1165 |
Creates an assembly if all defined items are available. |
1166 | 1166 |
|
1167 |
One to n rows are inserted in inventory for the used parts and |
|
1168 |
exactly one row is inserted in inventory for the created assembly. |
|
1167 |
Assembly item(s) will be stocked out and the assembly will be stocked in, |
|
1168 |
taking into account the qty and units which can be defined for each |
|
1169 |
assembly item seperately. |
|
1170 |
|
|
1169 | 1171 |
The calling params originate from C<transfer> but only parts_id with the |
1170 | 1172 |
attribute assembly are processed. |
1171 | 1173 |
|
... | ... | |
1197 | 1199 |
|
1198 | 1200 |
assembly_id has to be an id in the table parts with the valid subset assembly. |
1199 | 1201 |
|
1200 |
=item More than zero items need to be defined for this subset
|
|
1202 |
=item Assembly is composed of assembly item(s)
|
|
1201 | 1203 |
|
1202 |
There has to be at least one date set in the table assembly referenced to this assembly_id.
|
|
1204 |
There has to be at least one data set in the table assembly referenced to this assembly_id.
|
|
1203 | 1205 |
|
1204 |
=item The param qty needs to be in the set of positive integers
|
|
1206 |
=item Assembly cannot be destroyed or disassembled
|
|
1205 | 1207 |
|
1206 |
No negative qty's can be assembled neither zero. |
|
1208 |
Assemblies are like cakes. You cannot disassemble it. NEVER. |
|
1209 |
No negative nor zero qty's are valid inputs. |
|
1207 | 1210 |
|
1208 | 1211 |
=item The assembly item(s) have to be in the same warehouse |
1209 | 1212 |
|
... | ... | |
1211 | 1214 |
|
1212 | 1215 |
=item The assembly item(s) have to be in stock with the qty needed |
1213 | 1216 |
|
1214 |
The qty of all assembly item(s) are >= than the needed qty |
|
1215 |
to assemble the qty of assemblies (client configurable). |
|
1217 |
I can only make a cake by receipt if I have ALL ingredients and |
|
1218 |
in the needed stock amount. |
|
1219 |
The qty of stocked in assembly item(s) has to fit into the |
|
1220 |
number of the qty of the assemblies, which are going to be created (client configurable). |
|
1216 | 1221 |
|
1217 | 1222 |
=item assembly item(s) with the parts set 'service' are ignored |
1218 | 1223 |
|
... | ... | |
1223 | 1228 |
Client configurable prerequisites can be changed with different |
1224 | 1229 |
prerequisites as described in client_config (s.a. next chapter). |
1225 | 1230 |
|
1226 |
More prerequisites may be added in the future. |
|
1227 | 1231 |
|
1228 | 1232 |
=head2 default creation of assembly |
1229 | 1233 |
|
1230 |
Inventory entries distinguish between directions (in/out) and transfer_types. |
|
1231 |
Valid entries after a creation of an assembly are 'out' and 'used' for assembly |
|
1232 |
items and 'in' and 'assembled' for the assembly. |
|
1234 |
The valid state of the assembly item(s) used for the assembly process are |
|
1235 |
'out' for the general direction and 'used' as the specific reason. |
|
1236 |
The valid state of the assembly is 'in' for the direction and 'assembled' |
|
1237 |
as the specific reason. |
|
1233 | 1238 |
|
1234 | 1239 |
The method is transaction safe, in case of errors not a single entry will be made |
1235 | 1240 |
in inventory. |
Auch abrufbar als: Unified diff
2. Version POD zu create_assembly
Probiert insgesamt mehr 'auf den Punkt' und trotzdem
user-verständlich zu beschreiben.