__('Klient detaliczny')],
['label' => __('Klient hurtowy')],
['label' => __('Rodzaj')],
]);
echo "
";
echo "";
echo content_tag('td', st_admin_optional_input('discount[value]', $value->getValue(), ['size' => 8, 'disabled' => null === $value->getValue()]));
echo content_tag('td', st_admin_optional_input('discount[wholesale_value]', $value->getWholesaleValue(), ['size' => 8, 'disabled' => null === $value->getWholesaleValue()]));
echo content_tag('td', st_discount_type_select_tag('discount[price_type]', $value->getPriceType()));
echo "
";
echo "";
echo st_admin_table_end();
}
elseif (null !== $entity->getValue())
{
echo $entity->getPriceType() == Discount::PERCENT_TYPE ? $entity->getValue().'%' : st_currency_default_format($entity->getValue());
}
?>