hvp-shared 4.3.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,15 +10,17 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export declare enum UsageType {
|
|
12
12
|
/** Direct sale to customer */
|
|
13
|
-
|
|
13
|
+
DIRECT_SALE = "directSale",
|
|
14
14
|
/** Optional sale (may or may not be charged) */
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
15
|
+
OPTIONAL_SALE = "optionalSale",
|
|
16
|
+
/** Auto-deducted from inventory when another item is sold (escandallos) */
|
|
17
|
+
AUTO_DEDUCT = "autoDeduct",
|
|
18
18
|
/** Internal consumption (cleaning supplies, etc.) */
|
|
19
|
-
|
|
19
|
+
INTERNAL_USE = "internalUse",
|
|
20
20
|
/** Fixed asset (equipment, furniture) */
|
|
21
|
-
|
|
21
|
+
FIXED_ASSET = "fixedAsset",
|
|
22
|
+
/** Not applicable (e.g., external services) */
|
|
23
|
+
NOT_APPLICABLE = "notApplicable"
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* All UsageType values as array (for dropdowns)
|
|
@@ -14,15 +14,17 @@ exports.SYNC_STATUS_LABELS = exports.SYNC_STATUS_VALUES = exports.SyncStatus = e
|
|
|
14
14
|
var UsageType;
|
|
15
15
|
(function (UsageType) {
|
|
16
16
|
/** Direct sale to customer */
|
|
17
|
-
UsageType["
|
|
17
|
+
UsageType["DIRECT_SALE"] = "directSale";
|
|
18
18
|
/** Optional sale (may or may not be charged) */
|
|
19
|
-
UsageType["
|
|
20
|
-
/**
|
|
21
|
-
UsageType["
|
|
19
|
+
UsageType["OPTIONAL_SALE"] = "optionalSale";
|
|
20
|
+
/** Auto-deducted from inventory when another item is sold (escandallos) */
|
|
21
|
+
UsageType["AUTO_DEDUCT"] = "autoDeduct";
|
|
22
22
|
/** Internal consumption (cleaning supplies, etc.) */
|
|
23
|
-
UsageType["
|
|
23
|
+
UsageType["INTERNAL_USE"] = "internalUse";
|
|
24
24
|
/** Fixed asset (equipment, furniture) */
|
|
25
|
-
UsageType["
|
|
25
|
+
UsageType["FIXED_ASSET"] = "fixedAsset";
|
|
26
|
+
/** Not applicable (e.g., external services) */
|
|
27
|
+
UsageType["NOT_APPLICABLE"] = "notApplicable";
|
|
26
28
|
})(UsageType || (exports.UsageType = UsageType = {}));
|
|
27
29
|
/**
|
|
28
30
|
* All UsageType values as array (for dropdowns)
|
|
@@ -32,11 +34,12 @@ exports.USAGE_TYPE_VALUES = Object.values(UsageType);
|
|
|
32
34
|
* UsageType labels in Spanish (for UI)
|
|
33
35
|
*/
|
|
34
36
|
exports.USAGE_TYPE_LABELS = {
|
|
35
|
-
[UsageType.
|
|
36
|
-
[UsageType.
|
|
37
|
-
[UsageType.
|
|
38
|
-
[UsageType.
|
|
39
|
-
[UsageType.
|
|
37
|
+
[UsageType.DIRECT_SALE]: 'Venta Directa',
|
|
38
|
+
[UsageType.OPTIONAL_SALE]: 'Venta Opcional',
|
|
39
|
+
[UsageType.AUTO_DEDUCT]: 'Solo Escandallos',
|
|
40
|
+
[UsageType.INTERNAL_USE]: 'Consumo Interno',
|
|
41
|
+
[UsageType.FIXED_ASSET]: 'Activo Fijo',
|
|
42
|
+
[UsageType.NOT_APPLICABLE]: 'No Aplica',
|
|
40
43
|
};
|
|
41
44
|
/**
|
|
42
45
|
* ArticleType - Type of article in QVET
|