1
0
Fork 0
mirror of synced 2025-04-11 05:00:55 +00:00
Изменено расположение вывода опции
Добавлено описание
This commit is contained in:
Ivan Chaplygin 2024-01-16 17:36:12 +03:00
parent 7fba8622b3
commit 401e92d8b6
3 changed files with 33 additions and 10 deletions

View file

@ -143,3 +143,4 @@ $MESS ['DESCRIPTION_AUTO_PAYMENT_TYPE'] = 'Automatically created payment type fo
$MESS ['SUBSTITUTED_PAYMENT'] = '(Substituted Bitrix)';
$MESS ['ERR_CHECK_JOURNAL'] = 'Error while saving. Details in the event log';
$MESS ['ERROR_LINK_INTEGRATION_PAYMENT'] = 'Integration payment linkage error';
$MESS ['INTEGRATION_PAYMENT_LABEL'] = 'When correlating CMS and CRM integration payments, a regular payment is created on the system side to which orders will be linked';

View file

@ -197,8 +197,9 @@ $MESS ['DELETE_MATCHED'] = 'Удалить';
$MESS ['LOCATION_LABEL'] = 'Местоположение (LOCATION)';
$MESS ['TEXT_ADDRESS_LABEL'] = 'Адрес (строкой)';
$MESS ['SYNC_INTEGRATION_PAYMENT'] = 'Активировать синхронизацию интегрированных оплат';
$MESS ['SYNC_INTEGRATION_PAYMENT'] = 'Активировать синхронизацию интегрированных типов оплат';
$MESS ['DESCRIPTION_AUTO_PAYMENT_TYPE'] = 'Автоматически созданный тип оплаты для подмены интеграционной (Bitrix)';
$MESS ['SUBSTITUTED_PAYMENT'] = '(Подменённый Bitrix)';
$MESS ['ERR_CHECK_JOURNAL'] = 'Ошибка при сохранении. Подробности в журнале событий';
$MESS ['ERROR_LINK_INTEGRATION_PAYMENT'] = 'Ошибка связи интеграционных оплат';
$MESS ['INTEGRATION_PAYMENT_LABEL'] = 'При соотнесении интеграционных оплат CMS и CRM, на стороне системы создаётся обычная оплата, к которой будут привязываться заказы';

View file

@ -1684,6 +1684,16 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
return true;
});
$('.r-sync-payment-button label').change(function() {
if ($(this).find('input').is(':checked') === true) {
$('tr.r-sync-payment').show('slow');
} else if ($(this).find('input').is(':checked') === false) {
$('tr.r-sync-payment').hide('slow');
}
return true;
});
$('.r-ac-button label').change(function() {
if ($(this).find('input').is(':checked') === true) {
$('tr.r-ac').show('slow');
@ -2870,15 +2880,6 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
</b>
</td>
</tr>
<tr>
<td colspan="2" class="option-head option-other-top option-other-bottom">
<b>
<label><input class="addr" type="checkbox" name="sync-integration-payment" value="Y" <?php if ($optionsSyncIntegrationPayment === 'Y') {
echo "checked";
} ?>> <?php echo GetMessage('SYNC_INTEGRATION_PAYMENT'); ?></label>
</b>
</td>
</tr>
<tr>
<td colspan="2" class="option-head option-other-top option-other-bottom">
<b>
@ -3258,6 +3259,26 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
</td>
</tr>
<tr class="heading r-sync-payment-button">
<td colspan="2" class="option-other-heading">
<b>
<label>
<input class="addr" type="checkbox" name="sync-integration-payment" value="Y" <?php if ($optionsSyncIntegrationPayment === 'Y') {
echo "checked";
} ?>> <?php echo GetMessage('SYNC_INTEGRATION_PAYMENT'); ?>
</label>
</b>
</td>
</tr>
<tr class="r-sync-payment" <?php if ($optionsSyncIntegrationPayment !== 'Y') {
echo 'style="display: none;"';
} ?>>
<td class="option-head" colspan="2">
<b><?php echo GetMessage('INTEGRATION_PAYMENT_LABEL'); ?></b>
</td>
</tr>
<tr class="heading r-ac-button">
<td colspan="2" class="option-other-heading">
<b>