commit melhorias1

This commit is contained in:
2026-11-11 15:04:01 +02:00
parent 1d11a5e57b
commit cd9897df05
145 changed files with 10950 additions and 84 deletions
+3 -1
View File
@@ -13,7 +13,7 @@ final class ModuleNavigation
'purchasing'=>['purchasing_budget.', 'purchasing_requisitions.', 'purchasing_receipts.', 'purchasing_orders.', 'purchasing_sourcing.', 'purchasing_suppliers.', 'purchasing_requests.', 'purchasing_invoices.', 'purchasing_obligations.', 'supplier_payables.'],
'stock'=>['stock.'], 'workshop'=>['workshop.', 'workshop_billing.', 'workshop_corrections.'],
'finance'=>['financial_analysis.','bank_reconciliation.','cash.', 'direct_costs.', 'industrial_costs.', 'industrial_budgets.', 'industrial_budget_comparisons.', 'service_receivables.'],
'accounting'=>['fiscal_obligations.','fiscal_rules.','fiscal_assessments.','fiscal_forms.','catalogue_accounting.', 'service_fiscal.', 'general_ledger.'],
'accounting'=>['fixed_assets.','fiscal_obligations.','fiscal_rules.','fiscal_assessments.','fiscal_forms.','catalogue_accounting.', 'service_fiscal.', 'general_ledger.'],
];
public function available(CompanyContext $context): array
@@ -53,7 +53,9 @@ final class ModuleNavigation
{
if(preg_match('~^(stock/catalogue|api/stock-catalogue)(/|$)~',$path))return 'stock';
if(preg_match('~^(finance/cash|api/cash)(/|$)~',$path))return 'finance';
if(preg_match('~^api/multiline-invoices(/|$)~',$path))return 'commercial';
if(preg_match('~^api/(remunerations|hr-personnel)(/|$)~',$path))return 'human_resources';
if(preg_match('~^(accounting/assets|api/fixed-assets)(/|$)~',$path))return 'accounting';
if(preg_match('~^api/fiscal-obligations(/|$)~',$path))return 'accounting';
if(preg_match('~^api/finance/payable-positions(/|$)~',$path))return 'finance';
if(preg_match('~^api/finance/payable-due(/|$)~',$path))return 'finance';