hvp-shared 6.89.0 → 6.90.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.
|
@@ -34,12 +34,6 @@ export declare const SAT_GLOBAL_PERIODICITY: {
|
|
|
34
34
|
readonly bimonthly: "05";
|
|
35
35
|
};
|
|
36
36
|
export type SATGlobalPeriodicityCode = (typeof SAT_GLOBAL_PERIODICITY)[keyof typeof SAT_GLOBAL_PERIODICITY];
|
|
37
|
-
/**
|
|
38
|
-
* Maps QVET product sections to SAT ClaveProdServ codes.
|
|
39
|
-
* Used when individual products don't have assigned SAT codes.
|
|
40
|
-
* Admin-configurable via company settings.
|
|
41
|
-
*/
|
|
42
|
-
export declare const DEFAULT_SECTION_SAT_CODES: Record<string, string>;
|
|
43
37
|
/**
|
|
44
38
|
* Fallback SAT product code when section mapping is not found.
|
|
45
39
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* (Público en General) per Mexican SAT requirements.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.DEFAULT_SAT_PRODUCT_CODE = exports.
|
|
9
|
+
exports.DEFAULT_SAT_PRODUCT_CODE = exports.SAT_GLOBAL_PERIODICITY = exports.GLOBAL_INVOICE_RECEIVER = exports.GLOBAL_INVOICE_STATUS_LABELS = exports.GlobalInvoiceStatus = void 0;
|
|
10
10
|
// ============================================================================
|
|
11
11
|
// Global Invoice Status
|
|
12
12
|
// ============================================================================
|
|
@@ -52,26 +52,6 @@ exports.SAT_GLOBAL_PERIODICITY = {
|
|
|
52
52
|
monthly: "04",
|
|
53
53
|
bimonthly: "05",
|
|
54
54
|
};
|
|
55
|
-
// ============================================================================
|
|
56
|
-
// Default Section-to-SAT Code Mapping
|
|
57
|
-
// ============================================================================
|
|
58
|
-
/**
|
|
59
|
-
* Maps QVET product sections to SAT ClaveProdServ codes.
|
|
60
|
-
* Used when individual products don't have assigned SAT codes.
|
|
61
|
-
* Admin-configurable via company settings.
|
|
62
|
-
*/
|
|
63
|
-
exports.DEFAULT_SECTION_SAT_CODES = {
|
|
64
|
-
CONSULTAS: "85121800", // Servicios veterinarios
|
|
65
|
-
CIRUGIAS: "85121801", // Servicios quirúrgicos
|
|
66
|
-
LABORATORIO: "85121802", // Servicios de laboratorio clínico
|
|
67
|
-
HOSPITALIZACION: "85121800", // Servicios médicos
|
|
68
|
-
FARMACIA: "51101500", // Productos farmacéuticos
|
|
69
|
-
ACCESORIOS: "10191500", // Accesorios para mascotas
|
|
70
|
-
ALIMENTO: "10191500", // Alimento para mascotas
|
|
71
|
-
ESTETICA: "85121800", // Servicios de estética animal
|
|
72
|
-
IMAGENOLOGIA: "85121802", // Servicios de diagnóstico por imagen
|
|
73
|
-
VACUNAS: "51101500", // Vacunas
|
|
74
|
-
};
|
|
75
55
|
/**
|
|
76
56
|
* Fallback SAT product code when section mapping is not found.
|
|
77
57
|
*/
|
|
@@ -43,20 +43,6 @@ describe("SAT_GLOBAL_PERIODICITY", () => {
|
|
|
43
43
|
expect(values).toEqual(["01", "02", "03", "04", "05"]);
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
|
-
describe("DEFAULT_SECTION_SAT_CODES", () => {
|
|
47
|
-
it("should have all SAT codes as 8-digit numeric strings", () => {
|
|
48
|
-
for (const [section, code] of Object.entries(global_invoice_enums_1.DEFAULT_SECTION_SAT_CODES)) {
|
|
49
|
-
expect(code).toMatch(/^\d{8}$/);
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
it("should map veterinary sections to known SAT codes", () => {
|
|
53
|
-
expect(global_invoice_enums_1.DEFAULT_SECTION_SAT_CODES["CONSULTAS"]).toBe("85121800");
|
|
54
|
-
expect(global_invoice_enums_1.DEFAULT_SECTION_SAT_CODES["FARMACIA"]).toBe("51101500");
|
|
55
|
-
});
|
|
56
|
-
it("should not be empty", () => {
|
|
57
|
-
expect(Object.keys(global_invoice_enums_1.DEFAULT_SECTION_SAT_CODES).length).toBeGreaterThan(0);
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
46
|
describe("DEFAULT_SAT_PRODUCT_CODE", () => {
|
|
61
47
|
it("should be 01010101 (No identificado)", () => {
|
|
62
48
|
expect(global_invoice_enums_1.DEFAULT_SAT_PRODUCT_CODE).toBe("01010101");
|