From cd6dbede36ba761364f28d1ffaf2ce588e7c468c Mon Sep 17 00:00:00 2001 From: u8array Date: Wed, 6 May 2026 23:01:58 +0200 Subject: [PATCH] fix(serial): move ^SN before ^FD per ZPL spec ^SN must precede ^FD within the same field definition, identical to ^SF. Previous output placed ^SN as a standalone command after ^FS, which caused Zebra printers to ignore serialization and print the same value on all copies. --- src/registry/serial.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/registry/serial.tsx b/src/registry/serial.tsx index 18ec0ac0..8673a724 100644 --- a/src/registry/serial.tsx +++ b/src/registry/serial.tsx @@ -37,7 +37,7 @@ export const serial: ObjectTypeDefinition = { return `${field}^SF${p.increment},${p.content.length},Y^FD${p.content}^FS`; } // ^SN: start, increment, change-per-label - return `${field}^FD${p.content}^FS\n^SN${p.content},${p.increment},Y`; + return `${field}^SN${p.content},${p.increment},Y^FD${p.content}^FS`; }, PropertiesPanel: ({ obj, onChange }) => {