mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -978,10 +978,10 @@ if ($rowid)
|
||||
$helpcontent='';
|
||||
$helpcontent.='<b>'.$langs->trans("MailFrom").'</b>: '.$conf->global->ADHERENT_MAIL_FROM.'<br>'."\n";
|
||||
$helpcontent.='<b>'.$langs->trans("MailRecipient").'</b>: '.$object->email.'<br>'."\n";
|
||||
$helpcontent.='<b>'.$langs->trans("Subject").'</b>:<br>'."\n";
|
||||
$helpcontent.='<b>'.$langs->trans("MailTopic").'</b>:<br>'."\n";
|
||||
$helpcontent.=$subjecttosend."\n";
|
||||
$helpcontent.="<br>";
|
||||
$helpcontent.='<b>'.$langs->trans("Content").'</b>:<br>';
|
||||
$helpcontent.='<b>'.$langs->trans("MailText").'</b>:<br>';
|
||||
$helpcontent.=dol_htmlentitiesbr($texttosend)."\n";
|
||||
|
||||
print $form->textwithpicto($tmp,$helpcontent,1,'help');
|
||||
|
||||
@@ -472,7 +472,7 @@ foreach ($dirmodels as $reldir)
|
||||
$htmltooltip.='<br>'.$langs->trans("PaymentMode").': '.yn($module->option_modereg,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang,1,1);
|
||||
//$htmltooltip.='<br>'.$langs->trans("Escompte").': '.yn($module->option_escompte,1,1);
|
||||
//$htmltooltip.='<br>'.$langs->trans("Discounts").': '.yn($module->option_escompte,1,1);
|
||||
//$htmltooltip.='<br>'.$langs->trans("CreditNote").': '.yn($module->option_credit_note,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("WatermarkOnDraftOrders").': '.yn($module->option_draft_watermark,1,1);
|
||||
|
||||
|
||||
@@ -571,7 +571,7 @@ foreach ($dirmodels as $reldir)
|
||||
$htmltooltip.='<br>'.$langs->trans("Logo").': '.yn($module->option_logo,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("PaymentMode").': '.yn($module->option_modereg,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("Escompte").': '.yn($module->option_escompte,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("Discounts").': '.yn($module->option_escompte,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("CreditNote").': '.yn($module->option_credit_note,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("WatermarkOnDraftInvoices").': '.yn($module->option_draft_watermark,1,1);
|
||||
|
||||
@@ -456,7 +456,7 @@ foreach ($dirmodels as $reldir)
|
||||
$htmltooltip.='<br>'.$langs->trans("PaymentMode").': '.yn($module->option_modereg,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("PaymentConditions").': '.yn($module->option_condreg,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("MultiLanguage").': '.yn($module->option_multilang,1,1);
|
||||
//$htmltooltip.='<br>'.$langs->trans("Escompte").': '.yn($module->option_escompte,1,1);
|
||||
//$htmltooltip.='<br>'.$langs->trans("Discounts").': '.yn($module->option_escompte,1,1);
|
||||
//$htmltooltip.='<br>'.$langs->trans("CreditNote").': '.yn($module->option_credit_note,1,1);
|
||||
$htmltooltip.='<br>'.$langs->trans("WatermarkOnDraftProposal").': '.yn($module->option_draft_watermark,1,1);
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ require '../../main.inc.php';
|
||||
$id = GETPOST('id','int');
|
||||
$action = GETPOST('action','alpha');
|
||||
$htmlname = GETPOST('htmlname','alpha');
|
||||
$productid = (GETPOST('productid','int')?GETPOST('productid','int'):0);
|
||||
|
||||
/*
|
||||
* View
|
||||
@@ -46,15 +47,15 @@ if (! empty($id) && ! empty($action) && ! empty($htmlname))
|
||||
{
|
||||
$form = new Form($db);
|
||||
$soc = new Societe($db);
|
||||
|
||||
|
||||
$soc->fetch($id);
|
||||
|
||||
|
||||
$return=array();
|
||||
|
||||
$return['value'] = $form->load_tva('tva_tx','',$soc,$mysoc,0,0,'',true);
|
||||
|
||||
$return['value'] = $form->load_tva('tva_tx','',$soc,$mysoc,$productid,0,'',true);
|
||||
$return['num'] = $form->num;
|
||||
$return['error'] = $form->error;
|
||||
|
||||
|
||||
echo json_encode($return);
|
||||
}
|
||||
|
||||
|
||||
@@ -2741,6 +2741,10 @@ function get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournpr
|
||||
{
|
||||
global $db,$mysoc;
|
||||
|
||||
if (! class_exists('Product')) {
|
||||
require DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
|
||||
}
|
||||
|
||||
$ret=0;
|
||||
$found=0;
|
||||
|
||||
|
||||
@@ -123,8 +123,8 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<b>__DonationPaymentDate__</b> : __DATE__ <br>
|
||||
<b>__DonationPaymentMode__</b> : __PAYMENTMODE_LIB__ <br>
|
||||
<b>__DatePayment__</b> : __DATE__ <br>
|
||||
<b>__PaymentMode__</b> : __PAYMENTMODE_LIB__ <br>
|
||||
|
||||
<table width="100%">
|
||||
<tr align="center">
|
||||
|
||||
@@ -140,8 +140,8 @@ class html_cerfafr extends ModeleDon
|
||||
$form = str_replace('__DonationRef__',$outputlangs->trans("DonationRef"),$form);
|
||||
$form = str_replace('__DonationReceipt__',$outputlangs->trans("DonationReceipt"),$form);
|
||||
$form = str_replace('__DonationRecipient__',$outputlangs->trans("DonationRecipient"),$form);
|
||||
$form = str_replace('__DonationPaymentDate__',$outputlangs->trans("DonationPaymentDate"),$form);
|
||||
$form = str_replace('__DonationPaymentMode__',$outputlangs->trans("DonationPaymentMode"),$form);
|
||||
$form = str_replace('__DatePayment__',$outputlangs->trans("DatePayment"),$form);
|
||||
$form = str_replace('__PaymentMode__',$outputlangs->trans("PaymentMode"),$form);
|
||||
$form = str_replace('__Name__',$outputlangs->trans("Name"),$form);
|
||||
$form = str_replace('__Address__',$outputlangs->trans("Address"),$form);
|
||||
$form = str_replace('__Zip__',$outputlangs->trans("Zip"),$form);
|
||||
|
||||
@@ -153,7 +153,7 @@ if (! empty($conf->margin->enabled)) {
|
||||
|
||||
<td align="right">
|
||||
<?php
|
||||
if ($buyer->tva_assuj == "0") echo '<input type="hidden" name="np_tva_tx" value="0">0';
|
||||
if ($buyer->tva_assuj == "0") echo '<input type="hidden" name="tva_tx" value="0">0';
|
||||
else echo $form->load_tva('tva_tx', (GETPOST('tva_tx')?GETPOST('tva_tx'):-1), $seller, $buyer);
|
||||
?>
|
||||
<input type="hidden" id="price_base_type" name="price_base_type" value="" />
|
||||
@@ -229,6 +229,18 @@ $(document).ready(function() {
|
||||
$('#product_desc').focus();
|
||||
}
|
||||
|
||||
// Update vat rate combobox
|
||||
$.post('<?php echo DOL_URL_ROOT; ?>/core/ajax/vatrates.php', {
|
||||
'action': 'getVATRate',
|
||||
'id': <?php echo $buyer->id; ?>,
|
||||
'productid': $(this).val(),
|
||||
'htmlname': 'tva_tx' },
|
||||
function(data) {
|
||||
if (typeof data != 'undefined' && data.error == null) {
|
||||
$("#tva_tx").html(data.value);
|
||||
}
|
||||
}, 'json');
|
||||
|
||||
// For compatibility with combobox
|
||||
<?php if (empty($conf->global->PRODUIT_USE_SEARCH_TO_SELECT)) { ?>
|
||||
$.post('<?php echo DOL_URL_ROOT; ?>/product/ajax/products.php', {
|
||||
@@ -258,6 +270,17 @@ $(document).ready(function() {
|
||||
$('#update_price_checkbox').removeAttr('checked');
|
||||
$('#price_ttc').val('');
|
||||
|
||||
// Update vat rate combobox
|
||||
$.post('<?php echo DOL_URL_ROOT; ?>/core/ajax/vatrates.php', {
|
||||
'action': 'getVATRate',
|
||||
'id': <?php echo $buyer->id; ?>,
|
||||
'htmlname': 'tva_tx' },
|
||||
function(data) {
|
||||
if (typeof data != 'undefined' && data.error == null) {
|
||||
$("#tva_tx").html(data.value);
|
||||
}
|
||||
}, 'json');
|
||||
|
||||
// For compatibility with combobox
|
||||
<?php if (empty($conf->global->PRODUIT_USE_SEARCH_TO_SELECT)) { ?>
|
||||
$('#select_type').val('').removeAttr('disabled').trigger('change');
|
||||
@@ -272,7 +295,6 @@ $(document).ready(function() {
|
||||
$('#update_desc_area').hide().trigger('hide');
|
||||
$('#update_price_area').hide().trigger('hide');
|
||||
<?php } ?>
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -346,11 +368,13 @@ $(document).ready(function() {
|
||||
$('#update_price_area').bind('hide', function() {
|
||||
$('#price_ht').removeAttr('disabled');
|
||||
$('#price_ttc').removeAttr('disabled');
|
||||
$('#tva_tx').removeAttr('disabled');
|
||||
});
|
||||
|
||||
$('#update_price_area').bind('show', function() {
|
||||
$('#price_ht').attr('disabled', 'disabled');
|
||||
$('#price_ttc').attr('disabled', 'disabled');
|
||||
$('#tva_tx').attr('disabled', 'disabled');
|
||||
});
|
||||
|
||||
$('#update_price_checkbox').change(function() {
|
||||
@@ -359,15 +383,14 @@ $(document).ready(function() {
|
||||
if ($('#tva_tx').val() > 0) {
|
||||
$('#price_ttc').removeAttr('disabled')
|
||||
}
|
||||
$('#tva_tx').removeAttr('disabled');
|
||||
} else {
|
||||
$('#price_ht')
|
||||
.attr('disabled','disabled')
|
||||
.val($('#origin_price_ht_cache').val())
|
||||
.trigger('change');
|
||||
$('#price_ttc')
|
||||
.attr('disabled','disabled');
|
||||
//.val($('#origin_price_ttc_cache').val())
|
||||
//.trigger('change');
|
||||
$('#price_ttc').attr('disabled','disabled');
|
||||
$('#tva_tx').attr('disabled', 'disabled');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -653,6 +653,8 @@ Permission2501=Read/Download documents
|
||||
Permission2502=Download documents
|
||||
Permission2503=Submit or delete documents
|
||||
Permission2515=Setup documents directories
|
||||
Permission2801=Use FTP client in read mode (browse and download only)
|
||||
Permission2802=Use FTP client in write mode (delete or upload files)
|
||||
Permission50101=Use Point of sales
|
||||
Permission50201= Read transactions
|
||||
Permission50202= Import transactions
|
||||
|
||||
@@ -27,8 +27,6 @@ BuildDonationReceipt=Build receipt
|
||||
DonationsModels=Documents models for donation receipts
|
||||
LastModifiedDonations=Last %s modified donations
|
||||
SearchADonation=Search a donation
|
||||
DonationPaymentDate=Donation payment date
|
||||
DonationPaymentMode=Donation payment mode
|
||||
DonationRecipient=Donation recipient
|
||||
ThankYou=Thank You
|
||||
IConfirmDonationReception=The recipient declare reception, as a donation, of the following amount
|
||||
@@ -131,8 +131,8 @@ AddSubscription=Add subscription
|
||||
ShowSubscription=Show subscription
|
||||
MemberModifiedInDolibarr=Member modified in Dolibarr
|
||||
SendAnEMailToMember=Send information email to member
|
||||
DescADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT=Sujet du mail reçu en cas d'auto-inscription d'un invité
|
||||
DescADHERENT_AUTOREGISTER_NOTIF_MAIL=Mail reçu en cas d'auto-inscription d'un invité
|
||||
DescADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT=Subject of the e-mail received in case of auto-inscription of a guest
|
||||
DescADHERENT_AUTOREGISTER_NOTIF_MAIL=E-mail received in case of auto-inscription of a guest
|
||||
DescADHERENT_AUTOREGISTER_MAIL_SUBJECT=EMail subject for member autosubscription
|
||||
DescADHERENT_AUTOREGISTER_MAIL=EMail for member autosubscription
|
||||
DescADHERENT_MAIL_VALID_SUBJECT=EMail subject for member validation
|
||||
|
||||
@@ -37,7 +37,7 @@ GlobalSetup=General
|
||||
GUISetup=Entorno
|
||||
SetupArea=Área configuración
|
||||
FormToTestFileUploadForm=Formulario de prueba de subida de archivo (según opciones elegidas)
|
||||
IfModuleEnabled=Nota: sí sólo es eficaz si el módulo <b>%s</b> está activado
|
||||
IfModuleEnabled=Nota: sólo es eficaz si el módulo <b>%s</b> está activado
|
||||
RemoveLock=Elimine el archivo <b>%s</b>, si existe, para permitir la utilidad de actualización.
|
||||
RestoreLock=Sustituir un archivo <b>%s</b>, dándole sólo derechos de lectura a este archivo con el fin de prohibir nuevas actualizaciones.
|
||||
SecuritySetup=Configuración de la seguridad
|
||||
@@ -665,6 +665,8 @@ Permission2501=Consultar/Recuperar documentos
|
||||
Permission2502=Recuperar documentos
|
||||
Permission2503=Enviar o eliminar documentos
|
||||
Permission2515=Configuración directorios de documentos
|
||||
Permission2801=Utilizar el cliente FTP en modo lectura (sólo explorar y descargar)
|
||||
Permission2802=Utilizar el cliente FTP en modo escritura (borrar o subir archivos)
|
||||
Permission50101=Usar TPV
|
||||
Permission50201=Consultar las transacciones
|
||||
Permission50202=Importar las transacciones
|
||||
@@ -1334,3 +1336,5 @@ ProjectsNumberingModules=Módulo de numeración para las referencias de los proy
|
||||
ProjectsSetup=Configuración del módulo Proyectos
|
||||
ProjectsModelModule=Modelo de documento para informes de proyectos
|
||||
Server=Servidor
|
||||
|
||||
Logo=Logotipo
|
||||
@@ -70,6 +70,7 @@ Phone=Teléfono
|
||||
PhonePro=Teléf. trabajo
|
||||
PhonePerso=Teléf. particular
|
||||
PhoneMobile=Móvil
|
||||
No_Email=No enviar emails masivos
|
||||
Fax=Fax
|
||||
Zip=Código postal
|
||||
Town=Población
|
||||
|
||||
@@ -24,4 +24,9 @@ ValidPromess=Validar promesa
|
||||
BuildDonationReceipt=Crear recibo
|
||||
DonationsModels=Modelo de documento de recepción de donación
|
||||
LastModifiedDonations=Las %s últimas donaciones modificadas
|
||||
SearchADonation=Buscar una donación
|
||||
SearchADonation=Buscar una donación
|
||||
DonationReceipt=Recibo de donación
|
||||
DonationRecipient=Beneficiario
|
||||
DonationRef=Referencia
|
||||
IConfirmDonationReception=El beneficiario confirma la recepción, como donación, de la siguiente cantidad
|
||||
ThankYou=Muchas gracias
|
||||
@@ -14,6 +14,7 @@ FormatDateHourShort=%d/%m/%Y %H:%M
|
||||
FormatDateHourTextShort=%d %b %Y %H:%M
|
||||
FormatDateHourText=%d %B %Y %H:%M
|
||||
DatabaseConnection=Conexión a la base de datos
|
||||
NoTranslation=Sin traducción
|
||||
NoError=Ningún error
|
||||
Error=Error
|
||||
ErrorFieldRequired=El campo '%s' es obligatorio
|
||||
@@ -62,7 +63,7 @@ DolibarrInHttpAuthenticationSoPasswordUseless=Dolibarr está configurado en modo
|
||||
Administrator=Administrador
|
||||
Undefined=No definido
|
||||
PasswordForgotten=¿Olvidó su contraseña?
|
||||
SeeAbove=Mencionar anteriormente
|
||||
SeeAbove=Mencionado anteriormente
|
||||
HomeArea=Área inicio
|
||||
LastConnexion=Última conexión
|
||||
PreviousConnexion=Conexión anterior
|
||||
@@ -521,7 +522,7 @@ Priority=Prioridad
|
||||
SendByMail=Enviar por e-mail
|
||||
MailSentBy=Mail enviado por
|
||||
TextUsedInTheMessageBody=Texto utilizado en el cuerpo del mensaje
|
||||
SendAcknowledgementByMail=Envio rec. por e-mail
|
||||
SendAcknowledgementByMail=Enviar recibo por e-mail
|
||||
NoEMail=Sin e-mail
|
||||
Owner=Propietario
|
||||
DetectedVersion=Versión detectada
|
||||
|
||||
@@ -54,7 +54,7 @@ MembersAttributes=Atributos miembros
|
||||
SearchAMember=Buscar un miembro
|
||||
MemberStatusDraft=Borrador (a validar)
|
||||
MemberStatusDraftShort=A validar
|
||||
MemberStatusActive=Validado (en espera de afiliación )
|
||||
MemberStatusActive=Validado (en espera de afiliación)
|
||||
MemberStatusActiveShort=Validado
|
||||
MemberStatusActiveLate=Afiliación no al día
|
||||
MemberStatusActiveLateShort=No al día
|
||||
@@ -134,6 +134,8 @@ AddSubscription=Añadir afiliación
|
||||
ShowSubscription=Mostrar afiliación
|
||||
MemberModifiedInDolibarr=Miembro modificado en Dolibarr
|
||||
SendAnEMailToMember=Enviar e-mail de información al miembro (E-mail: <b>%s</b>)
|
||||
DescADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT=Asunto del e-mail recibido en caso de auto-inscripción de un invitado
|
||||
DescADHERENT_AUTOREGISTER_NOTIF_MAIL=E-mail recibido en caso de auto-inscripción de un invitado
|
||||
DescADHERENT_AUTOREGISTER_MAIL_SUBJECT=Asunto del e-mail enviado cuando un invitado se auto-inscriba
|
||||
DescADHERENT_AUTOREGISTER_MAIL=E-mail enviado cuando un invitado se auto-inscriba
|
||||
DescADHERENT_MAIL_VALID_SUBJECT=Asunto del e-mail de validación de miembro
|
||||
|
||||
@@ -108,7 +108,7 @@ ConfirmCreateContact=¿Está seguro de querer crear una cuenta Dolibarr para est
|
||||
ConfirmCreateLogin=¿Está seguro de que desea crear una cuenta Dolibarr para este miembro?
|
||||
ConfirmCreateThirdParty=¿Está seguro de querer crear un tercero para este miembro?
|
||||
LoginToCreate=Login a crear
|
||||
NameToCreate=nombre del tercero a crear
|
||||
NameToCreate=Nombre del tercero a crear
|
||||
YourRole=Sus roles
|
||||
YourQuotaOfUsersIsReached=¡Ha llegado a su cuota de usuarios activos!
|
||||
NbOfUsers=Nº de usuarios
|
||||
|
||||
@@ -661,6 +661,8 @@ Permission2501= Lire/Récupérer les documents
|
||||
Permission2502= Récupérer les documents
|
||||
Permission2503= Soumettre ou supprimer des documents
|
||||
Permission2515= Administrer les rubriques de documents
|
||||
Permission2801=Utiliser un client FTP en mode lecture (parcours et download de fichiers)
|
||||
Permission2802=Utiliser un client FTP en mode écriture (suppression et upload de fichiers)
|
||||
Permission50101=Utiliser Point de vente
|
||||
Permission50201= Consulter les transactions
|
||||
Permission50202= Importer les transactions
|
||||
|
||||
@@ -27,8 +27,6 @@ BuildDonationReceipt=Créer reçu
|
||||
DonationsModels=Modèle de document de bon de réception de dons
|
||||
LastModifiedDonations=Les %s derniers dons modifiés
|
||||
SearchADonation=Rechercher un don
|
||||
DonationPaymentDate=Date du versement
|
||||
DonationPaymentMode=Mode de versement
|
||||
DonationRecipient=Bénéficiaire des versements
|
||||
ThankYou=Merci
|
||||
IConfirmDonationReception=Le bénéficiaire reconnait avoir reçu au titre des versements ouvrant droit à réduction d'impôt, la somme de
|
||||
Reference in New Issue
Block a user