feat: Lotes (datos maestros de inventario): lista y formulario de BatchNumberDetails con clave numérica y sin «Nuevo»
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3e27f370dc
commit
91d5135dc7
16 files changed
+244
-12
No files matched your search
@@ -43,10 +43,11 @@ export function masterNavigationQuery(
|
||||
target: MasterNavTarget,
|
||||
keyField: string,
|
||||
current: string | null,
|
||||
numeric = false,
|
||||
): { $filter?: string; $orderby: string } {
|
||||
const asc = `${keyField} asc`;
|
||||
const desc = `${keyField} desc`;
|
||||
const quoted = current === null ? '' : `'${escapeODataString(current)}'`;
|
||||
const quoted = current === null ? '' : numeric ? String(Number(current)) : `'${escapeODataString(current)}'`;
|
||||
switch (target) {
|
||||
case 'first':
|
||||
return { $orderby: asc };
|
||||
|
||||
Reference in new issue
Block a user