Skip to content

Commit

Permalink
VCST-2305: Add rounding option to dynamic expression templates (#233)
Browse files Browse the repository at this point in the history
* Add rounding option to dynamic expression templates

* Fix spelling

* Fix menu id

---------

Co-authored-by: Kutasina Elena <[email protected]>
  • Loading branch information
artem-dudarev and ekuvirto authored Dec 19, 2024
1 parent 3b46308 commit 022e03a
Showing 1 changed file with 27 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<ul class="menu __context" role="menu" id="compareCondition_menu{{element1.id}}">
<li class="menu-item" ng-click='element1.compareCondition="Exactly";'>exactly</li>
<li class="menu-item" ng-click='element1.compareCondition="AtLeast";'>at least</li>
<li class="menu-item" ng-click='element1.compareCondition="IsLessThanOrEqual";'>exacly or less than</li>
<li class="menu-item" ng-click='element1.compareCondition="IsLessThanOrEqual";'>exactly or less than</li>
<li class="menu-item" ng-click='element1.compareCondition="Between";element1.subTotalSecond = element1.subTotal;'>between</li>
</ul>
</script>
Expand All @@ -118,7 +118,7 @@
<ul class="menu __context" role="menu" id="compareCondition_menu{{element1.id}}">
<li class="menu-item" ng-click='element1.compareCondition="Exactly";'>exactly</li>
<li class="menu-item" ng-click='element1.compareCondition="AtLeast";'>at least</li>
<li class="menu-item" ng-click='element1.compareCondition="IsLessThanOrEqual";'>exacly or less than</li>
<li class="menu-item" ng-click='element1.compareCondition="IsLessThanOrEqual";'>exactly or less than</li>
<li class="menu-item" ng-click='element1.compareCondition="Between";element1.numItemSecond = element1.numItem;'>between</li>
</ul>
</script>
Expand All @@ -137,7 +137,7 @@
<ul class="menu __context" role="menu" id="compareCondition_menu{{element1.id}}">
<li class="menu-item" ng-click='element1.compareCondition="Exactly";'>exactly</li>
<li class="menu-item" ng-click='element1.compareCondition="AtLeast";'>at least</li>
<li class="menu-item" ng-click='element1.compareCondition="IsLessThanOrEqual";'>exacly or less than</li>
<li class="menu-item" ng-click='element1.compareCondition="IsLessThanOrEqual";'>exactly or less than</li>
<li class="menu-item" ng-click='element1.compareCondition="Between";element1.numItemSecond = element1.numItem;'>between</li>
</ul>

Expand Down Expand Up @@ -238,7 +238,6 @@
<a class="__link" ng-click="openItemSelectWizard(element1)">{{element1.productName?element1.productName + ' (' + element1.productCode + ')' : 'select product' }}</a>
</script>
<script type="text/ng-template" id="expression-RewardItemGetOfRel.html">

<div class="form-input __mini __number">
<input smart-float num-type="float" required ng-model="element1.amount">
</div>% off for
Expand All @@ -247,7 +246,12 @@
<div class="form-input __mini">
<input money required ng-model="element1.maxLimit">
</div>

, <a class="__link" left-click-menu data-target="trueFalse_menu_{{element1.$$hashKey}}">{{ element1.roundAmountPerItem | boolToValue:'round':"don't round"}}</a>
<ul class="menu __context" role="menu" id="trueFalse_menu_{{element1.$$hashKey}}">
<li class="menu-item" ng-click='element1.roundAmountPerItem=true;'>round</li>
<li class="menu-item" ng-click='element1.roundAmountPerItem=false;'>don't round</li>
</ul>
amount per item
</script>
<script type="text/ng-template" id="expression-RewardItemGetOfAbsForNum.html">
$
Expand All @@ -258,9 +262,14 @@
<input smart-float num-type="integer" required ng-model="element1.numItem">
</div>items of this product:
<a class="__link" ng-click="openItemSelectWizard(element1)">{{element1.productName?element1.productName + ' (' + element1.productCode + ')' : 'select product' }}</a>
, <a class="__link" left-click-menu data-target="trueFalse_menu_{{element1.$$hashKey}}">{{ element1.roundAmountPerItem | boolToValue:'round':"don't round"}}</a>
<ul class="menu __context" role="menu" id="trueFalse_menu_{{element1.$$hashKey}}">
<li class="menu-item" ng-click='element1.roundAmountPerItem=true;'>round</li>
<li class="menu-item" ng-click='element1.roundAmountPerItem=false;'>don't round</li>
</ul>
amount per item
</script>
<script type="text/ng-template" id="expression-RewardItemGetOfRelForNum.html">

<div class="form-input __mini __number">
<input smart-float num-type="float" required ng-model="element1.amount">
</div>% off, no more than $
Expand All @@ -273,8 +282,13 @@
<div>
items of this product:
<a class="__link" ng-click="openItemSelectWizard(element1)">{{element1.productName?element1.productName + ' (' + element1.productCode + ')' : 'select product' }}</a>

</div>
, <a class="__link" left-click-menu data-target="trueFalse_menu_{{element1.$$hashKey}}">{{ element1.roundAmountPerItem | boolToValue:'round':"don't round"}}</a>
<ul class="menu __context" role="menu" id="trueFalse_menu_{{element1.$$hashKey}}">
<li class="menu-item" ng-click='element1.roundAmountPerItem=true;'>round</li>
<li class="menu-item" ng-click='element1.roundAmountPerItem=false;'>don't round</li>
</ul>
amount per item
</script>
<script type="text/ng-template" id="expression-RewardShippingGetOfAbsShippingMethod.html">
$
Expand Down Expand Up @@ -355,6 +369,12 @@
<input money required ng-model="element1.maxLimit">
</div>
</div>
, <a class="__link" left-click-menu data-target="trueFalse_menu_{{element1.$$hashKey}}">{{ element1.roundAmountPerItem | boolToValue:'round':"don't round"}}</a>
<ul class="menu __context" role="menu" id="trueFalse_menu_{{element1.$$hashKey}}">
<li class="menu-item" ng-click='element1.roundAmountPerItem=true;'>round</li>
<li class="menu-item" ng-click='element1.roundAmountPerItem=false;'>don't round</li>
</ul>
amount per item
</script>
<script type="text/ng-template" id="expression-RewardItemForEveryNumOtherItemInGetOfRel.html">
For
Expand Down

0 comments on commit 022e03a

Please sign in to comment.