Cashdesk: Missing translation. Barcode search with barcode reader.

This commit is contained in:
Juanjo Menent 2011-05-06 16:56:08 +00:00
parent b69a1bc082
commit fe9c617e4d
12 changed files with 111 additions and 71 deletions

View File

@ -2,6 +2,7 @@
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
* Copyright (C) 2008-2010 Laurent Destailleur <eldy@uers.sourceforge.net>
* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -28,11 +29,13 @@ require('../main.inc.php');
require_once(DOL_DOCUMENT_ROOT.'/cashdesk/include/environnement.php');
// Test if already logged
if ( $_SESSION['uid'] <= 0 ) {
if ( $_SESSION['uid'] <= 0 )
{
header ('Location: index.php');
exit;
}
$langs->load("cashdesk");
/*
* View

View File

@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
* Copyright (C) 2008-2009 Laurent Destailleur <eldy@uers.sourceforge.net>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -36,7 +37,7 @@ if ( $_GET['filtre'] ) {
if ($conf->stock->enabled && !empty($conf_fkentrepot)) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product_stock as ps ON p.rowid = ps.fk_product AND ps.fk_entrepot = '".$conf_fkentrepot."'";
$sql.= " WHERE p.tosell = 1";
$sql.= " AND p.fk_product_type = 0";
$sql.= " AND (p.ref LIKE '%".$_GET['filtre']."%' OR p.label LIKE '%".$_GET['filtre']."%')";
$sql.= " AND (p.ref LIKE '%".$_GET['filtre']."%' OR p.label LIKE '%".$_GET['filtre']."%' OR p.barcode='".$_GET['filtre']."')";
$sql.= " ORDER BY label";
dol_syslog("facturation.php sql=".$sql);
@ -97,11 +98,11 @@ if ( $nbr_enreg > 1 ) {
if ( $nbr_enreg > $conf_taille_listes ) {
$top_liste_produits = '----- '.$conf_taille_listes.' '.$langs->transnoentitiesnoconv("Products").' '.$langs->trans("on").' '.$nbr_enreg.' -----';
$top_liste_produits = '----- '.$conf_taille_listes.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----';
} else {
$top_liste_produits = '----- '.$nbr_enreg.' '.$langs->transnoentitiesnoconv("Products").' '.$langs->trans("on").' '.$nbr_enreg.' -----';
$top_liste_produits = '----- '.$nbr_enreg.' '.$langs->transnoentitiesnoconv("CashDeskProducts").' '.$langs->trans("CashDeskOn").' '.$nbr_enreg.' -----';
}

View File

@ -1,5 +1,6 @@
<?php
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -65,7 +66,7 @@ top_htmlhead('','',0,0,'',$arrayofcss);
<div class="contenu">
<div class="principal_login">
<?php if (! empty($_GET["err"])) print $_GET["err"]."<br><br>\n"; ?>
<fieldset class="cadre_facturation"><legend class="titre1">Identification</legend>
<fieldset class="cadre_facturation"><legend class="titre1"><?php echo $langs->trans("Identification"); ?></legend>
<form id="frmLogin" method="post" action="index_verif.php">
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
@ -84,6 +85,7 @@ print "<tr>";
print '<td class="label1">'.$langs->trans("CashDeskThirdPartyForSell").'</td>';
print '<td>';
$disabled=0;
$langs->load("companies");
if (! empty($conf->global->CASHDESK_ID_THIRDPARTY)) $disabled=1; // If a particular third party is defined, we disable choice
$form->select_societes($conf->global->CASHDESK_ID_THIRDPARTY,'socid','s.client=1',!$disabled,$disabled,1);
//print '<input name="warehouse_id" class="texte_login" type="warehouse_id" value="" />';
@ -106,7 +108,7 @@ if ($conf->stock->enabled)
?>
</table>
<center><span class="bouton_login"><input name="sbmtConnexion" type="submit" value="Connexion" /></span></center>
<center><span class="bouton_login"><input name="sbmtConnexion" type="submit" value=<?php echo $langs->trans("Connection"); ?> /></span></center>
</form>
</fieldset>

View File

@ -4,7 +4,9 @@ $langs->load("bills");
$langs->load("cashdesk");
?>
<!--
Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -39,8 +41,8 @@ $Id$
<td><input class="texte_ref" type="text" id ="txtRef" name="txtRef" value="<?php echo $obj_facturation->ref() ?>"
onchange="javascript: setSource('REF');"
onfocus="javascript: this.select(); verifResultat('resultats_dhtml', this.value);"
onBlur="javascript: document.getElementById('resultats_dhtml').innerHTML = '';"
onKeyUp="javascript: verifResultat('resultats_dhtml', this.value);" />
onBlur="javascript: document.getElementById('resultats_dhtml').innerHTML = '';"/>
<!--onKeyUp="javascript: verifResultat('resultats_dhtml', this.value);" />-- >
</td>
<td class="select_design">
<select name="selProduit" onchange="javascript: setSource('LISTE');">
@ -62,7 +64,7 @@ $Id$
$label = $tab_designations[$i]['label'];
print '<option '.$selected.' value="'.$tab_designations[$i]['rowid'].'">'.$tab_designations[$i]['ref'].' - '.dol_trunc($label,28,'middle');
if ($conf->stock->enabled && !empty($conf_fkentrepot)) print ' ('.$langs->trans("Warehouse").': '.$tab_designations[$i]['reel'].')';
if ($conf->stock->enabled && !empty($conf_fkentrepot)) print ' ('.$langs->trans("CashDeskWarehouse").': '.$tab_designations[$i]['reel'].')';
print '</option>'."\n ";
}
@ -80,7 +82,7 @@ $Id$
$label = $tab_designations[$i]['label'];
print '<option '.$selected.' value="'.$tab_designations[$i]['rowid'].'">'.$tab_designations[$i]['ref'].' - '.dol_trunc($label,28,'middle');
if ($conf->stock->enabled && !empty($conf_fkentrepot)) print ' ('.$langs->trans("Warehouse").': '.(empty($tab_designations[$i]['reel'])?0:$tab_designations[$i]['reel']).')';
if ($conf->stock->enabled && !empty($conf_fkentrepot)) print ' ('.$langs->trans("CashDeskWarehouse").': '.(empty($tab_designations[$i]['reel'])?0:$tab_designations[$i]['reel']).')';
print '</option>'."\n ";
}
@ -152,9 +154,9 @@ $Id$
<form id="frmDifference" class="formulaire1" method="post" onsubmit="javascript: return verifReglement()" action="validation_verif.php?action=valide_achat">
<input type="hidden" name="hdnChoix" value="" />
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>" />
<fieldset class="cadre_facturation"><legend class="titre1"><?php echo $langs->trans("Difference"); ?></legend>
<fieldset class="cadre_facturation"><legend class="titre1"><?php echo $langs->trans("Amount"); ?></legend>
<table>
<tr><th class="label1"><?php echo $langs->trans("AmountExpected"); ?></th><th class="label1"><?php echo $langs->trans("Received"); ?></th><th class="label1"><?php echo $langs->trans("ExcessReceived"); ?></th></tr>
<tr><th class="label1"><?php echo $langs->trans("TotalTicket"); ?></th><th class="label1"><?php echo $langs->trans("Received"); ?></th><th class="label1"><?php echo $langs->trans("Change"); ?></th></tr>
<tr>
<!-- Affichage du montant du -->
<td><input class="texte2_off" type="text" name="txtDu" value="<?php echo price2num($obj_facturation->prix_total_ttc (), 'MT'); ?>" disabled="disabled" /></td>
@ -181,7 +183,7 @@ $Id$
<input class="bouton_mode_reglement" type="submit" name="btnModeReglement" value="<?php echo $langs->trans("Reported"); ?>" onclick="javascript: verifClic('DIF');" />
<?php echo $langs->trans("DateEcheance"); ?> :
<input class="texte2" type="text" id="txtDatePaiement" name="txtDatePaiement" value="" />
<input class="bouton_cal" type="image" src="img/calendrier.png" id="btnCalendrier" value="..." title="Cliquez pour afficher le calendrier" />
<input class="bouton_cal" type="image" src="img/calendrier.png" id="btnCalendrier" value="..." title="<?php echo $langs->trans("CalTip"); ?>" />
</td>
</tr>

View File

@ -417,8 +417,8 @@ Module13452Name=SpeedFinder
Module13452Desc=Motor de cerca en AJAX per cercar en 2 segons un nom basant-se en part d'un número de telèfon
Module50000Name=PayBox
Module50000Desc=Mòdul per a proporcionar un pagament en línia amb targeta de crèdit mitjançant Paybox
Module50100Name=Punt de venda
Module50100Desc=Caixa registradora de punt de venda
Module50100Name=TPV
Module50100Desc=Terminal Punt de Venda per a la venda al taulell
Module50200Name=Paypal
Module50200Desc=Mòdul per a proporcionar un pagament en línia amb targeta de crèdit mitjançant Paypal
Permission11=Consultar factures
@ -1234,8 +1234,8 @@ PastDelayVCalExport=No exportar els esdeveniments de més de
##### ClickToDial #####
ClickToDialDesc=Aquest mòdul permet afegir una icona després del número de telèfon de contactes Dolibarr. Un clic en aquesta icona, Truca a un servidor amb un URL que s'indica a continuació. Això pot ser usat per anomenar al sistema centre de Dolibarr que pot trucar al número de telèfon en un sistema SIP, per exemple.
##### Point Of Sales (CashDesk) #####
CashDesk=Caixa registradora
CashDeskSetup=Mòdul de configuració TPV/Caixa registradora
CashDesk=TPV
CashDeskSetup=Mòdul de configuració Terminal Punt de Venda
CashDeskThirdPartyForSell=Tercer genéric a utilitzar per a les vendes
CashDeskBankAccountForSell=Compte a utilitzar per als cobraments en efectiu (caixa)
CashDeskBankAccountForCheque=Compte a utilitzar per als cobraments amb xecs

View File

@ -1,23 +1,31 @@
# Language file - ca_ES - cashdesk
CHARSET= UTF-8
CashDeskMenu= Caixa
CashDesk= Caixa registradora
CashDesks= Caixes registradores
CashDeskBank= Compte bancari
CashDeskBankCash= Compte bancari (efectiu)
CashDeskBankCB= Compte bancari (targetes)
CashDeskBankCheque= Compte bancari (xecs)
CashDeskWarehouse= Magatzem
CashDeskThirdParty= Tercer
ShoppingCart= Cistella
NewSell= Nova venda
BackOffice= Sortir
AddThisArticle= Afegeix aquest article
RestartSelling= Reprendre la venda
SellFinished= Venda acabada
PrintTicket= Imprimir tiquet
NoResults= Cap resultat
NoProductFound= Cap article trobat
ProductFound= Producte trobat
ProductsFound= Productes trobats
NoArticle= Cap article
CHARSET=UTF-8
CashDeskMenu=TPV
CashDesk=Terminal Punt de Venda
CashDesks=Terminals Punt de Venda
CashDeskBank=Compte bancari
CashDeskBankCash=Compte bancari (efectiu)
CashDeskBankCB=Compte bancari (targetes)
CashDeskBankCheque=Compte bancari (xecs)
CashDeskWarehouse=Magatzem
CashDeskProducts=Productes
CashDeskOn=de
CashDeskThirdParty=Tercer
ShoppingCart=Cistella
NewSell=Nova venda
BackOffice=Sortir
AddThisArticle=Afegeix aquest article
RestartSelling=Reprendre la venda
SellFinished=Venda acabada
PrintTicket=Imprimir tiquet
NoResults=Cap resultat
NoProductFound=Cap article trobat
ProductFound=Producte trobat
ProductsFound=Productes trobats
NoArticle=Cap article
Identification=Identificació
Article=Article
Difference=Diferència
TotalTicket=Total ticket
Change=Canvi
CalTip=Feu clic per veure el calendari

View File

@ -170,7 +170,7 @@ RefOrLabel=Ref. o etiqueta
Info=Log
Family=Familia
Description=Descripció
Designation=Designació
Designation=Descripción
Action=Esdeveniment
Model=Model
DefaultModel=Model per defecte

View File

@ -8,6 +8,8 @@ CashDeskBankCash=Bank account (cash)
CashDeskBankCB=Bank account (card)
CashDeskBankCheque=Bank account (cheque)
CashDeskWarehouse=Warehouse
CashDeskProducts=Products
CashDeskOn=on
CashDeskThirdParty=Third party
ShoppingCart=Shopping cart
NewSell=New sell
@ -20,4 +22,10 @@ NoResults=No results
NoProductFound=No article found
ProductFound=product found
ProductsFound=products found
NoArticle=No article
NoArticle=No article
Identification=Identification
Article=Article
Difference=Difference
TotalTicket=Total ticket
Change=Excess received
CalTip=Click to view the calendar

View File

@ -417,8 +417,8 @@ Module13452Name=SpeedFinder
Module13452Desc=Motor de búsqueda en AJAX para buscar en 2 segundos un nombre basándose en parte de un número de teléfono
Module50000Name=PayBox
Module50000Desc=Módulo para proporcionar un pago en línea con tarjeta de crédito mediante Paybox
Module50100Name=Punto de venta
Module50100Desc=Caja registradora de punto de venta
Module50100Name=TPV
Module50100Desc=Terminal Punto de Venta para la venta en mostrador
Module50200Name=Paypal
Module50200Desc=Módulo para proporcionar un pago en línea con tarjeta de crédito mediante Paypal
Permission11=Consultar facturas
@ -1234,13 +1234,13 @@ PastDelayVCalExport=No exportar los eventos de más de
##### ClickToDial #####
ClickToDialDesc=Este módulo permite agregar un icono después del número de teléfono de contactos Dolibarr. Un clic en este icono, Llama a un servidor con una URL que se indica a continuación. Esto puede ser usado para llamar al sistema call center de Dolibarr que puede llamar al número de teléfono en un sistema SIP, por ejemplo.
##### Point Of Sales (CashDesk) #####
CashDesk=Caja registradora
CashDeskSetup=Configuración del módulo TPV/Caja registradora
CashDesk=TPV
CashDeskSetup=Configuración del módulo Terminal Punto de Venta
CashDeskThirdPartyForSell=Tercero genérico a usar para la venta
CashDeskBankAccountForSell=Cuenta a utilizar para los cobros en efectivo (caja)
CashDeskBankAccountForCheque=Cuenta a utilizar para los cobros con cheques
CashDeskBankAccountForCB=Cuenta a utilizar para los cobros con tarjeta de crédito
CashDeskIdWareHouse=Almacén que se utiliza para las ventas
CashDeskIdWareHouse=Almacén a utilizar para las ventas
##### Bookmark #####
BookmarkSetup=Configuración del módulo Marcadores
BookmarkDesc=Este módulo le permite gestionar los enlaces y accesos directos. También permite añadir cualquier página de Dolibarr o enlace web en el menú de acceso rápido de la izquierda.

View File

@ -1,23 +1,31 @@
# Language file - es_ES - cashdesk
CHARSET= UTF-8
CashDeskMenu= Caja
CashDesk= Caja registradora
CashDesks= Cajas registradoras
CashDeskBank= Cuenta bancaria
CashDeskBankCash= Cuenta bancaria (efectivo)
CashDeskBankCB= Cuenta bancaria (tarjetas)
CashDeskBankCheque= Cuenta bancaria (cheques)
CashDeskWarehouse= Almacén
CashDeskThirdParty= Tercero
ShoppingCart= Cesta
NewSell= Nueva venta
BackOffice= Salir
AddThisArticle= Añadir este artículo
RestartSelling= Retomar la venta
SellFinished= Venta terminada
PrintTicket= Imprimir ticket
NoResults= Ningún resultado
NoProductFound= Ningún artículo encontrado
ProductFound= Producto encontrado
ProductsFound= Productos encontrados
NoArticle= Ningún artículo
CHARSET=UTF-8
CashDeskMenu=TPV
CashDesk=Terminal Punto de Venta
CashDesks=Terminales Punto de Venta
CashDeskBank=Cuenta bancaria
CashDeskBankCash=Cuenta bancaria (efectivo)
CashDeskBankCB=Cuenta bancaria (tarjetas)
CashDeskBankCheque=Cuenta bancaria (cheques)
CashDeskWarehouse=Almacén
CashDeskProducts=Productos
CashDeskOn=de
CashDeskThirdParty=Tercero
ShoppingCart=Cesta
NewSell=Nueva venta
BackOffice=Salir
AddThisArticle=Añadir este artículo
RestartSelling=Retomar la venta
SellFinished=Venta terminada
PrintTicket=Imprimir ticket
NoResults=Ningún resultado
NoProductFound=Ningún artículo encontrado
ProductFound=Producto encontrado
ProductsFound=Productos encontrados
NoArticle=Ningún artículo
Identification=Identificación
Article=Artículo
Difference=Diferencia
TotalTicket=Total ticket
Change=Cambio
CalTip=Haga clic para ver el calendario

View File

@ -170,7 +170,7 @@ RefOrLabel=Ref. o etiqueta
Info=Log
Family=Familia
Description=Descripción
Designation=Designación
Designation=Descripción
Action=Evento
Model=Modelo
DefaultModel=Modelo por defecto

View File

@ -8,6 +8,8 @@ CashDeskBankCash=Compte bancaire (liquide)
CashDeskBankCB=Compte bancaire (cartes)
CashDeskBankCheque=Compte bancaire (chèques)
CashDeskWarehouse=Entrepôt
CashDeskProducts=Produits
CashDeskOn=de
CashDeskThirdParty=Tiers
ShoppingCart=Panier
NewSell=Nouvelle vente
@ -20,4 +22,10 @@ NoResults=Aucun résultat
NoProductFound=Aucun article trouvé
ProductFound=produit trouvé
ProductsFound=produits trouvés
NoArticle=Aucun article
NoArticle=Aucun article
Identification=Identification
Article=Article
Difference=Difference
TotalTicket=Total ticket
Change=Trop perçu
CalTip=Cliquez pour afficher le calendrier