diff --git a/pos/static/js/accounting.js b/pos/static/js/accounting.js index 2ff9c13..fae4927 100644 --- a/pos/static/js/accounting.js +++ b/pos/static/js/accounting.js @@ -506,4 +506,12 @@ const Accounting = (() => { loadIncomeStatement, loadCashFlow, loadReconciliation, loadPeriodClose, exportarContabilidad, showNewEntryModal, closeNewEntryModal, addEntryLine, submitNewEntry, }; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/static/js/brand-catalog.js b/pos/static/js/brand-catalog.js index 110cc71..2ca59f9 100644 --- a/pos/static/js/brand-catalog.js +++ b/pos/static/js/brand-catalog.js @@ -529,4 +529,12 @@ } window.BrandCatalog = BrandCatalog; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/static/js/config.js b/pos/static/js/config.js index ad51fca..ddfadd1 100644 --- a/pos/static/js/config.js +++ b/pos/static/js/config.js @@ -755,4 +755,12 @@ const Config = (() => { loadCurrency, saveCurrency, openModal, closeModal }; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/static/js/customers.js b/pos/static/js/customers.js index 295cf54..fd0943b 100644 --- a/pos/static/js/customers.js +++ b/pos/static/js/customers.js @@ -799,4 +799,12 @@ const Customers = (() => { // Expose globally for inline HTML onclick handlers window.Customers = publicApi; return publicApi; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/static/js/invoicing.js b/pos/static/js/invoicing.js index bd65a73..d8b7a67 100644 --- a/pos/static/js/invoicing.js +++ b/pos/static/js/invoicing.js @@ -490,4 +490,12 @@ const Invoicing = (() => { showDetail, showCancelModal, confirmCancel, processQueue, showNewInvoiceModal, closeNewInvoiceModal, submitNewInvoice, notaCreditoPlaceholder, }; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/static/js/pos.js b/pos/static/js/pos.js index 6b78488..9cf9755 100644 --- a/pos/static/js/pos.js +++ b/pos/static/js/pos.js @@ -1350,4 +1350,12 @@ const POS = (() => { showCutZModal, closeCutZModal, loadCutX, confirmCutZ, openCancelModal, closeCancelModal, changeQuantity, applyDiscount, }; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/static/js/reports.js b/pos/static/js/reports.js index 2cffc7c..7539c90 100644 --- a/pos/static/js/reports.js +++ b/pos/static/js/reports.js @@ -714,6 +714,13 @@ const Reports = (() => { init, setTheme, switchTab, loadVentas, loadInventario, loadClientes, loadFinancieros, fmt }; + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "Reportes", href: "/pos/reports", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + } + })(); // ββ Global: Export visible table as CSV (Excel-compatible) ββ diff --git a/pos/static/js/whatsapp2.js b/pos/static/js/whatsapp2.js index c41c099..40f08ea 100644 --- a/pos/static/js/whatsapp2.js +++ b/pos/static/js/whatsapp2.js @@ -525,4 +525,12 @@ }; } catch(e) {} + // Register Cmd+K items + if (typeof registerCmdKItem === "function") { + registerCmdKItem({ group: "Principal", label: "POS Ventas", href: "/pos/sale", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "CatΓ‘logo", href: "/pos/catalog", icon: "π" }); + registerCmdKItem({ group: "Principal", label: "Clientes", href: "/pos/customers", icon: "π€" }); + registerCmdKItem({ group: "Principal", label: "Dashboard", href: "/pos/dashboard", icon: "π" }); + } + })(); diff --git a/pos/templates/quotations.html b/pos/templates/quotations.html index 4ab7f57..d332e69 100644 --- a/pos/templates/quotations.html +++ b/pos/templates/quotations.html @@ -16,8 +16,8 @@
- > + +