export function registerMenu(menu) {

    menu.register({
        id: "sales",
        title: "Sales",
        icon: "ph-shopping-cart",
        permission: "sales.module",
        module: "sales",
        children: [
            {
                id: "sales.dashboard",
                title: "Dashboard",
                permission: "sales.view",
                view: "SalesDashboardView"
            },
            {
                id: "sales.invoice",
                title: "Invoices",
                permission: "sales.invoice.view",
                view: "InvoiceListView"
            }
        ]
    });

}
