feat: import podkladov - jednotkova cena v tvare 'jednotkova cena 8,56 EUR/l', gramaz oddelena z nazvu

Mnozstvo sa odoberie z konca nazvu v letaku (aj 'od 225 g do 250 g',
'3 x 50 g 1 bal.'); co je pred mnozstvom zo stlpca Mnozstvo, ostava v nazve.
Overene na 432 riadkoch podkladov.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jakub_HostacnyandClaude Opus 5.5 committed 2026-10-21 16:26:25 +02:00
1 parent e2e9a82094
commit 14358b228f
2 files changed
+63 -8

No files matched your search

+4 -1
View File
@@ -306,7 +306,10 @@ export const ProductImportModal: React.FC<ImportModalProps> = ({
)}
</span>
<div className="flex-1 min-w-0">
<p className="text-xs font-bold text-gray-900 truncate">{p.title}</p>
<p className="text-xs text-gray-900 truncate">
<span className="font-bold">{p.title}</span>
{p.quantity && <span className="ml-1 rounded bg-gray-100 px-1 text-gray-600">{p.quantity}</span>}
</p>
<p className="text-[11px] text-gray-500 truncate">
EAN {p.ean}
{p.unitPrice && ` · ${p.unitPrice}`}