Ignorer les différences de coût pour regrouper

This commit is contained in:
Vincent Vandemeulebrouck 2021-05-07 00:05:36 +02:00
parent 474a6a7ed8
commit 6b96f73b7a

View File

@ -151,7 +151,7 @@ export class RdDItem extends Item {
if (tplData.quantite == undefined) return false; if (tplData.quantite == undefined) return false;
for (const [key, value] of Object.entries(tplData)) { for (const [key, value] of Object.entries(tplData)) {
if (['quantite', 'encTotal', 'prixTotal'].includes(key)) continue; if (['quantite', 'encTotal', 'prixTotal', 'cout'].includes(key)) continue;
if (value != otherTplData[key]) return false; if (value != otherTplData[key]) return false;
} }
return true; return true;