Ultronprime commited on
Commit
846771a
·
verified ·
1 Parent(s): 88bfb55

Update config.js

Browse files
Files changed (1) hide show
  1. config.js +51 -81
config.js CHANGED
@@ -1,96 +1,66 @@
1
- // =================================================================
2
- // FACTORY CONFIGURATION FILE - v2.0
3
- // =================================================================
4
- // Real-world data model for Win Super Power Antenna factory.
5
- // =================================================================
6
 
7
  export const MATERIALS_CONFIG = [
8
  // Frame Materials
9
- { name: "5/32 x 3/4 Tube", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
10
- { name: "1/8 x 1/2 Tube", unit: "pcs", maxStock: 4000, currentStock: 4000, costPerUnit: 0, reorderPoint: 500 },
11
- { name: "1/8 x 3/4 Tube", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
12
- { name: "End Knob Round", unit: "pcs", maxStock: 3000, currentStock: 3000, costPerUnit: 0, reorderPoint: 300 },
13
- { name: "End Knob Square 1/2x1/2", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
14
- { name: "Dipole (CI Cup)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
15
- { name: "U-Clip", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
16
- { name: "12cm Round Tube 7/8 MF", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
17
- { name: "15cm Round Tube 5/8 MF", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
18
- { name: "5/8 x 4 CSK Screw", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
19
- { name: "3/8 x 4 Screw", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
20
 
21
  // Wire/Connector Materials
22
- { name: "16 1/2 Ygr Wire", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
23
- { name: "F-Connector Male (4005)", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
24
- { name: "F-Connector Female (2002)", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
25
 
26
  // Booster Materials
27
- { name: "Macking Coil", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
28
- { name: "Coil 28gsm (25cm)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
29
- { name: "Coil 26gsm (16cm)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
30
- { name: "Coil 25gsm (36cm)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
31
- { name: "Resistor 1k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
32
- { name: "Resistor 100-ohm", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
33
- { name: "Resistor 68k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
34
- { name: "Resistor 2k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
35
- { name: "Resistor 150-R", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
36
- { name: "Resistor 10k", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
37
- { name: "LED Multicolour", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
38
- { name: "LED 5mm", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
39
- { name: "PF 12", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
40
- { name: "PF 39", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
41
- { name: "PF 102 Indian", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
42
- { name: "PF 102 Normal", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
43
- { name: "Capacitor 25v 100uF", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
44
- { name: "Capacitor 25v 220uF", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
45
- { name: "Transistor (2355)", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 100 },
46
 
47
  // Power Supply Materials
48
- { name: "Plastic Box (Power)", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
49
- { name: "Transformer", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
50
- { name: "IN4007 Diode", unit: "pcs", maxStock: 1000, currentStock: 1000, costPerUnit: 0, reorderPoint: 200 },
51
- { name: "5C 2V Wire 3-yard", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
52
- { name: "4-Antenna Jack", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
53
- { name: "AC Cord", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
54
 
55
  // Packing Materials
56
- { name: "Packing Bag", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
57
- { name: "Warranty Card", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
58
- { name: "Round Sticker", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
59
- { name: "Box Plastic Cover", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 },
60
- { name: "Box Sticker", unit: "pcs", maxStock: 500, currentStock: 500, costPerUnit: 0, reorderPoint: 50 }
61
  ];
62
 
63
  export const RECIPES_CONFIG = {
64
- // SUB-ASSEMBLIES
65
- "Antenna Frame Assembly": {
66
- "5/32 x 3/4 Tube": 1, "1/8 x 1/2 Tube": 8, "1/8 x 3/4 Tube": 2, "End Knob Round": 6, "End Knob Square 1/2x1/2": 2,
67
- "Dipole (CI Cup)": 1, "U-Clip": 1, "12cm Round Tube 7/8 MF": 2, "15cm Round Tube 5/8 MF": 1, "5/8 x 4 CSK Screw": 2
68
- },
69
- "Booster Assembly": {
70
- "Macking Coil": 1, "Coil 28gsm (25cm)": 1, "Coil 26gsm (16cm)": 2, "Resistor 1k": 1, "LED Multicolour": 1, "PF 12": 1, "PF 39": 2, "PF 102 Indian": 1, "PF 102 Normal": 2,
71
- "Resistor 100-ohm": 1, "Resistor 68k": 2, "Resistor 2k": 1, "Resistor 150-R": 1, "Capacitor 25v 100uF": 1, "F-Connector Female (2002)": 1, "Transistor (2355)": 2
72
- },
73
- "Power Supply Assembly": {
74
- "Plastic Box (Power)": 1, "Transformer": 1, "IN4007 Diode": 2, "Coil 25gsm (36cm)": 1, "5C 2V Wire 3-yard": 1, "4-Antenna Jack": 1, "F-Connector Female (2002)": 1,
75
- "Resistor 10k": 1, "PF 102 Normal": 1, "Capacitor 25v 220uF": 1, "3/8 x 4 Screw": 2, "LED 5mm": 1, "AC Cord": 1
76
- },
77
- "Wire Assembly": {
78
- "16 1/2 Ygr Wire": 1, "F-Connector Male (4005)": 2
79
- },
80
- "Packaging Set": {
81
- "Packing Bag": 1, "Warranty Card": 1, "Round Sticker": 1, "Box Plastic Cover": 1, "Box Sticker": 1
82
- },
83
-
84
- // FINAL PRODUCT
85
- "COMPLETE ANTENNA UNIT": {
86
- "5/32 x 3/4 Tube": 1, "1/8 x 1/2 Tube": 8, "1/8 x 3/4 Tube": 2, "End Knob Round": 6, "End Knob Square 1/2x1/2": 2,
87
- "Dipole (CI Cup)": 1, "U-Clip": 1, "12cm Round Tube 7/8 MF": 2, "15cm Round Tube 5/8 MF": 1, "5/8 x 4 CSK Screw": 2,
88
- "Macking Coil": 1, "Coil 28gsm (25cm)": 1, "Coil 26gsm (16cm)": 2, "Resistor 1k": 1, "LED Multicolour": 1, "PF 12": 1, "PF 39": 2, "PF 102 Indian": 1, "PF 102 Normal": 3,
89
- "Resistor 100-ohm": 1, "Resistor 68k": 2, "Resistor 2k": 1, "Resistor 150-R": 1, "Capacitor 25v 100uF": 1, "F-Connector Female (2002)": 2,
90
- "Transistor (2355)": 2,
91
- "Plastic Box (Power)": 1, "Transformer": 1, "IN4007 Diode": 2, "Coil 25gsm (36cm)": 1, "5C 2V Wire 3-yard": 1, "4-Antenna Jack": 1,
92
- "Resistor 10k": 1, "Capacitor 25v 220uF": 1, "3/8 x 4 Screw": 2, "LED 5mm": 1, "AC Cord": 1,
93
- "16 1/2 Ygr Wire": 1, "F-Connector Male (4005)": 2,
94
- "Packing Bag": 1, "Warranty Card": 1, "Round Sticker": 1, "Box Plastic Cover": 1, "Box Sticker": 1
95
- }
96
  };
 
1
+ // config.js - FACTORY CONFIGURATION FILE - v2.1 (Non-Financial)
 
 
 
 
2
 
3
  export const MATERIALS_CONFIG = [
4
  // Frame Materials
5
+ { name: "5/32 x 3/4 Tube", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
6
+ { name: "1/8 x 1/2 Tube", unit: "pcs", maxStock: 4000, currentStock: 4000, reorderPoint: 500 },
7
+ { name: "1/8 x 3/4 Tube", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
8
+ { name: "End Knob Round", unit: "pcs", maxStock: 3000, currentStock: 3000, reorderPoint: 300 },
9
+ { name: "End Knob Square 1/2x1/2", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
10
+ { name: "Dipole (CI Cup)", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
11
+ { name: "U-Clip", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
12
+ { name: "12cm Round Tube 7/8 MF", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
13
+ { name: "15cm Round Tube 5/8 MF", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
14
+ { name: "5/8 x 4 CSK Screw", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
15
+ { name: "3/8 x 4 Screw", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
16
 
17
  // Wire/Connector Materials
18
+ { name: "16 1/2 Ygr Wire", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
19
+ { name: "F-Connector Male (4005)", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
20
+ { name: "F-Connector Female (2002)", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
21
 
22
  // Booster Materials
23
+ { name: "Macking Coil", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
24
+ { name: "Coil 28gsm (25cm)", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
25
+ { name: "Coil 26gsm (16cm)", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
26
+ { name: "Coil 25gsm (36cm)", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
27
+ { name: "Resistor 1k", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
28
+ { name: "Resistor 100-ohm", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
29
+ { name: "Resistor 68k", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
30
+ { name: "Resistor 2k", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
31
+ { name: "Resistor 150-R", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
32
+ { name: "Resistor 10k", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
33
+ { name: "LED Multicolour", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
34
+ { name: "LED 5mm", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
35
+ { name: "PF 12", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
36
+ { name: "PF 39", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
37
+ { name: "PF 102 Indian", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
38
+ { name: "PF 102 Normal", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
39
+ { name: "Capacitor 25v 100uF", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
40
+ { name: "Capacitor 25v 220uF", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
41
+ { name: "Transistor (2355)", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 100 },
42
 
43
  // Power Supply Materials
44
+ { name: "Plastic Box (Power)", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
45
+ { name: "Transformer", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
46
+ { name: "IN4007 Diode", unit: "pcs", maxStock: 1000, currentStock: 1000, reorderPoint: 200 },
47
+ { name: "5C 2V Wire 3-yard", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
48
+ { name: "4-Antenna Jack", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
49
+ { name: "AC Cord", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
50
 
51
  // Packing Materials
52
+ { name: "Packing Bag", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
53
+ { name: "Warranty Card", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
54
+ { name: "Round Sticker", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
55
+ { name: "Box Plastic Cover", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 },
56
+ { name: "Box Sticker", unit: "pcs", maxStock: 500, currentStock: 500, reorderPoint: 50 }
57
  ];
58
 
59
  export const RECIPES_CONFIG = {
60
+ "Antenna Frame Assembly": { "5/32 x 3/4 Tube": 1, "1/8 x 1/2 Tube": 8, "1/8 x 3/4 Tube": 2, "End Knob Round": 6, "End Knob Square 1/2x1/2": 2, "Dipole (CI Cup)": 1, "U-Clip": 1, "12cm Round Tube 7/8 MF": 2, "15cm Round Tube 5/8 MF": 1, "5/8 x 4 CSK Screw": 2 },
61
+ "Booster Assembly": { "Macking Coil": 1, "Coil 28gsm (25cm)": 1, "Coil 26gsm (16cm)": 2, "Resistor 1k": 1, "LED Multicolour": 1, "PF 12": 1, "PF 39": 2, "PF 102 Indian": 1, "PF 102 Normal": 2, "Resistor 100-ohm": 1, "Resistor 68k": 2, "Resistor 2k": 1, "Resistor 150-R": 1, "Capacitor 25v 100uF": 1, "F-Connector Female (2002)": 1, "Transistor (2355)": 2 },
62
+ "Power Supply Assembly": { "Plastic Box (Power)": 1, "Transformer": 1, "IN4007 Diode": 2, "Coil 25gsm (36cm)": 1, "5C 2V Wire 3-yard": 1, "4-Antenna Jack": 1, "F-Connector Female (2002)": 1, "Resistor 10k": 1, "PF 102 Normal": 1, "Capacitor 25v 220uF": 1, "3/8 x 4 Screw": 2, "LED 5mm": 1, "AC Cord": 1 },
63
+ "Wire Assembly": { "16 1/2 Ygr Wire": 1, "F-Connector Male (4005)": 2 },
64
+ "Packaging Set": { "Packing Bag": 1, "Warranty Card": 1, "Round Sticker": 1, "Box Plastic Cover": 1, "Box Sticker": 1 },
65
+ "COMPLETE ANTENNA UNIT": { "5/32 x 3/4 Tube": 1, "1/8 x 1/2 Tube": 8, "1/8 x 3/4 Tube": 2, "End Knob Round": 6, "End Knob Square 1/2x1/2": 2, "Dipole (CI Cup)": 1, "U-Clip": 1, "12cm Round Tube 7/8 MF": 2, "15cm Round Tube 5/8 MF": 1, "5/8 x 4 CSK Screw": 2, "Macking Coil": 1, "Coil 28gsm (25cm)": 1, "Coil 26gsm (16cm)": 2, "Resistor 1k": 1, "LED Multicolour": 1, "PF 12": 1, "PF 39": 2, "PF 102 Indian": 1, "PF 102 Normal": 3, "Resistor 100-ohm": 1, "Resistor 68k": 2, "Resistor 2k": 1, "Resistor 150-R": 1, "Capacitor 25v 100uF": 1, "F-Connector Female (2002)": 2, "Transistor (2355)": 2, "Plastic Box (Power)": 1, "Transformer": 1, "IN4007 Diode": 2, "Coil 25gsm (36cm)": 1, "5C 2V Wire 3-yard": 1, "4-Antenna Jack": 1, "Resistor 10k": 1, "Capacitor 25v 220uF": 1, "3/8 x 4 Screw": 2, "LED 5mm": 1, "AC Cord": 1, "16 1/2 Ygr Wire": 1, "F-Connector Male (4005)": 2, "Packing Bag": 1, "Warranty Card": 1, "Round Sticker": 1, "Box Plastic Cover": 1, "Box Sticker": 1 }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  };