Skip to content

Commit

Permalink
ENGCOM-4798: Checkout Totals Sort Order fields can't be empty and sho…
Browse files Browse the repository at this point in the history
…uld be a number #22411
  • Loading branch information
sidolov authored Apr 24, 2019
2 parents 896dad6 + 4c128e6 commit 20f7bf7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/code/Magento/Sales/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,23 @@
<label>Checkout Totals Sort Order</label>
<field id="discount" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Discount</label>
<validate>required-number validate-number</validate>
</field>
<field id="grand_total" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Grand Total</label>
<validate>required-number validate-number</validate>
</field>
<field id="shipping" translate="label" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Shipping</label>
<validate>required-number validate-number</validate>
</field>
<field id="subtotal" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Subtotal</label>
<validate>required-number validate-number</validate>
</field>
<field id="tax" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Tax</label>
<validate>required-number validate-number</validate>
</field>
</group>
<group id="reorder" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Weee/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<group id="totals_sort">
<field id="weee" translate="label" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
<label>Fixed Product Tax</label>
<validate>required-number validate-number</validate>
</field>
</group>
</section>
Expand Down

0 comments on commit 20f7bf7

Please sign in to comment.