13 <td
class=
"label"><?=
$block->getShippingLabel() ?><div
id=
"shipping_amount_adv"></div></td>
16 name=
"creditmemo[shipping_amount]" 17 value=
"<?= /* @escapeNotVerified */ $block->getShippingAmount() ?>" 18 class=
"input-text admin__control-text not-negative-amount" 19 id=
"shipping_amount" />
23 <td
class=
"label"><?=
__(
'Adjustment Refund') ?><div
id=
"adjustment_positive_adv"></div></td>
26 name=
"creditmemo[adjustment_positive]" 27 value=
"<?= /* @escapeNotVerified */ $_source->getBaseAdjustmentPositive()*1 ?>" 28 class=
"input-text admin__control-text not-negative-amount" 29 id=
"adjustment_positive" />
33 <td
class=
"label"><?=
__(
'Adjustment Fee') ?><div
id=
"adjustment_negative_adv"></div></td>
36 name=
"creditmemo[adjustment_negative]" 37 value=
"<?= /* @escapeNotVerified */ $_source->getBaseAdjustmentNegative()*1 ?>" 38 class=
"input-text admin__control-text not-negative-amount" 39 id=
"adjustment_negative"/>
41 require([
'prototype'],
function(){
44 Validation.addAllThese([
45 [
'not-negative-amount',
'<?= /* @escapeNotVerified */ __('Please enter a positive number in
this field.
') ?>',
function(v) {
47 return /^\s*\d+([,.]\d+)*\s*%?\s*$/.test(v);
53 if ($(
'shipping_amount')) {
54 $(
'shipping_amount').advaiceContainer = $(
'shipping_amount_adv');
55 unblockSubmit(
'shipping_amount');
57 if ($(
'adjustment_positive')) {
58 $(
'adjustment_positive').advaiceContainer = $(
'adjustment_positive_adv');
59 unblockSubmit(
'adjustment_positive');
61 if ($(
'adjustment_negative')) {
62 $(
'adjustment_negative').advaiceContainer = $(
'adjustment_negative_adv');
63 unblockSubmit(
'adjustment_negative');
66 function unblockSubmit(
id) {
67 $(id).observe(
'focus',
function(event) {
68 if ($$(
'button[class="scalable update-button disabled"]').size() > 0) {
69 enableElements(
'submit-button');
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
$_sourceif( $_source)() ?>< div id endif