fix(web): las celdas de cuenta piden su código con formato; tabla de filas sin comprimir columnas; letra de cambio como origen de asiento

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-19 10:06:48 -05:00
1 parent 2733339c7f
commit 8880b40080
3 files changed
+5 -1

No files matched your search

@@ -107,6 +107,7 @@ const ORIGINS: Readonly<Record<string, string>> = {
ttTransferBetweenWarehouses: 'Transferencia de stock', ttTransferBetweenWarehouses: 'Transferencia de stock',
ttInventoryValuation: 'Revalorización de inventario', ttInventoryValuation: 'Revalorización de inventario',
ttInternalReconciliation: 'Conciliación interna', ttInternalReconciliation: 'Conciliación interna',
ttBoETransaction: 'Letra de cambio',
}; };
export const journalOrigin = (code: unknown): string => ORIGINS[String(code ?? '')] ?? String(code ?? ''); export const journalOrigin = (code: unknown): string => ORIGINS[String(code ?? '')] ?? String(code ?? '');
+3
View File
@@ -1,5 +1,6 @@
import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core'; import { ChangeDetectionStrategy, Component, inject, signal } from '@angular/core';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router'; import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { AccountCodesService } from '../core/sl/account-codes';
import { AccountSegmentsService } from '../core/sl/account-segments'; import { AccountSegmentsService } from '../core/sl/account-segments';
import { AuthService } from '../core/auth/auth.service'; import { AuthService } from '../core/auth/auth.service';
import { SessionStore } from '../core/auth/session.store'; import { SessionStore } from '../core/auth/session.store';
@@ -21,6 +22,8 @@ export class MainLayout {
protected readonly sidebarOpen = signal(false); protected readonly sidebarOpen = signal(false);
private readonly segments = inject(AccountSegmentsService); private readonly segments = inject(AccountSegmentsService);
/** Se instancia aquí para que las celdas de cuenta puedan pedir el código con formato de lo que muestran. */
private readonly accountCodes = inject(AccountCodesService);
constructor() { constructor() {
void this.segments.ensureLoaded(); void this.segments.ensureLoaded();
+1 -1
View File
@@ -113,7 +113,7 @@ const dateOnly = (v: unknown): string => (typeof v === 'string' ? v.slice(0, 10)
.pick button { padding: 0; background: var(--btn); border: 1px solid var(--field-b); border-radius: var(--radius); cursor: pointer; } .pick button { padding: 0; background: var(--btn); border: 1px solid var(--field-b); border-radius: var(--radius); cursor: pointer; }
.pick button:hover { background: var(--btn-h); } .pick button:hover { background: var(--btn-h); }
.wrap { overflow-x: auto; } .wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; } table { width: 100%; min-width: max-content; border-collapse: collapse; }
th { padding: 4px 6px; background: var(--grid-head); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; } th { padding: 4px 6px; background: var(--grid-head); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; }
th.req::after { content: ' *'; color: var(--err); } th.req::after { content: ' *'; color: var(--err); }
td { padding: 0 2px; height: 27px; border: 1px solid var(--line-soft); white-space: nowrap; } td { padding: 0 2px; height: 27px; border: 1px solid var(--line-soft); white-space: nowrap; }