parent
7fba8622b3
commit
401e92d8b6
3 changed files with 33 additions and 10 deletions
|
@ -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';
|
||||
|
|
|
@ -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, на стороне системы создаётся обычная оплата, к которой будут привязываться заказы';
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue