diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index be6ad58764ac8e73f8067526dae992b673bb1fea..ef5d1d90bea812c612a5edec257e0234b476bcd6 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -1766,8 +1766,10 @@ if ($action == 'create') $projectid = (! empty($objectsrc->fk_project) ? $objectsrc->fk_project : ''); $ref_client = (! empty($objectsrc->ref_client) ? $objectsrc->ref_client : ''); $ref_int = (! empty($objectsrc->ref_int) ? $objectsrc->ref_int : ''); - - $soc = $objectsrc->thirdparty; + + // only if socid is not filled + if (empty($socid)) + $soc = $objectsrc->thirdparty; $cond_reglement_id = (! empty($objectsrc->cond_reglement_id)?$objectsrc->cond_reglement_id:(! empty($soc->cond_reglement_id)?$soc->cond_reglement_id:1)); $mode_reglement_id = (! empty($objectsrc->mode_reglement_id)?$objectsrc->mode_reglement_id:(! empty($soc->mode_reglement_id)?$soc->mode_reglement_id:0)); @@ -1786,7 +1788,7 @@ if ($action == 'create') { $cond_reglement_id = $soc->cond_reglement_id; $mode_reglement_id = $soc->mode_reglement_id; - $fk_account = $soc->fk_account; + $fk_account = $soc->fk_account; $remise_percent = $soc->remise_percent; $remise_absolue = 0; $dateinvoice = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE)?-1:''):$dateinvoice); // Do not set 0 here (0 for a date is 1970) diff --git a/htdocs/contrat/card.php b/htdocs/contrat/card.php index e4a8c644615979bb7d70cc47400865329a442f78..957e20590d77e9d24325352fa404ec0a24bf507f 100644 --- a/htdocs/contrat/card.php +++ b/htdocs/contrat/card.php @@ -1721,6 +1721,9 @@ else if ($user->societe_id == 0) { print '<div class="tabsAction">'; + + $parameters=array(); + $reshook=$hookmanager->executeHooks('addMoreActionsButtons',$parameters,$object,$action); // Note that $action and $object may have been modified by hook if ($object->statut == 0 && $nbofservices) { diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index 64400c87849cfb1f6cd82684d0a69785f5ee3937..886340b4df0fb78994778abef67dc4a8bb2eea95 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -681,7 +681,8 @@ if ($action == 'create') print '<tr><td>'.$langs->trans("DateDeliveryPlanned").'</td>'; print '<td colspan="3">'; //print dol_print_date($object->date_livraison,"day"); // date_livraison come from order and will be stored into date_delivery planed. - print $form->select_date($object->date_livraison?$object->date_livraison:-1,'date_delivery',1,1); + $date_delivery = ($date_delivery?$date_delivery:$object->date_livraison); // $date_delivery comes from GETPOST + print $form->select_date($date_delivery?$date_delivery:-1,'date_delivery',1,1); print "</td>\n"; print '</tr>'; diff --git a/htdocs/fichinter/card.php b/htdocs/fichinter/card.php index 2f067efeae2a95863e972a138cf0b37384af1212..a9888a59a2453cd7dd1b4c155f64fbfe3cc17fcd 100644 --- a/htdocs/fichinter/card.php +++ b/htdocs/fichinter/card.php @@ -1486,7 +1486,9 @@ else if ($id > 0 || ! empty($ref)) // Duration print '<td align="right">'; - $form->select_duration('duration',$objp->duree); + $selectmode='select'; + if (! empty($conf->global->INTERVENTION_ADDLINE_FREEDUREATION)) $selectmode='text'; + $form->select_duration('duration',$objp->duree, $selectmode); print '</td>'; print '<td align="center" colspan="5" valign="center"><input type="submit" class="button" name="save" value="'.$langs->trans("Save").'">'; diff --git a/htdocs/fichinter/class/fichinter.class.php b/htdocs/fichinter/class/fichinter.class.php index bc12821530f731a6d6668656fce12ebe33ff4c8c..ccec1075ca817d14a582a11356bbdfb1624eada3 100644 --- a/htdocs/fichinter/class/fichinter.class.php +++ b/htdocs/fichinter/class/fichinter.class.php @@ -79,6 +79,9 @@ class Fichinter extends CommonObject $this->statuts_short[0]='Draft'; $this->statuts_short[1]='Validated'; $this->statuts_short[2]='StatusInterInvoiced'; + $this->statuts_logo[0]='statut0'; + $this->statuts_logo[1]='statut4'; + $this->statuts_logo[2]='statut6'; } @@ -508,37 +511,23 @@ class Fichinter extends CommonObject global $langs; if ($mode == 0) - { return $langs->trans($this->statuts[$statut]); - } + if ($mode == 1) - { return $langs->trans($this->statuts_short[$statut]); - } + if ($mode == 2) - { - if ($statut==0) return img_picto($langs->trans($this->statuts_short[$statut]),'statut0').' '.$langs->trans($this->statuts_short[$statut]); - if ($statut==1) return img_picto($langs->trans($this->statuts_short[$statut]),'statut4').' '.$langs->trans($this->statuts_short[$statut]); - if ($statut==2) return img_picto($langs->trans($this->statuts_short[$statut]),'statut6').' '.$langs->trans($this->statuts_short[$statut]); - } + return img_picto($langs->trans($this->statuts_short[$statut]), $this->statuts_logo[$statut]).' '.$langs->trans($this->statuts_short[$statut]); + if ($mode == 3) - { - if ($statut==0) return img_picto($langs->trans($this->statuts_short[$statut]),'statut0'); - if ($statut==1) return img_picto($langs->trans($this->statuts_short[$statut]),'statut4'); - if ($statut==2) return img_picto($langs->trans($this->statuts_short[$statut]),'statut6'); - } + return img_picto($langs->trans($this->statuts_short[$statut]), $this->statuts_logo[$statut]); + if ($mode == 4) - { - if ($statut==0) return img_picto($langs->trans($this->statuts_short[$statut]),'statut0').' '.$langs->trans($this->statuts[$statut]); - if ($statut==1) return img_picto($langs->trans($this->statuts_short[$statut]),'statut4').' '.$langs->trans($this->statuts[$statut]); - if ($statut==2) return img_picto($langs->trans($this->statuts_short[$statut]),'statut6').' '.$langs->trans($this->statuts[$statut]); - } + return img_picto($langs->trans($this->statuts_short[$statut]),$this->statuts_logo[$statut]).' '.$langs->trans($this->statuts[$statut]); + if ($mode == 5) - { - if ($statut==0) return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),'statut0'); - if ($statut==1) return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),'statut4'); - if ($statut==2) return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),'statut6'); - } + return '<span class="hideonsmartphone">'.$langs->trans($this->statuts_short[$statut]).' </span>'.img_picto($langs->trans($this->statuts_short[$statut]),$this->statuts_logo[$statut]); + } /** diff --git a/htdocs/langs/es_ES/admin.lang b/htdocs/langs/es_ES/admin.lang index a5e4ab1fdfa5f7ccd144a3bb37a1e9ac386853b0..e2c2f124b2e5aa5fa07fd9bf9e90529c3ad53b5b 100644 --- a/htdocs/langs/es_ES/admin.lang +++ b/htdocs/langs/es_ES/admin.lang @@ -56,6 +56,8 @@ UseSearchToSelectCompany=Utilice los campos de autocompletar para elegir tercer ActivityStateToSelectCompany= Agregar un filtro en la búsqueda para mostrar/ocultar los terceros en activo o que hayan dejado de ejercer UseSearchToSelectContactTooltip=También si usted tiene un gran número de terceros (> 100 000), puede aumentar la velocidad mediante el establecimiento CONTACT_DONOTSEARCH_ANYWHERE constante a 1 en Configuración-> Otros. La búsqueda será limitada a la creación de cadena. UseSearchToSelectContact=Utilice los campos de autocompletar para seleccionar contactos (en lugar de utilizar un cuadro de lista). +DelaiedFullListToSelectCompany=Esperar a que presione una tecla antes de cargar el contenido de los terceros en el combo (Esto puede incrementar el rendimiento si tiene un gran número de terceros) +DelaiedFullListToSelectContact=Esperar a que presione una tecla antes de cargar el contenido de los contactos en el combo (Esto puede incrementar el rendimiento si tiene un gran número de contactos) SearchFilter=Opciones filtros de búsqueda NumberOfKeyToSearch=Nº de caracteres para desencadenar la búsqueda: %s ViewFullDateActions=Ver las fechas de las acciones en su totalidad en la ficha de tercero @@ -208,6 +210,7 @@ ModulesJobDesc=Los módulos específicos permiten una preconfiguración simplifi ModulesMarketPlaceDesc=Hay disponibles para su descarga en sitios externos otros módulos/extensiones... ModulesMarketPlaces=Más módulos... DoliStoreDesc=DoliStore, el sitio oficial de módulos complementarios y para Dolibarr ERP/CRM +DoliPartnersDesc=Listado con algunas empresas que pueden proporcionar desarrollar a medida módulos o funcionalidades (Nota: cualquier empresa Open Source con conocimientos de lenguaje PHP puede proporcionarle desarrollo específico) WebSiteDesc=Sitios proveedores a consultar para encontrar más módulos URL=Enlace BoxesAvailable=Paneles disponibles @@ -444,7 +447,7 @@ Module55Desc=Gestión de los códigos de barras Module56Name=Telefonía Module56Desc=Gestión de la telefonía Module57Name=Domiciliaciones -Module57Desc=Gestión de domiciliaciones y reintegros bancarios +Module57Desc=Gestión de domiciliaciones. También incluye generación de archivo SEPA para los países europeos. Module58Name=ClickToDial Module58Desc=Integración con ClickToDial Module59Name=Bookmark4u @@ -893,6 +896,7 @@ PermanentLeftSearchForm=Zona de búsqueda permanente del menú izquierdo DefaultLanguage=Idioma por defecto a utilizar (código idioma) EnableMultilangInterface=Activar interfaz multi-idioma EnableShowLogo=Mostrar el logotipo en el menú de la izquierda +EnableHtml5=Activar Html5 (En desarrollo - Solo disponible en el tema Eldy) SystemSuccessfulyUpdated=Su sistema está actualizado CompanyInfo=Información de la empresa/institución CompanyIds=Identificación reglamentaria diff --git a/htdocs/langs/es_ES/agenda.lang b/htdocs/langs/es_ES/agenda.lang index db154055b672f593044c372ea9cfc7959dab5395..078045f4c14627bfc55159cfdd0064ef997f667e 100644 --- a/htdocs/langs/es_ES/agenda.lang +++ b/htdocs/langs/es_ES/agenda.lang @@ -29,7 +29,7 @@ ActionsToDoBy=Eventos asignados a ActionsDoneBy=Eventos realizados por ActionsForUser=Acontecimientos del usuario ActionsForUsersGroup=Acontecimientos de todos los usuarios del grupo -ActionAssignedTo=Event assigned to +ActionAssignedTo=Evento asignado a AllMyActions= Todos mis eventos/tareas AllActions= Todos los eventos/tareas ViewList=Vista listado diff --git a/htdocs/langs/es_ES/contracts.lang b/htdocs/langs/es_ES/contracts.lang index c9e59a17cd62b115dc633061147ab5d4c0c714bb..76dd3e925de36419b752ce7fa7d1dfc7c01b3a52 100644 --- a/htdocs/langs/es_ES/contracts.lang +++ b/htdocs/langs/es_ES/contracts.lang @@ -91,7 +91,7 @@ ListOfServicesToExpire=Listado de servicios activos a expirar NoteListOfYourExpiredServices=Este listado contiene solamente los servicios de contratos de terceros de los que usted es comercial StandardContractsTemplate=Modelo de contrato estandar ContactNameAndSignature=Para %s, nombre y firma: -OnlyLinesWithTypeServiceAreUsed=Only lines with type "Service" will be cloned. +OnlyLinesWithTypeServiceAreUsed=Solo serán clonadas las líneas del tipo "Servicio" ##### Types de contacts ##### TypeContact_contrat_internal_SALESREPSIGN=Comercial firmante del contrato diff --git a/htdocs/langs/es_ES/withdrawals.lang b/htdocs/langs/es_ES/withdrawals.lang index 98c4a32016da10ec1d5dfbe6b28012bf7746afd6..de91cb28d0a26a529b223ce5c7410ead61577cb1 100644 --- a/htdocs/langs/es_ES/withdrawals.lang +++ b/htdocs/langs/es_ES/withdrawals.lang @@ -79,11 +79,11 @@ CreditDate=Abonada el WithdrawalFileNotCapable=No es posible generar el fichero bancario de domiciliación para el país %s (El país no está soportado) ShowWithdraw=Ver domiciliación IfInvoiceNeedOnWithdrawPaymentWontBeClosed=Sin embargo, si la factura tiene pendiente algún pago por domiciliación, no será cerrada para permitir la gestión de la domiciliación. -DoStandingOrdersBeforePayments=This tab allows you to request a standing order. Once donee, go into menu Bank->Withdrawal to manage the standing order. When standing order is closed, payment on invoice will be automatically recorded, and invoice closed if remainder to pay is null. +DoStandingOrdersBeforePayments=Esta pestaña le permite realizar una petición de domiciliación. Una vez realizada, vaya al menú de Bancos->Domiciliaciones para gestionar las domiciliaciones. Cuando una domiciliación se marca como abonada, el pago en la factura se grabará automáticamente, y la factura será cerrada si resto a pagar es cero. WithdrawalFile=Archivo de la domiciliación SetToStatusSent=Clasificar como "Archivo enviado" ThisWillAlsoAddPaymentOnInvoice=Se crearán los pagos de las facturas y las clasificará como pagadas -StatisticsByLineStatus=Statistics by status of lines +StatisticsByLineStatus=Estadísticas por estados de líneas ### Notifications InfoCreditSubject=Abono de domiciliación %s por el banco