fix product parsing 🐛

This commit is contained in:
Jannis R 2016-08-12 15:26:44 +02:00
parent e9d95447c9
commit 5df274c952

View file

@ -38,7 +38,8 @@ const location = (l) => {
// todo: what is p.cls?
// todo: what is p.oprX?
const product = (p) => {
if (!p.prodCtx) return null
if (p.prodCtx) p = p.prodCtx
if (!p) return null
return {
name: p.name, nr: +p.number, class: p.cls,
productCode: +p.prodCtx.catCode, productName: p.prodCtx.catOutS