{{vtScript}} {{vtIf: {vtName} .neq. {Bezeichnung} }} {{vtDo: -act="update", -obj="{vtID}", -properties[name]="{Bezeichnung}"}} {{vtEndIf}} {{vtIf: {vtGlobal:numberFormatDecimals} .neq. . .and. {Preis} .neq. }} {{vtCalc: str_replace( '{vtGlobal:numberFormatDecimals}', '.', '{Preis:escaped}' ) }} {{vtSet: Preis }} {{vtRepeat: {Rabattstaffel:raw} }} {{vtSet: Eintrag[quantity] = "{vtItem:quantity}" }} {{vtCalc: str_replace( '{vtGlobal:numberFormatDecimals}', '.', '{vtItem:price,escaped}' ) }} {{vtSet: Eintrag[price] = "{vtResult}" }} {{vtSet: Staffel[] = "{vtGet:Eintrag}" }} {{vtEndRepeat}} {{vtIf: {vtGet:Preis} .neq. {Preis} .or. {vtGet:Staffel} .neq. {Rabattstaffel} }} {{vtDo: -act="update", -obj="{vtID}", Preis="{vtGet:Preis}", Rabattstaffel="{vtGet:Staffel}" }} {{vtEndIf}} {{vtEndIf}} {{vtEndScript}}