2
0
forked from Wavyzz/dolibarr

Merge branch 'develop' of git+ssh://git@github.com/Dolibarr/dolibarr.git into develop

This commit is contained in:
Regis Houssin
2011-12-16 18:32:12 +01:00
23 changed files with 806 additions and 821 deletions

View File

@@ -5,6 +5,7 @@ English Dolibarr ChangeLog
***** ChangeLog for 3.2 compared to 3.1 *****
For users:
- New: Can open back a closed commercial proposal.
- New: show thirdparty barcode on main tab.
- New: Can input note (private and public) during note and expenses creation.
- New: Print ticket show invoice ref into POS module.

View File

@@ -319,8 +319,7 @@ if ($nboftargetok) {
$ret=`rm -fr $BUILDROOT/$PROJECT/doc/tshirt`;
$ret=`rm -fr $BUILDROOT/$PROJECT/documents`;
$ret=`rm -fr $BUILDROOT/$PROJECT/document`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/custom`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/custom2`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/custom*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/test`;
#$ret=`rm -fr $BUILDROOT/$PROJECT/build/deb/po/CVS*`;
$ret=`rm -fr $BUILDROOT/$PROJECT/Thumbs.db $BUILDROOT/$PROJECT/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/*/Thumbs.db $BUILDROOT/$PROJECT/*/*/*/*/Thumbs.db`;
@@ -338,8 +337,8 @@ if ($nboftargetok) {
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/license.txt`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PDF`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/phpexcel/PHPExcel/Shared/PCLZip`;
#$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/dejavu-fonts-ttf-2.33`;
#$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/freefont-20100919`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/dejavu-fonts-ttf-2.33`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/freefont-20100919`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/fonts/utils`;
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/tcpdf/LICENSE.TXT`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/langs/*/html`;

View File

@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@@ -42,6 +42,7 @@ $mode=GETPOST('mode');
$mesg='';
/*
* View
*/
@@ -51,46 +52,8 @@ if ($mode == 'cardlogin' && empty($foruserlogin))
$mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Login"));
}
if ((empty($foruserid) && empty($foruserlogin) && empty($mode)) || $mesg)
if ((! empty($foruserid) || ! empty($foruserlogin) || ! empty($mode)) && ! $mesg)
{
llxHeader('',$langs->trans("MembersCards"));
print_fiche_titre($langs->trans("LinkToGeneratedPages"));
print '<br>';
print $langs->trans("LinkToGeneratedPagesDesc").'<br>';
print '<br>';
if ($mesg) print '<div class="error">'.$mesg.'</div><br>';
print $langs->trans("DocForAllMembersCards",($conf->global->ADHERENT_CARD_TYPE?$conf->global->ADHERENT_CARD_TYPE:$langs->transnoentitiesnoconv("None"))).' ';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="foruserid" value="all">';
print '<input type="hidden" name="mode" value="card">';
print ' <input class="button" type="submit" value="'.$langs->trans("BuildDoc").'">';
print '</form>';
print '<br>';
print $langs->trans("DocForOneMemberCards",($conf->global->ADHERENT_CARD_TYPE?$conf->global->ADHERENT_CARD_TYPE:$langs->transnoentitiesnoconv("None"))).' ';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="mode" value="cardlogin">';
print $langs->trans("Login").': <input size="10" type="text" name="foruserlogin" value="">';
print ' <input class="button" type="submit" value="'.$langs->trans("BuildDoc").'">';
print '</form>';
print '<br>';
print $langs->trans("DocForLabels",$conf->global->ADHERENT_ETIQUETTE_TYPE).' ';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="mode" value="label">';
print ' <input class="button" type="submit" value="'.$langs->trans("BuildDoc").'">';
print '</form>';
print '<br>';
llxFooter();
}
else
{
$arrayofmembers=array();
// requete en prenant que les adherents a jour de cotisation
@@ -192,25 +155,70 @@ else
// Build and output PDF
if (empty($mode) || $mode=='card' || $mode='cardlogin')
{
$result=members_card_pdf_create($db, $arrayofmembers, '', $outputlangs);
if (! count($arrayofmembers))
{
$mesg=$langs->trans("ErrorRecordNotFound");
}
if (! $mesg) $result=members_card_pdf_create($db, $arrayofmembers, '', $outputlangs);
}
if ($mode == 'label')
elseif ($mode == 'label')
{
$result=members_label_pdf_create($db, $arrayofmembers, '', $outputlangs);
}
if ($result <= 0)
{
dol_print_error($db,$result);
exit;
dol_print_error('',$result);
}
}
else
{
dol_print_error($db);
llxFooter();
}
if (! $mesg) exit;
}
llxHeader('',$langs->trans("MembersCards"));
print_fiche_titre($langs->trans("LinkToGeneratedPages"));
print '<br>';
print $langs->trans("LinkToGeneratedPagesDesc").'<br>';
print '<br>';
dol_htmloutput_errors($mesg);
print $langs->trans("DocForAllMembersCards",($conf->global->ADHERENT_CARD_TYPE?$conf->global->ADHERENT_CARD_TYPE:$langs->transnoentitiesnoconv("None"))).' ';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="foruserid" value="all">';
print '<input type="hidden" name="mode" value="card">';
print ' <input class="button" type="submit" value="'.$langs->trans("BuildDoc").'">';
print '</form>';
print '<br>';
print $langs->trans("DocForOneMemberCards",($conf->global->ADHERENT_CARD_TYPE?$conf->global->ADHERENT_CARD_TYPE:$langs->transnoentitiesnoconv("None"))).' ';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="mode" value="cardlogin">';
print $langs->trans("Login").': <input size="10" type="text" name="foruserlogin" value="'.GETPOST('foruserlogin').'">';
print ' <input class="button" type="submit" value="'.$langs->trans("BuildDoc").'">';
print '</form>';
print '<br>';
print $langs->trans("DocForLabels",$conf->global->ADHERENT_ETIQUETTE_TYPE).' ';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="mode" value="label">';
print ' <input class="button" type="submit" value="'.$langs->trans("BuildDoc").'">';
print '</form>';
print '<br>';
llxFooter();
$db->close();
?>

View File

@@ -89,6 +89,7 @@ $hookmanager=new HookManager($db);
$hookmanager->callHooks(array('propalcard'));
/******************************************************************************/
/* Actions */
/******************************************************************************/
@@ -246,9 +247,7 @@ if ($_POST['action'] == 'set_ref_client' && $user->rights->propale->creer)
$object->set_ref_client($user, $_POST['ref_client']);
}
/*
* Creation propale
*/
// Create proposal
if ($_POST['action'] == 'add' && $user->rights->propale->creer)
{
$object->socid=$_POST['socid'];
@@ -382,31 +381,42 @@ if ($action == 'classifybilled')
$object->cloture($user, 4, '');
}
/*
* Cloture de la propale
*/
if (GETPOST('action') == 'setstatut' && $user->rights->propale->cloturer)
// Reopen proposal
if ($action == 'confirm_reopen' && $user->rights->propale->cloturer)
{
if (! $_POST['cancel'])
{
if (! GETPOST('statut'))
$object->fetch($id);
// prevent browser refresh from reopening proposal several times
if ($object->statut==2 || $object->statut==3)
{
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentities("CloseAs")).'</div>';
$action='statut';
$action='statut';
}
else
{
$object->fetch($id);
// prevent browser refresh from closing proposal several times
if ($object->statut==1)
{
$object->cloture($user, $_REQUEST['statut'], $_REQUEST['note']);
}
$object->setStatut(1);
}
}
}
// Close proposal
if ($action == 'setstatut' && $user->rights->propale->cloturer)
{
if (! $_POST['cancel'])
{
if (! GETPOST('statut'))
{
$mesg='<div class="error">'.$langs->trans("ErrorFieldRequired",$langs->transnoentities("CloseAs")).'</div>';
$action='statut';
$action='statut';
}
else
{
$object->fetch($id);
// prevent browser refresh from closing proposal several times
if ($object->statut==1)
{
$object->cloture($user, $_REQUEST['statut'], $_REQUEST['note']);
}
}
}
}
/*
* Add file in email form
@@ -1051,17 +1061,19 @@ if ($id > 0 || ! empty($ref))
$formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id,$langs->trans('ClonePropal'),$langs->trans('ConfirmClonePropal',$object->ref),'confirm_clone',$formquestion,'yes',1);
}
/*
* Confirmation de la suppression de la propale
*/
// Confirm delete
if ($action == 'delete')
{
$formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteProp'), $langs->trans('ConfirmDeleteProp'), 'confirm_delete','',0,1);
$formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('DeleteProp'), $langs->trans('ConfirmDeleteProp',$object->ref), 'confirm_delete','',0,1);
}
/*
* Confirmation de la suppression d'une ligne produit/service
*/
// Confirm reopen
if ($action == 'reopen')
{
$formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ReOpen'), $langs->trans('ConfirmReOpenProp',$object->ref), 'confirm_reopen','',0,1);
}
// Confirmation delete product/service line
if ($action == 'ask_deleteline')
{
$formconfirm=$form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline','',0,1);
@@ -1569,6 +1581,13 @@ if ($id > 0 || ! empty($ref))
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=modif">'.$langs->trans('Modify').'</a>';
}
// ReOpen
if (($object->statut == 2 || $object->statut == 3) && $user->rights->propale->cloturer)
{
print '<a class="butAction" href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&amp;action=reopen'.(empty($conf->global->MAIN_JUMP_TAG)?'':'#reopen').'"';
print '>'.$langs->trans('ReOpen').'</a>';
}
// Send
if ($object->statut == 1 || $object->statut == 2)
{
@@ -1594,9 +1613,9 @@ if ($id > 0 || ! empty($ref))
}
// Create an invoice and classify billed
if ($conf->facture->enabled && $object->statut == 2 && $user->societe_id == 0)
if ($object->statut == 2 && $user->societe_id == 0)
{
if ($user->rights->facture->creer)
if ($conf->facture->enabled && $user->rights->facture->creer)
{
print '<a class="butAction" href="'.DOL_URL_ROOT.'/compta/facture.php?action=create&amp;origin='.$object->element.'&amp;originid='.$object->id.'&amp;socid='.$object->socid.'">'.$langs->trans("AddBill").'</a>';
}

View File

@@ -116,17 +116,17 @@ class Propal extends CommonObject
/**
* Class Constructor
* Constructor
*
* @param DoliDB $DB Database handler
* @param DoliDB $db Database handler
* @param int $socid Id third party
* @param int $propalid Id proposal
*/
function Propal($DB, $socid="", $propalid=0)
function Propal($db, $socid="", $propalid=0)
{
global $conf,$langs;
$this->db = $DB ;
$this->db = $db;
$this->socid = $socid;
$this->id = $propalid;
$this->products = array();
@@ -157,7 +157,7 @@ class Propal extends CommonObject
* @param int $idproduct Product Id to add
* @param int $qty Quantity
* @param int $remise_percent Discount effected on Product
*
*
* TODO Remplacer les appels a cette fonction par generation objet Ligne
* insere dans tableau $this->products
*/
@@ -295,7 +295,7 @@ class Propal extends CommonObject
* @param double $txlocaltax2 Local tax 2 rate
* @param int $fk_product Id du produit/service predefini
* @param double $remise_percent Pourcentage de remise de la ligne
* @param double $price_base_type HT or TTC
* @param string $price_base_type HT or TTC
* @param dobule $pu_ttc Prix unitaire TTC
* @param int $info_bits Bits de type de lignes
* @param int $type Type of line (product, service)
@@ -303,7 +303,7 @@ class Propal extends CommonObject
* @param int $special_code Special code
* @param int $fk_parent_line Id of parent line
* @return int >0 if OK, <0 if KO
*
*
* @see add_product
*/
function addline($propalid, $desc, $pu_ht, $qty, $txtva, $txlocaltax1=0, $txlocaltax2=0, $fk_product=0, $remise_percent=0, $price_base_type='HT', $pu_ttc=0, $info_bits=0, $type=0, $rang=-1, $special_code=0, $fk_parent_line=0)
@@ -828,7 +828,7 @@ class Propal extends CommonObject
/**
* Insert into DB a proposal object completely defined by its data members (ex, results from copy).
* @param User $user User that create
* @param User $user User that create
* @return int Id of the new object if ok, <0 if ko
* @see create
*/
@@ -1249,7 +1249,7 @@ class Propal extends CommonObject
/**
* Set delivery date
*
*
* @param User $user Object user that modify
* @param timestamp $date_livraison Delivery date
* @return int <0 if ko, >0 if ok
@@ -1463,13 +1463,44 @@ class Propal extends CommonObject
}
}
/**
* Close the commercial proposal
*
* @param User $user Object user that close
* @param int $statut Statut
* @param text $note Comment
* @return int <0 if KO, >0 if OK
*/
function reopen($user, $statut, $note)
{
global $langs,$conf;
$this->statut = $statut;
$error=0;
$this->db->begin();
$sql = "UPDATE ".MAIN_DB_PREFIX."propal";
$sql.= " SET fk_statut = ".$statut.", note = '".$this->db->escape($note)."', date_cloture=".$this->db->idate(mktime()).", fk_user_cloture=".$user->id;
$sql.= " WHERE rowid = ".$this->id;
$resql=$this->db->query($sql);
if ($resql)
{
}
}
/**
* Closure of the commercial proposal
* @param User $user Object user that closure
* Close the commercial proposal
*
* @param User $user Object user that close
* @param int $statut Statut
* @param text $note Commentaire
* @return int <0 si ko, >0 si ok
* @param text $note Comment
* @return int <0 if KO, >0 if OK
*/
function cloture($user, $statut, $note)
{
@@ -1477,7 +1508,7 @@ class Propal extends CommonObject
$this->statut = $statut;
$error=0;
$this->db->begin();
$sql = "UPDATE ".MAIN_DB_PREFIX."propal";
@@ -1929,7 +1960,7 @@ class Propal extends CommonObject
/**
* Change source demand
*
*
* @param int $demand_reason_id Id of new source demand
* @return int >0 si ok, <0 si ko
*/
@@ -2021,7 +2052,7 @@ class Propal extends CommonObject
/**
* Return label of status of proposal (draft, validated, ...)
*
*
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label
*/
@@ -2032,7 +2063,7 @@ class Propal extends CommonObject
/**
* Return label of a status (draft, validated, ...)
*
*
* @param int $statut id statut
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label
@@ -2087,7 +2118,7 @@ class Propal extends CommonObject
/**
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
*
*
* @param User $user Object user
* @param int $mode "opened" for proposal to close, "signed" for proposal to invoice
* @return int <0 if KO, >0 if OK
@@ -2273,7 +2304,7 @@ class Propal extends CommonObject
}
/**
/**
* Returns the reference to the following non used Proposal used depending on the active numbering module
* defined into PROPALE_ADDON
*
@@ -2321,7 +2352,7 @@ class Propal extends CommonObject
/**
* Return clicable link of object (with eventually picto)
*
*
* @param int $withpicto Add picto into link
* @param string $option Where point the link
* @param string $get_params Parametres added to url
@@ -2357,7 +2388,7 @@ class Propal extends CommonObject
/**
* Retrieve an array of propal lines
*
*
* @return int <0 if ko, >0 if ok
*/
function getLinesArray()
@@ -2485,7 +2516,7 @@ class PropaleLigne
/**
* Class line Contructor
*
*
* @param DoliDB $DB Database handler
*/
function PropaleLigne($DB)
@@ -2495,7 +2526,7 @@ class PropaleLigne
/**
* Retrieve the propal line object
*
*
* @param int $rowid propal line id
*/
function fetch($rowid)
@@ -2551,7 +2582,7 @@ class PropaleLigne
/**
* Insert object line propal in database
*
*
* @param int $notrigger 1=Does not execute triggers, 0= execuete triggers
* @return int <0 if KO, >0 if OK
*/
@@ -2560,7 +2591,7 @@ class PropaleLigne
global $conf,$langs,$user;
$error=0;
dol_syslog("PropaleLigne::insert rang=".$this->rang);
// Clean parameters
@@ -2686,7 +2717,7 @@ class PropaleLigne
global $conf,$langs,$user;
$error=0;
// Clean parameters
if (empty($this->tva_tx)) $this->tva_tx=0;
if (empty($this->localtax1_tx)) $this->localtax1_tx=0;

View File

@@ -112,13 +112,14 @@ class Commande extends CommonObject
$this->products = array();
}
/**
* \brief Renvoie la reference de commande suivante non utilisee en fonction du module
* de numerotation actif defini dans COMMANDE_ADDON
* \param soc objet societe
* \return string reference libre pour la commande
*/
/**
* Returns the reference to the following non used Order depending on the active numbering module
* defined into COMMANDE_ADDON
*
* @param Societe $soc Object thirdparty
* @return string Order free reference
*/
function getNextNumRef($soc)
{
global $db, $langs, $conf;
@@ -165,11 +166,11 @@ class Commande extends CommonObject
/**
* Validate order
* Validate order
*
* @param User $user User making status change
* @param int $idwarehouse Id of warehouse to use for stock decrease
* @return int <=0 if OK, >0 if KO
* @param User $user User making status change
* @param int $idwarehouse Id of warehouse to use for stock decrease
* @return int <=0 if OK, >0 if KO
*/
function valid($user, $idwarehouse=0)
{
@@ -393,10 +394,11 @@ class Commande extends CommonObject
/**
* Tag the order as validated (opened)
* Function used when order is reopend after being closed.
* @param user Object user that change status
* @return int <0 if KO, 0 if nothing is done, >0 if OK
* Tag the order as validated (opened)
* Function used when order is reopend after being closed.
*
* @param User $user Object user that change status
* @return int <0 if KO, 0 if nothing is done, >0 if OK
*/
function set_reopen($user)
{
@@ -447,8 +449,8 @@ class Commande extends CommonObject
/**
* Close order
*
* @param user Objet user that close
* @return int <0 if KO, >0 if OK
* @param User $user Objet user that close
* @return int <0 if KO, >0 if OK
*/
function cloture($user)
{
@@ -577,11 +579,12 @@ class Commande extends CommonObject
}
/**
* Create order
* Note that this->ref can be set or empty. If empty, we will use "(PROV)"
* @param user Objet user that make creation
* @param notrigger Disable all triggers
* @return int <0 if KO, >0 if OK
* Create order
* Note that this->ref can be set or empty. If empty, we will use "(PROV)"
*
* @param User $user Objet user that make creation
* @param int notrigger Disable all triggers
* @return int <0 if KO, >0 if OK
*/
function create($user, $notrigger=0)
{
@@ -767,11 +770,11 @@ class Commande extends CommonObject
/**
* Load an object from its id and create a new one in database
* Load an object from its id and create a new one in database
*
* @param int $socid Id of thirdparty
* @param HookManager $hookmanager Hook manager instance
* @return int New id of clone
* @param int $socid Id of thirdparty
* @param HookManager $hookmanager Hook manager instance
* @return int New id of clone
*/
function createFromClone($socid=0,$hookmanager=false)
{
@@ -940,30 +943,33 @@ class Commande extends CommonObject
/**
* Add an order line into database (linked to product/service or not)
* @param commandeid Id of line
* @param desc Description of line
* @param pu_ht Unit price (without tax)
* @param qty Quantite
* @param txtva Taux de tva force, sinon -1
* @param txlocaltax1 Local tax 1 rate
* @param txlocaltax2 Local tax 2 rate
* @param fk_product Id du produit/service predefini
* @param remise_percent Pourcentage de remise de la ligne
* @param info_bits Bits de type de lignes
* @param fk_remise_except Id remise
* @param price_base_type HT or TTC
* @param pu_ttc Prix unitaire TTC
* @param date_start Start date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @param date_end End date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @param type Type of line (0=product, 1=service)
* @param rang Position of line
* @return int >0 if OK, <0 if KO
* @see add_product
* Les parametres sont deja cense etre juste et avec valeurs finales a l'appel
* de cette methode. Aussi, pour le taux tva, il doit deja avoir ete defini
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,produit)
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
* Add an order line into database (linked to product/service or not)
*
* @param int $commandeid Id of line
* @param string $desc Description of line
* @param double $pu_ht Unit price (without tax)
* @param double $qty Quantite
* @param double $txtva Taux de tva force, sinon -1
* @param double $txlocaltax1 Local tax 1 rate
* @param double $txlocaltax2 Local tax 2 rate
* @param int $fk_product Id du produit/service predefini
* @param double $remise_percent Pourcentage de remise de la ligne
* @param int $info_bits Bits de type de lignes
* @param int $fk_remise_except Id remise
* @param string $price_base_type HT or TTC
* @param double $pu_ttc Prix unitaire TTC
* @param timestamp $date_start Start date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @param timestamp $date_end End date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @param int $type Type of line (0=product, 1=service)
* @param int $rang Position of line
* @return int >0 if OK, <0 if KO
*
* @see add_product
*
* Les parametres sont deja cense etre juste et avec valeurs finales a l'appel
* de cette methode. Aussi, pour le taux tva, il doit deja avoir ete defini
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,produit)
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
*/
function addline($commandeid, $desc, $pu_ht, $qty, $txtva, $txlocaltax1=0, $txlocaltax2=0, $fk_product=0, $remise_percent=0, $info_bits=0, $fk_remise_except=0, $price_base_type='HT', $pu_ttc=0, $date_start='', $date_end='', $type=0, $rang=-1, $special_code=0, $fk_parent_line=0)
{
@@ -1097,16 +1103,18 @@ class Commande extends CommonObject
/**
* Add line into array
* $this->client doit etre charge
* @param idproduct Id du produit a ajouter
* @param qty Quantite
* @param remise_percent Remise relative effectuee sur le produit
* @param date_start Start date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @param date_end End date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @return void
* TODO Remplacer les appels a cette fonction par generation objet Ligne
* insere dans tableau $this->products
* Add line into array
* $this->client must be loaded
*
* @param int $idproduct Product Id
* @param double $qty Quantity
* @param double $remise_percent Product discount relative
* @param timestamp $date_start Start date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @param timestamp $date_end End date of the line - Added by Matelli (See http://matelli.fr/showcases/patchs-dolibarr/add-dates-in-order-lines.html)
* @return void
*
* TODO Remplacer les appels a cette fonction par generation objet Ligne
* insere dans tableau $this->products
*/
function add_product($idproduct, $qty, $remise_percent=0, $date_start='', $date_end='')
{
@@ -1175,11 +1183,12 @@ class Commande extends CommonObject
/**
* Get object and lines from database
* @param id Id of object to load
* @param ref Ref of object
* @param ref_ext External reference of object
* @param ref_int Internal reference of other object
* @return int >0 if OK, <0 if KO
*
* @param int $id Id of object to load
* @param string $ref Ref of object
* @param string $ref_ext External reference of object
* @param string $ref_int Internal reference of other object
* @return int >0 if OK, <0 if KO
*/
function fetch($id, $ref='', $ref_ext='', $ref_int='')
{
@@ -1306,9 +1315,10 @@ class Commande extends CommonObject
/**
* Ajout d'une ligne remise fixe dans la commande, en base
* @param idremise Id de la remise fixe
* @return int >0 si ok, <0 si ko
* Adding line of fixed discount in the order in DB
*
* @param int $idremise Id de la remise fixe
* @return int >0 si ok, <0 si ko
*/
function insert_discount($idremise)
{
@@ -1381,9 +1391,10 @@ class Commande extends CommonObject
/**
* Load array lines
* @param only_product Return only physical products
* @return int <0 if KO, >0 if OK
* Load array lines
*
* @param int $only_product Return only physical products
* @return int <0 if KO, >0 if OK
*/
function fetch_lines($only_product=0)
{
@@ -1467,8 +1478,9 @@ class Commande extends CommonObject
/**
* Return number of line with type product.
* @return int <0 if KO, Nbr of product lines if OK
* Return number of line with type product.
*
* @return int <0 if KO, Nbr of product lines if OK
*/
function getNbOfProductsLines()
{
@@ -1481,10 +1493,12 @@ class Commande extends CommonObject
}
/**
* Load array this->expeditions of nb of products sent by line in order
* @param filtre_statut Filter on status
* @return int <0 if KO, Nb of lines found if OK
* TODO deprecated, move to Shipping class
* Load array this->expeditions of nb of products sent by line in order
*
* @param int $filtre_statut Filter on status
* @return int <0 if KO, Nb of lines found if OK
*
* TODO deprecated, move to Shipping class
*/
function loadExpeditions($filtre_statut=-1)
{
@@ -1529,7 +1543,8 @@ class Commande extends CommonObject
}
/**
* Renvoie un tableau avec nombre de lignes d'expeditions
* Returns a array with expeditions lines number
*
* TODO deprecated, move to Shipping class
*/
function nb_expedition()
@@ -1551,10 +1566,12 @@ class Commande extends CommonObject
}
/**
* Renvoie un tableau avec les livraisons par ligne
* @param filtre_statut Filtre sur statut
* @return int 0 si OK, <0 si KO
* TODO deprecated, move to Shipping class
* Return a array with sendings by line
*
* @param int $filtre_statut Filtre sur statut
* @return int 0 si OK, <0 si KO
*
* TODO deprecated, move to Shipping class
*/
function livraison_array($filtre_statut=-1)
{
@@ -1564,10 +1581,12 @@ class Commande extends CommonObject
}
/**
* Renvoie un tableau avec les stocks restant par produit
* @param filtre_statut Filtre sur statut
* @return int 0 si OK, <0 si KO
* TODO FONCTION NON FINIE A FINIR
* Return a array with the pending stock by product
*
* @param int $filtre_statut Filtre sur statut
* @return int 0 si OK, <0 si KO
*
* TODO FONCTION NON FINIE A FINIR
*/
function stock_array($filtre_statut=-1)
{
@@ -1603,8 +1622,9 @@ class Commande extends CommonObject
/**
* Delete an order line
* @param lineid Id of line to delete
* @return int >0 if OK, 0 if nothing to do, <0 if KO
*
* @param int $lineid Id of line to delete
* @return int >0 if OK, 0 if nothing to do, <0 if KO
*/
function deleteline($lineid)
{
@@ -1747,11 +1767,11 @@ class Commande extends CommonObject
/**
* Set the order date
* Set the order date
*
* @param user Object user making change
* @param date Date
* @return int <0 if KO, >0 if OK
* @param User $user Object user making change
* @param timestamp $date Date
* @return int <0 if KO, >0 if OK
*/
function set_date($user, $date)
{
@@ -1782,11 +1802,11 @@ class Commande extends CommonObject
}
/**
* Set the planned delivery date
* Set the planned delivery date
*
* @param user Objet utilisateur qui modifie
* @param date_livraison Date de livraison
* @return int <0 si ko, >0 si ok
* @param User $user Objet utilisateur qui modifie
* @param timestamp $date_livraison Date de livraison
* @return int <0 si ko, >0 si ok
*/
function set_date_livraison($user, $date_livraison)
{
@@ -1817,11 +1837,11 @@ class Commande extends CommonObject
}
/**
* Set address
* Set address
*
* @param user Object user making change
* @param fk_address Adress of delivery
* @return int <0 ig KO, >0 if Ok
* @param User $user Object user making change
* @param int $fk_address Adress of delivery
* @return int <0 ig KO, >0 if Ok
*/
function set_adresse_livraison($user, $fk_address)
{
@@ -1845,11 +1865,11 @@ class Commande extends CommonObject
}
/**
* Set availability
* Set availability
*
* @param user Object user making change
* @param id If of availability delay
* @return int <0 if KO, >0 if OK
* @param User $user Object user making change
* @param int $id If of availability delay
* @return int <0 if KO, >0 if OK
*/
function set_availability($user, $id)
{
@@ -1874,11 +1894,11 @@ class Commande extends CommonObject
}
/**
* Set source of demand
* Set source of demand
*
* @param user Object user making change
* @param id Id of source
* @return int <0 if KO, >0 if OK
* @param User $user Object user making change
* @param int $id Id of source
* @return int <0 if KO, >0 if OK
*/
function set_demand_reason($user, $id)
{
@@ -1905,9 +1925,9 @@ class Commande extends CommonObject
/**
* Return list of orders (eventuelly filtered on a user) into an array
*
* @param brouillon 0=non brouillon, 1=brouillon
* @param user Objet user de filtre
* @return int -1 if KO, array with result if OK
* @param int $brouillon 0=non brouillon, 1=brouillon
* @param User $user Objet user de filtre
* @return int -1 if KO, array with result if OK
*/
function liste_array($brouillon=0, $user='')
{
@@ -1948,10 +1968,10 @@ class Commande extends CommonObject
}
/**
* Change les conditions de reglement de la commande
* Change les conditions de reglement de la commande
*
* @param cond_reglement_id Id de la nouvelle condition de reglement
* @return int >0 if OK, <0 if KO
* @param int $cond_reglement_id Id de la nouvelle condition de reglement
* @return int >0 if OK, <0 if KO
*/
function cond_reglement($cond_reglement_id)
{
@@ -1985,8 +2005,8 @@ class Commande extends CommonObject
/**
* Change le mode de reglement
*
* @param mode Id du nouveau mode
* @return int >0 si ok, <0 si ko
* @param int $mode Id du nouveau mode
* @return int >0 si ok, <0 si ko
*/
function mode_reglement($mode_reglement_id)
{
@@ -2017,9 +2037,10 @@ class Commande extends CommonObject
}
/**
* Change le delai de livraison
* @param availability_id Id du nouveau mode
* @return int >0 if OK, <0 if KO
* Change le delai de livraison
*
* @param int $availability_id Id du nouveau mode
* @return int >0 if OK, <0 if KO
*/
function availability($availability_id)
{
@@ -2050,9 +2071,10 @@ class Commande extends CommonObject
}
/**
* \brief Change la source de la demande
* \param mode Id du nouveau mode
* \return int >0 si ok, <0 si ko
* Change la source de la demande
*
* @param int $demand_reason_id Id of new demand
* @return int >0 if ok, <0 if ko
*/
function demand_reason($demand_reason_id)
{
@@ -2083,10 +2105,10 @@ class Commande extends CommonObject
}
/**
* \brief Set customer ref
* \param user User that make change
* \param ref_client Customer ref
* \return int <0 if KO, >0 if OK
* Set customer ref
* @param User $user User that make change
* @param string $ref_client Customer ref
* @return int <0 if KO, >0 if OK
*/
function set_ref_client($user, $ref_client)
{
@@ -2118,8 +2140,9 @@ class Commande extends CommonObject
/**
* \brief Classe la commande comme facturee
* \return int <0 si ko, >0 si ok
* Classify the order as invoiced
*
* @return int <0 if ko, >0 if ok
*/
function classer_facturee()
{
@@ -2148,20 +2171,20 @@ class Commande extends CommonObject
/**
* Update a line in database
*
* @param rowid Id of line to update
* @param desc Description de la ligne
* @param pu Prix unitaire
* @param qty Quantity
* @param remise_percent Pourcentage de remise de la ligne
* @param tva_tx Taux TVA
* @param txlocaltax1 Local tax 1 rate
* @param txlocaltax2 Local tax 2 rate
* @param price_base_type HT or TTC
* @param info_bits Miscellaneous informations on line
* @param date_start Start date of the line
* @param date_end End date of the line
* @param type Type of line (0=product, 1=service)
* @return int < 0 if KO, > 0 if OK
* @param int $rowid Id of line to update
* @param string $desc Description de la ligne
* @param double $pu Prix unitaire
* @param double $qty Quantity
* @param double $remise_percent Pourcentage de remise de la ligne
* @param double $tva_tx Taux TVA
* @param double $txlocaltax1 Local tax 1 rate
* @param double $txlocaltax2 Local tax 2 rate
* @param string $price_base_type HT or TTC
* @param int $info_bits Miscellaneous informations on line
* @param timestamp $date_start Start date of the line
* @param timestamp $date_end End date of the line
* @param int $type Type of line (0=product, 1=service)
* @return int < 0 if KO, > 0 if OK
*/
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $txtva, $txlocaltax1=0,$txlocaltax2=0, $price_base_type='HT', $info_bits=0, $date_start='', $date_end='', $type=0, $fk_parent_line=0, $skip_update_total=0)
{
@@ -2379,10 +2402,10 @@ class Commande extends CommonObject
/**
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
*
* @param user Objet user
* @return int <0 if KO, >0 if OK
* @param User $user Object user
* @return int <0 if KO, >0 if OK
*/
function load_board($user)
{
@@ -2423,8 +2446,9 @@ class Commande extends CommonObject
}
/**
* \brief Return source label of order
* \return string Label
* Return source label of order
*
* @return string Label
*/
function getLabelSource()
{
@@ -2437,9 +2461,10 @@ class Commande extends CommonObject
}
/**
* \brief Retourne le libelle du statut de la commande
* \param mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* \return string Libelle
* Return status label of Order
*
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* @return string Libelle
*/
function getLibStatut($mode)
{
@@ -2447,11 +2472,12 @@ class Commande extends CommonObject
}
/**
* Renvoi le libelle d'un statut donne
* @param statut Id statut
* @param facturee Si facturee
* @param mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* @return string Label of status
* Return label of status
*
* @param int $statut Id statut
* @param int $facturee if invoiced
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* @return string Label of status
*/
function LibStatut($statut,$facturee,$mode)
{
@@ -2515,12 +2541,13 @@ class Commande extends CommonObject
/**
* Return clicable link of object (with eventually picto)
* @param withpicto Add picto into link
* @param option Where point the link
* @param max Max length to show
* @param short Use short labels
* @return string String with URL
* Return clicable link of object (with eventually picto)
*
* @param int $withpicto Add picto into link
* @param int $option Where point the link
* @param int $max Max length to show
* @param int $short Use short labels
* @return string String with URL
*/
function getNomUrl($withpicto=0,$option=0,$max=0,$short=0)
{
@@ -2547,8 +2574,9 @@ class Commande extends CommonObject
/**
* \brief Charge les informations d'ordre info dans l'objet commande
* \param id Id de la commande a charger
* Charge les informations d'ordre info dans l'objet commande
*
* @param int $id Id of order
*/
function info($id)
{
@@ -2687,9 +2715,9 @@ class Commande extends CommonObject
/**
* Charge indicateurs this->nb de tableau de bord
* Charge indicateurs this->nb de tableau de bord
*
* @return int <0 si ko, >0 si ok
* @return int <0 si ko, >0 si ok
*/
function load_state_board()
{
@@ -2728,6 +2756,8 @@ class Commande extends CommonObject
/**
* Return an array of order lines
*
* @return array Lines of order
*/
function getLinesArray()
{
@@ -2851,7 +2881,7 @@ class OrderLine
/**
* Constructor
*
* @param DB handler d'acces base de donnee
* @param DoliDB $DB handler d'acces base de donnee
*/
function OrderLine($DB)
{
@@ -2955,10 +2985,10 @@ class OrderLine
}
/**
* Insert line into database
* Insert line into database
*
* @param notrigger 1 = disable triggers
* @return int <0 if KO, >0 if OK
* @param int $notrigger 1 = disable triggers
* @return int <0 if KO, >0 if OK
*/
function insert($notrigger=0)
{
@@ -3055,9 +3085,10 @@ class OrderLine
}
/**
* Mise a jour de l'objet ligne de commande en base
* Update the line object into db
*
* @return int <0 si ko, >0 si ok
* @param int $notrigger 1 = disable triggers
* @return int <0 si ko, >0 si ok
*/
function update($notrigger=0)
{
@@ -3137,9 +3168,9 @@ class OrderLine
}
/**
* Mise a jour de l'objet ligne de commande en base
* Update totals of order into database
*
* @return int <0 si ko, >0 si ok
* @return int <0 if ko, >0 if ok
*/
function update_total()
{

View File

@@ -46,11 +46,10 @@ class CommandeStats extends Stats
/**
* Constructor
*
* @param $DB Database handler
* @param $socid Id third party for filter
* @param $mode Option
* @param $userid Id user for filter
* @return CommandeStats
* @param DoliDB $DB Database handler
* @param int $socid Id third party for filter
* @param string $mode Option
* @param int $userid Id user for filter
*/
function CommandeStats($DB, $socid=0, $mode, $userid=0)
{
@@ -88,8 +87,10 @@ class CommandeStats extends Stats
}
/**
* \brief Renvoie le nombre de commande par mois pour une annee donnee
*
* Return orders number by month for a year
*
* @param int $year year for stats
* @return array array with number by month
*/
function getNbByMonth($year)
{
@@ -108,7 +109,9 @@ class CommandeStats extends Stats
}
/**
* Renvoie le nombre de commande par annee
* Return orders number by year
*
* @return array array with number by year
*
*/
function getNbByYear()
@@ -127,8 +130,10 @@ class CommandeStats extends Stats
}
/**
* Renvoie le nombre de commande par mois pour une annee donnee
* Return the orders amount by month for a year
*
* @param int $year year for stats
* @return array array with number by month
*/
function getAmountByMonth($year)
{
@@ -147,8 +152,10 @@ class CommandeStats extends Stats
}
/**
* Renvoie le nombre de commande par mois pour une annee donnee
* Return the orders amount average by month for a year
*
* @param int $year year for stats
* @return array array with number by month
*/
function getAverageByMonth($year)
{
@@ -166,10 +173,10 @@ class CommandeStats extends Stats
return $this->_getAverageByMonth($year, $sql);
}
/**
* \brief Return nb, total and average
* \return array Array of values
* Return nb, total and average
*
* @return array Array of values
*/
function getAllByYear()
{

View File

@@ -2,7 +2,7 @@
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010-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
@@ -302,8 +302,9 @@ class FactureRec extends Facture
/**
* \brief Recupere les lignes de factures predefinies dans this->lines
* \return int 1 if OK, < 0 if KO
* Recupere les lignes de factures predefinies dans this->lines
*
* @return int 1 if OK, < 0 if KO
*/
function fetch_lines()
{
@@ -405,9 +406,24 @@ class FactureRec extends Facture
/**
* Add a line to invoice
*
* @return int <0 if KO, >0 if OK
*
* Add a line to invoice
*
* @param int $facid Id de la facture
* @param string $desc Description de la ligne
* @param double $pu_ht Prix unitaire HT (> 0 even for credit note)
* @param double $qty Quantite
* @param double $txtva Taux de tva force, sinon -1
* @param int $fk_product Id du produit/service predefini
* @param double $remise_percent Pourcentage de remise de la ligne
* @param string $price_base_type HT or TTC
* @param int $info_bits Bits de type de lignes
* @param int $fk_remise_except Id remise
* @param double $pu_ttc Prix unitaire TTC (> 0 even for credit note)
* @param int $type Type of line (0=product, 1=service)
* @param int $rang Position of line
* @param int $special_code
* @return int <0 if KO, Id of line if OK
*/
function addline($facid, $desc, $pu_ht, $qty, $txtva, $fk_product=0, $remise_percent=0, $price_base_type='HT', $info_bits=0, $fk_remise_except='', $pu_ttc=0, $type=0, $rang=-1, $special_code=0)
{
@@ -513,10 +529,12 @@ class FactureRec extends Facture
/**
* Rend la facture automatique
* @param user
* @param freq
* @param courant
* Rend la facture automatique
*
* @param User $user
* @param int $freq
* @param string $courant
* @return int 0 if OK, <0 if KO
*/
function set_auto($user, $freq, $courant)
{
@@ -547,10 +565,10 @@ class FactureRec extends Facture
}
/**
* \brief Renvoie nom clicable (avec eventuellement le picto)
* \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
* \param option Sur quoi pointe le lien ('', 'withdraw')
* \return string Chaine avec URL
* Renvoie nom clicable (avec eventuellement le picto)
* @param int $withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
* @param string $option Sur quoi pointe le lien ('', 'withdraw')
* @return string Chaine avec URL
*/
function getNomUrl($withpicto=0,$option='')
{

View File

@@ -433,9 +433,9 @@ class Facture extends CommonObject
/**
* Create a new invoice in database from current invoice
*
* @param user Object user that ask creation
* @param invertdetail Reverse sign of amounts for lines
* @return int <0 if KO, >0 if OK
* @param User $user Object user that ask creation
* @param int $invertdetail Reverse sign of amounts for lines
* @return int <0 if KO, >0 if OK
*/
function createFromCurrent($user,$invertdetail=0)
{
@@ -708,11 +708,11 @@ class Facture extends CommonObject
/**
* Get object and lines from database
*
* @param rowid Id of object to load
* @param ref Reference of invoice
* @param ref_ext External reference of invoice
* @param ref_int Internal reference of other object
* @return int >0 if OK, <0 if KO
* @param int $rowid Id of object to load
* @param string $ref Reference of invoice
* @param string $ref_ext External reference of invoice
* @param int $ref_int Internal reference of other object
* @return int >0 if OK, <0 if KO
*/
function fetch($rowid, $ref='', $ref_ext='', $ref_int='')
{
@@ -905,9 +905,9 @@ class Facture extends CommonObject
/**
* Update database
*
* @param user User that modify
* @param notrigger 0=launch triggers after, 1=disable triggers
* @return int <0 if KO, >0 if OK
* @param User $user User that modify
* @param int $notrigger 0=launch triggers after, 1=disable triggers
* @return int <0 if KO, >0 if OK
*/
function update($user=0, $notrigger=0)
{
@@ -1745,25 +1745,25 @@ class Facture extends CommonObject
* par l'appelant par la methode get_default_tva(societe_vendeuse,societe_acheteuse,produit)
* et le desc doit deja avoir la bonne valeur (a l'appelant de gerer le multilangue)
*
* @param facid Id de la facture
* @param desc Description de la ligne
* @param pu_ht Prix unitaire HT (> 0 even for credit note)
* @param qty Quantite
* @param txtva Taux de tva force, sinon -1
* @param txlocaltax1 Local tax 1 rate
* @param txlocaltax2 Local tax 2 rate
* @param fk_product Id du produit/service predefini
* @param remise_percent Pourcentage de remise de la ligne
* @param date_start Date de debut de validite du service
* @param date_end Date de fin de validite du service
* @param ventil Code de ventilation comptable
* @param info_bits Bits de type de lignes
* @param fk_remise_except Id remise
* @param price_base_type HT or TTC
* @param pu_ttc Prix unitaire TTC (> 0 even for credit note)
* @param type Type of line (0=product, 1=service)
* @param rang Position of line
* @return int <0 if KO, Id of line if OK
* @param int $facid Id de la facture
* @param string $desc Description de la ligne
* @param double $pu_ht Prix unitaire HT (> 0 even for credit note)
* @param double $qty Quantite
* @param double $txtva Taux de tva force, sinon -1
* @param double $txlocaltax1 Local tax 1 rate
* @param double $txlocaltax2 Local tax 2 rate
* @param int $fk_product Id du produit/service predefini
* @param double $remise_percent Pourcentage de remise de la ligne
* @param timestamp $date_start Date de debut de validite du service
* @param timestamp $date_end Date de fin de validite du service
* @param int $ventil Code de ventilation comptable
* @param int $info_bits Bits de type de lignes
* @param int $fk_remise_except Id remise
* @param string $price_base_type HT or TTC
* @param double $pu_ttc Prix unitaire TTC (> 0 even for credit note)
* @param int $type Type of line (0=product, 1=service)
* @param int $rang Position of line
* @return int <0 if KO, Id of line if OK
*/
function addline($facid, $desc, $pu_ht, $qty, $txtva, $txlocaltax1=0, $txlocaltax2=0, $fk_product=0, $remise_percent=0, $date_start='', $date_end='', $ventil=0, $info_bits=0, $fk_remise_except='', $price_base_type='HT', $pu_ttc=0, $type=0, $rang=-1, $special_code=0, $origin='', $origin_id=0, $fk_parent_line=0)
{
@@ -1908,22 +1908,23 @@ class Facture extends CommonObject
/**
* Update a detail line
* @param rowid Id of line to update
* @param desc Description of line
* @param pu Prix unitaire (HT ou TTC selon price_base_type) (> 0 even for credit note lines)
* @param qty Quantity
* @param remise_percent Pourcentage de remise de la ligne
* @param date_start Date de debut de validite du service
* @param date_end Date de fin de validite du service
* @param tva_tx VAT Rate
* @param txlocaltax1 Local tax 1 rate
* @param txlocaltax2 Local tax 2 rate
* @param price_base_type HT or TTC
* @param info_bits Miscellanous informations
* @param type Type of line (0=product, 1=service)
* @param fk_parent_line ???
* @param skip_update_total ???
* @return int < 0 if KO, > 0 if OK
*
* @param int $rowid Id of line to update
* @param string $desc Description of line
* @param double $pu Prix unitaire (HT ou TTC selon price_base_type) (> 0 even for credit note lines)
* @param double $qty Quantity
* @param double $remise_percent Pourcentage de remise de la ligne
* @param date $date_start Date de debut de validite du service
* @param date $date_end Date de fin de validite du service
* @param double $tva_tx VAT Rate
* @param double $txlocaltax1 Local tax 1 rate
* @param double $txlocaltax2 Local tax 2 rate
* @param string $price_base_type HT or TTC
* @param int $info_bits Miscellanous informations
* @param int $type Type of line (0=product, 1=service)
* @param int $fk_parent_line ???
* @param int $skip_update_total ???
* @return int < 0 if KO, > 0 if OK
*/
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $date_start, $date_end, $txtva, $txlocaltax1=0, $txlocaltax2=0,$price_base_type='HT', $info_bits=0, $type=0, $fk_parent_line=0, $skip_update_total=0)
{
@@ -2037,8 +2038,9 @@ class Facture extends CommonObject
/**
* Delete line in database
* @param rowid Id of line to delete
* @return int <0 if KO, >0 if OK
*
* @param int $rowid Id of line to delete
* @return int <0 if KO, >0 if OK
*/
function deleteline($rowid)
{
@@ -2099,10 +2101,11 @@ class Facture extends CommonObject
}
/**
* \brief Applique une remise relative
* \param user User qui positionne la remise
* \param remise
* \return int <0 si ko, >0 si ok
* Set percent discount
*
* @param User $user User that set discount
* @param double $remise Discount
* @return int <0 if ko, >0 if ok
*/
function set_remise($user, $remise)
{
@@ -2134,10 +2137,11 @@ class Facture extends CommonObject
/**
* \brief Applique une remise absolue
* \param user User qui positionne la remise
* \param remise
* \return int <0 si ko, >0 si ok
* Set absolute discount
*
* @param User $user User that set discount
* @param double $remise
* @return int <0 si ko, >0 si ok
*/
function set_remise_absolue($user, $remise)
{
@@ -2206,7 +2210,8 @@ class Facture extends CommonObject
/**
* Return list of payments
*
* @return Array with list of payments
* @param string $filtertype
* @return array Array with list of payments
*/
function getListOfPayments($filtertype='')
{
@@ -2257,6 +2262,7 @@ class Facture extends CommonObject
/**
* Return amount (with tax) of all credit notes and deposits invoices used by invoice
*
* @return int <0 if KO, Sum of credit notes and deposits amount otherwise
*/
function getSumCreditNotesUsed()
@@ -2278,6 +2284,7 @@ class Facture extends CommonObject
/**
* Return amount (with tax) of all deposits invoices used by invoice
*
* @return int <0 if KO, Sum of deposits amount otherwise
*/
function getSumDepositsUsed()
@@ -2298,8 +2305,9 @@ class Facture extends CommonObject
}
/**
* \brief Renvoie tableau des ids de facture avoir issus de la facture
* \return array Tableau d'id de factures avoirs
* Renvoie tableau des ids de facture avoir issus de la facture
*
* @return array Tableau d'id de factures avoirs
*/
function getListIdAvoirFromInvoice()
{
@@ -2329,9 +2337,9 @@ class Facture extends CommonObject
}
/**
* \brief Renvoie l'id de la facture qui la remplace
* \param option filtre sur statut ('', 'validated', ...)
* \return int <0 si KO, 0 si aucune facture ne remplace, id facture sinon
* Renvoie l'id de la facture qui la remplace
* @param string $option filtre sur statut ('', 'validated', ...)
* \return int <0 si KO, 0 si aucune facture ne remplace, id facture sinon
*/
function getIdReplacingInvoice($option='')
{
@@ -2369,8 +2377,9 @@ class Facture extends CommonObject
}
/**
* \brief Retourne le libelle du type de facture
* \return string Libelle
* Retourne le libelle du type de facture
*
* @return string Libelle
*/
function getLibType()
{
@@ -2386,9 +2395,9 @@ class Facture extends CommonObject
/**
* Return label of object status
* @param mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=short label + picto
* @param alreadypaid 0=No payment already done, 1=Some payments already done
* @return string Label
* @param int $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=short label + picto
* @param int $alreadypaid 0=No payment already done, 1=Some payments already done
* @return string Label
*/
function getLibStatut($mode=0,$alreadypaid=-1)
{
@@ -2396,13 +2405,14 @@ class Facture extends CommonObject
}
/**
* \brief Renvoi le libelle d'un statut donne
* \param paye Etat paye
* \param statut Id statut
* \param mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* \param alreadypaid Montant deja paye
* \param type Type facture
* \return string Libelle du statut
* Renvoi le libelle d'un statut donne
*
* @param int $paye Etat paye
* @param int $statut Id statut
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* @param double $alreadypaid Montant deja paye
* @param int $type Type facture
* @return string Libelle du statut
*/
function LibStatut($paye,$statut,$mode=0,$alreadypaid=-1,$type=0)
{
@@ -2522,9 +2532,10 @@ class Facture extends CommonObject
/**
* Return next reference of invoice not already used (or last reference)
* according to numbering module defined into constant FACTURE_ADDON
* @param soc objet company
* @param mode 'next' for next value or 'last' for last value
* @return string free ref or last ref
*
* @param Society $soc object company
* @param string $mode 'next' for next value or 'last' for last value
* @return string free ref or last ref
*/
function getNextNumRef($soc,$mode='next')
{
@@ -2586,8 +2597,8 @@ class Facture extends CommonObject
}
/**
* \brief Charge les informations de l'onglet info dans l'objet facture
* \param id Id de la facture a charger
* Charge les informations de l'onglet info dans l'objet facture
* @param int $id Id de la facture a charger
*/
function info($id)
{
@@ -2630,9 +2641,9 @@ class Facture extends CommonObject
/**
* Change les conditions de reglement de la facture
*
* @param cond_reglement_id Id de la nouvelle condition de reglement
* @param date Date to force payment term
* @return int >0 si ok, <0 si ko
* @param int $cond_reglement_id Id de la nouvelle condition de reglement
* @param date $date Date to force payment term
* @return int >0 si ok, <0 si ko
*/
function cond_reglement($cond_reglement_id,$date='')
{
@@ -2678,9 +2689,10 @@ class Facture extends CommonObject
/**
* \brief Change le mode de reglement
* \param mode Id du nouveau mode
* \return int >0 si ok, <0 si ko
* Change le mode de reglement
*
* @param int $mode Id du nouveau mode
* @return int >0 si ok, <0 si ko
*/
function mode_reglement($mode_reglement_id)
{
@@ -2712,9 +2724,9 @@ class Facture extends CommonObject
/**
* \brief Renvoi si les lignes de facture sont ventilees et/ou exportees en compta
* \param user Utilisateur creant la demande
* \return int <0 if KO, 0=no, 1=yes
* Renvoi si les lignes de facture sont ventilees et/ou exportees en compta
*
* @return int <0 if KO, 0=no, 1=yes
*/
function getVentilExportCompta()
{
@@ -2746,6 +2758,7 @@ class Facture extends CommonObject
* If hidden option FACTURE_CAN_BE_REMOVED is on, we can
* If invoice has a definitive ref, is last, without payment and not dipatched into accountancy -> yes end of rule
* If invoice is draft and ha a temporary ref -> yes
*
* @return int <0 if KO, 0=no, 1=yes
*/
function is_erasable()
@@ -2778,10 +2791,11 @@ class Facture extends CommonObject
/**
* \brief Renvoi liste des factures remplacables
* Statut validee ou abandonnee pour raison autre + non payee + aucun paiement + pas deja remplacee
* \param socid Id societe
* \return array Tableau des factures ('id'=>id, 'ref'=>ref, 'status'=>status, 'paymentornot'=>0/1)
* Renvoi liste des factures remplacables
* Statut validee ou abandonnee pour raison autre + non payee + aucun paiement + pas deja remplacee
*
* @param int $socid Id societe
* @return array Tableau des factures ('id'=>id, 'ref'=>ref, 'status'=>status, 'paymentornot'=>0/1)
*/
function list_replacable_invoices($socid=0)
{
@@ -2825,11 +2839,12 @@ class Facture extends CommonObject
/**
* \brief Renvoi liste des factures qualifiables pour correction par avoir
* Les factures qui respectent les regles suivantes sont retournees:
* (validee + paiement en cours) ou classee (payee completement ou payee partiellement) + pas deja remplacee + pas deja avoir
* \param socid Id societe
* \return array Tableau des factures ($id => $ref)
* Renvoi liste des factures qualifiables pour correction par avoir
* Les factures qui respectent les regles suivantes sont retournees:
* (validee + paiement en cours) ou classee (payee completement ou payee partiellement) + pas deja remplacee + pas deja avoir
*
* @param int $socid Id societe
* @return array Tableau des factures ($id => $ref)
*/
function list_qualified_avoir_invoices($socid=0)
{
@@ -2880,9 +2895,10 @@ class Facture extends CommonObject
/**
* \brief Create a withdrawal request for a standing order
* \param user User asking standing order
* \return int <0 if KO, >0 if OK
* Create a withdrawal request for a standing order
*
* @param User $user User asking standing order
* @return int <0 if KO, >0 if OK
*/
function demande_prelevement($user)
{
@@ -2948,8 +2964,9 @@ class Facture extends CommonObject
/**
* Supprime une demande de prelevement
* @param user utilisateur creant la demande
* @param did id de la demande a supprimer
*
* @param User $user utilisateur creant la demande
* @param int $did id de la demande a supprimer
*/
function demande_prelevement_delete($user, $did)
{
@@ -2969,9 +2986,10 @@ class Facture extends CommonObject
/**
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
* @param user Objet user
* @return int <0 if KO, >0 if OK
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
*
* @param User $user Object user
* @return int <0 if KO, >0 if OK
*/
function load_board($user)
{
@@ -3017,8 +3035,9 @@ class Facture extends CommonObject
/* gestion des contacts d'une facture */
/**
* \brief Retourne id des contacts clients de facturation
* \return array Liste des id contacts facturation
* Retourne id des contacts clients de facturation
*
* @return array Liste des id contacts facturation
*/
function getIdBillingContact()
{
@@ -3026,8 +3045,9 @@ class Facture extends CommonObject
}
/**
* \brief Retourne id des contacts clients de livraison
* \return array Liste des id contacts livraison
* Retourne id des contacts clients de livraison
*
* @return array Liste des id contacts livraison
*/
function getIdShippingContact()
{
@@ -3161,7 +3181,6 @@ class Facture extends CommonObject
/**
* Load indicators for dashboard (this->nbtodo and this->nbtodolate)
*
* @param user Objet user
* @return int <0 if KO, >0 if OK
*/
function load_state_board()
@@ -3201,7 +3220,9 @@ class Facture extends CommonObject
}
/**
* Return an array of invoice lines
* Create an array of invoice lines
*
* @return int >0 if OK, <0 if KO
*/
function getLinesArray()
{

View File

@@ -85,6 +85,7 @@ class FactureStats extends Stats
/**
* Renvoie le nombre de facture par annee
*
* @return array Array of values
*/
function getNbByYear()
@@ -101,8 +102,9 @@ class FactureStats extends Stats
/**
* Renvoie le nombre de facture par mois pour une annee donnee
* @param year Year to scan
* @return array Array of values
*
* @param int $year Year to scan
* @return array Array of values
*/
function getNbByMonth($year)
{
@@ -121,6 +123,7 @@ class FactureStats extends Stats
/**
* Renvoie le montant de facture par mois pour une annee donnee
*
* @param year Year to scan
* @return array Array of values
*/
@@ -139,9 +142,10 @@ class FactureStats extends Stats
}
/**
* \brief Return average amount
* \param year Year to scan
* \return array Array of values
* Return average amount
*
* @param int $year Year to scan
* @return array Array of values
*/
function getAverageByMonth($year)
{
@@ -156,8 +160,9 @@ class FactureStats extends Stats
}
/**
* \brief Return nb, total and average
* \return array Array of values
* Return nb, total and average
*
* @return array Array of values
*/
function getAllByYear()
{

View File

@@ -286,14 +286,15 @@ function dol_imageResizeOrCrop($file, $mode, $newWidth, $newHeight, $src_x=0, $s
/**
* Create a thumbnail from an image file (Supported extensions are gif, jpg, png and bmp).
* If file is myfile.jpg, new file may be myfile_small.jpg
* @param file Path of source file to resize
* @param maxWidth Largeur maximum que dois faire la miniature (-1=unchanged, 160 by default)
* @param maxHeight Hauteur maximum que dois faire l'image (-1=unchanged, 120 by default)
* @param extName Extension to differenciate thumb file name ('_small', '_mini')
* @param quality Quality of compression (0=worst, 100=best)
* @param outdir Directory where to store thumb
* @param targetformat New format of target (1,2,3,4 or 0 to keep old format)
* @return string Full path of thumb
*
* @param string $file Path of source file to resize
* @param int $maxWidth Largeur maximum que dois faire la miniature (-1=unchanged, 160 by default)
* @param int $maxHeight Hauteur maximum que dois faire l'image (-1=unchanged, 120 by default)
* @param string $extName Extension to differenciate thumb file name ('_small', '_mini')
* @param int $quality Quality of compression (0=worst, 100=best)
* @param string $outdir Directory where to store thumb
* @param int $targetformat New format of target (1,2,3,... or 0 to keep old format)
* @return string Full path of thumb or '' if it fails
*/
function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $quality=50, $outdir='thumbs', $targetformat=0)
{
@@ -355,16 +356,19 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
$imgfonction='';
switch($infoImg[2])
{
case 1: // IMG_GIF
case IMAGETYPE_GIF: // 1
$imgfonction = 'imagecreatefromgif';
break;
case 2: // IMG_JPG
case IMAGETYPE_JPEG: // 2
$imgfonction = 'imagecreatefromjpeg';
break;
case 3: // IMG_PNG
case IMAGETYPE_PNG: // 3
$imgfonction = 'imagecreatefrompng';
break;
case 4: // IMG_WBMP
case IMAGETYPE_BMP: // 6
// Not supported by PHP GD
break;
case IMAGETYPE_WBMP: // 15
$imgfonction = 'imagecreatefromwbmp';
break;
}
@@ -384,23 +388,32 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
// Initialisation des variables selon l'extension de l'image
switch($infoImg[2])
{
case 1: // Gif
case IMAGETYPE_GIF: // 1
$img = imagecreatefromgif($fichier);
$extImg = '.gif'; // Extension de l'image
break;
case 2: // Jpg
case IMAGETYPE_JPEG: // 2
$img = imagecreatefromjpeg($fichier);
$extImg = '.jpg'; // Extension de l'image
break;
case 3: // Png
case IMAGETYPE_PNG: // 3
$img = imagecreatefrompng($fichier);
$extImg = '.png';
break;
case 4: // Bmp
case IMAGETYPE_BMP: // 6
// Not supported by PHP GD
$extImg = '.bmp';
break;
case IMAGETYPE_WBMP: // 15
$img = imagecreatefromwbmp($fichier);
$extImg = '.bmp';
break;
}
if (! is_resource($img))
{
dol_syslog('Failed to detect type of image. We found infoImg[2]='.$infoImg[2], LOG_WARNING);
return 0;
}
// Initialisation des dimensions de la vignette si elles sont superieures a l'original
if($maxWidth > $imgWidth){ $maxWidth = $imgWidth; }
@@ -426,7 +439,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
if (empty($targetformat)) $targetformat=$infoImg[2];
// Create empty image
if ($targetformat == 1)
if ($targetformat == IMAGETYPE_GIF)
{
// Compatibilite image GIF
$imgThumb = imagecreate($thumbWidth, $thumbHeight);
@@ -451,25 +464,30 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
// Initialisation des variables selon l'extension de l'image
switch($targetformat)
{
case 1: // Gif
case IMAGETYPE_GIF: // 1
$trans_colour = imagecolorallocate($imgThumb, 255, 255, 255); // On procede autrement pour le format GIF
imagecolortransparent($imgThumb,$trans_colour);
$extImgTarget = '.gif';
$newquality='NU';
break;
case 2: // Jpg
$trans_colour = imagecolorallocatealpha($imgThumb, 255, 255, 255, 0);
case IMAGETYPE_JPEG: // 2
$trans_colour = imagecolorallocatealpha($imgThumb, 255, 255, 255, 0);
$extImgTarget = '.jpg';
$newquality=$quality;
break;
case 3: // Png
case IMAGETYPE_PNG: // 3
imagealphablending($imgThumb,false); // Pour compatibilite sur certain systeme
$trans_colour = imagecolorallocatealpha($imgThumb, 255, 255, 255, 127); // Keep transparent channel
$extImgTarget = '.png';
$newquality=$quality-100;
$newquality=round(abs($quality-100)*9/100);
break;
case 4: // Bmp
case IMAGETYPE_BMP: // 6
// Not supported by PHP GD
$extImgTarget = '.bmp';
$newquality='NU';
break;
case IMAGETYPE_WBMP: // 15
$trans_colour = imagecolorallocatealpha($imgThumb, 255, 255, 255, 0);
$extImgTarget = '.bmp';
$newquality='NU';
@@ -492,16 +510,19 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
// Create image on disk
switch($targetformat)
{
case 1: // Gif
case IMAGETYPE_GIF: // 1
imagegif($imgThumb, $imgThumbName);
break;
case 2: // Jpg
case IMAGETYPE_JPEG: // 2
imagejpeg($imgThumb, $imgThumbName, $newquality);
break;
case 3: // Png
case IMAGETYPE_PNG: // 3
imagepng($imgThumb, $imgThumbName, $newquality);
break;
case 4: // Bmp
case IMAGETYPE_BMP: // 6
// Not supported by PHP GD
break;
case IMAGETYPE_WBMP: // 15
image2wmp($imgThumb, $imgThumbName);
break;
}

View File

@@ -275,8 +275,11 @@ class Expedition extends CommonObject
}
/**
*
*
* Create a expedition line
*
* @param int $entrepot_id Id of warehouse
* @param int $origin_line_id Id of source line
* @param int $qty Quantity
*/
function create_line($entrepot_id, $origin_line_id, $qty)
{
@@ -617,8 +620,11 @@ class Expedition extends CommonObject
}
/**
* Ajoute une ligne
*
* Add a expedition line
*
* @param int $entrepot_id Id of warehouse
* @param int $id Id of source line
* @param int $qty Quantity
*/
function addline( $entrepot_id, $id, $qty )
{
@@ -633,8 +639,10 @@ class Expedition extends CommonObject
}
/**
*
*
* Delete line
*
* @param int $lineid Id line of order
* TODO Voir si cette function est utilisee
*/
function deleteline($lineid)
{
@@ -763,7 +771,7 @@ class Expedition extends CommonObject
/**
* Delete shipping
*
* @return void
* @return int >0 if OK otherwise if KO
*/
function delete()
{
@@ -851,7 +859,7 @@ class Expedition extends CommonObject
/**
* Load lines
*
* @return void
* @return int >0 if OK, Otherwise if KO
*/
function fetch_lines()
{
@@ -910,11 +918,14 @@ class Expedition extends CommonObject
}
/**
* Renvoie nom clicable (avec eventuellement le picto)
*
* @param int $withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
* @return string Chaine avec URL
*/
* Return clicable link of object (with eventually picto)
*
* @param int $withpicto Add picto into link
* @param int $option Where point the link
* @param int $max Max length to show
* @param int $short Use short labels
* @return string String with URL
*/
function getNomUrl($withpicto=0,$option=0,$max=0,$short=0)
{
global $langs;
@@ -936,12 +947,13 @@ class Expedition extends CommonObject
$result.=$linkstart.$this->ref.$linkend;
return $result;
}
/**
* Retourne le libelle du statut d'une expedition
*
* @return string Libelle
*/
* Return status label
*
* @param int $mode 0=Long label, 1=Short label, 2=Picto + Short label, 3=Picto, 4=Picto + Long label, 5=Short label + Picto
* @return string Libelle
*/
function getLibStatut($mode=0)
{
return $this->LibStatut($this->statut,$mode);
@@ -1062,11 +1074,11 @@ class Expedition extends CommonObject
}
/**
* Set the planned delivery date
* Set the planned delivery date
*
* @param user Objet utilisateur qui modifie
* @param date_livraison Date de livraison
* @return int <0 si ko, >0 si ok
* @param User $user Objet utilisateur qui modifie
* @param timestamp date_livraison Date de livraison
* @return int <0 si ko, >0 si ok
*/
function set_date_livraison($user, $date_livraison)
{
@@ -1097,9 +1109,9 @@ class Expedition extends CommonObject
}
/**
* Fetch deliveries method and return an array. Load array this->meths(rowid=>label).
* Fetch deliveries method and return an array. Load array this->meths(rowid=>label).
*
* @return void
* @return void
*/
function fetch_delivery_methods()
{
@@ -1123,9 +1135,10 @@ class Expedition extends CommonObject
}
/**
* Get tracking url status
*
* @return void
*
* Get tracking url status
*
* @param string $value
*/
function GetUrlTrackingStatus($value='')
{
@@ -1194,7 +1207,11 @@ class ExpeditionLigne
var $product_desc; // Description produit
var $ref;
/**
* Constructor
*
* @param DoliDB $db Database handler
*/
function ExpeditionLigne($DB)
{
$this->db=$DB;

View File

@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005-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
@@ -41,9 +42,9 @@ class ExpeditionStats
}
/**
* Renvoie le nombre de expedition par annee
* Return expedition number by year
*
* @return void
* @return array array with number by year
*/
function getNbExpeditionByYear()
{
@@ -74,10 +75,10 @@ class ExpeditionStats
}
/**
* Renvoie le nombre de expedition par mois pour une annee donnee
* Return the expeditions number by month for a year
*
* @param int $year Year
* @return int
* @return array Array with number by month
*/
function getNbExpeditionByMonth($year)
{
@@ -122,9 +123,10 @@ class ExpeditionStats
/**
* Return the expeditions number by month for a year
*
* @param int $year Year
* @return int
* @param int $year Year
* @return array Array with number by month
*/
function getNbExpeditionByMonthWithPrevYear($year)
{

View File

@@ -77,7 +77,8 @@ CreateEmptyPropal=Create empty commercial proposals vierge or from list of produ
DefaultProposalDurationValidity=Default commercial proposal validity duration (in days)
UseCustomerContactAsPropalRecipientIfExist=Use customer contact address if defined instead of third party address as proposal recipient address
ClonePropal=Clone commercial proposal
ConfirmClonePropal=Are you sure you want to clone this commercial proposal <b>%s</b> ?
ConfirmClonePropal=Are you sure you want to clone the commercial proposal <b>%s</b> ?
ConfirmReOpenProp=Are you sure you want to open back the commercial proposal <b>%s</b> ?
ProposalsAndProposalsLines=Commercial proposal and lines
ProposalLine=Proposal line
AvailabilityPeriod=Availability delay

View File

@@ -77,7 +77,8 @@ CreateEmptyPropal=Créer proposition/devis vierge
DefaultProposalDurationValidity=Délai de validité par défaut (en jours)
UseCustomerContactAsPropalRecipientIfExist=Utiliser adresse contact suivi client si défini plutôt que adresse tiers comme destinataire des propositions
ClonePropal=Cloner proposition commerciale
ConfirmClonePropal=Êtes-vous sûr de vouloir cloner cette proposition commerciale <b>%s</b> ?
ConfirmClonePropal=Êtes-vous sûr de vouloir cloner la proposition commerciale <b>%s</b> ?
ConfirmReOpenProp=Êtes-vous sûr de vouloir réouvrir la proposition commerciale <b>%s</b> ?
ProposalsAndProposalsLines=Propositions commerciales clientes et lignes de propositions
ProposalLine=Ligne de proposition
AvailabilityPeriod=Délai de livraison

View File

@@ -781,6 +781,7 @@ UserMailRequired=电子邮件要求创建一个新用户
CompanySetup=公司模块设置
CompanyCodeChecker=对第三方代码生成和检查(客户或供应商模块)
AccountCodeManager=代码生成的会计(模块客户或供应商)
ModuleCompanyCodeAquarium=返回一个会计代码“401代码由第三方供应商的供应商遵循会计守则”和“411”由第三方客户代码之后为客户建立会计代码。
ModuleCompanyCodePanicum=返回一个空的会计代码。
ModuleCompanyCodeDigitaria=会计代码依赖于第三方的代码。该代码是字符组成的“C”的第一个位置的前5第三方代码字符之后。
UseNotifications=使用通知

View File

@@ -130,8 +130,8 @@ ErrorDiscountAlreadyUsed=错误,已经使用优惠
ErrorInvoiceAvoirMustBeNegative=错误的,正确的发票必须有一个负数
ErrorInvoiceOfThisTypeMustBePositive=错误,这种类型的发票必须有一个正数
ErrorCantCancelIfReplacementInvoiceNotValidated=错误,无法取消一个已经被另一个发票仍处于草案状态取代发票
BillFrom=
BillTo=条例草案
BillFrom=From
BillTo=Bill To
ActionsOnBill=行动对发票
NewBill=新发票
Prélèvements=长期订单
@@ -184,7 +184,7 @@ File=文件
AlreadyPaid=已支付
AlreadyPaidNoCreditNotesNoDeposits=已支付(无信用票据及存款)
Abandoned=弃
RemainderToPay=其余部分支付
RemainderToPay=支付
RemainderToTake=其余部分采取
AmountExpected=索赔额
ExcessReceived=收到过剩
@@ -317,8 +317,8 @@ BankAccountNumberKey=关键
Residence=Domiciliation
IBANNumber=IBAN号码
IBAN=银行IBAN
BIC=BIC / SWIFT
BICNumber=BIC / SWIFT号码
BIC=BIC号码 / SWIFT号码
BICNumber=BIC号码 / SWIFT号码
ExtraInfos=额外的新闻电台
RegulatedOn=规范了
ChequeNumber=检查ñ °
@@ -334,8 +334,8 @@ IntracommunityVATNumber=社区内数增值税
PaymentByChequeOrderedTo=支票付款是支付到s发送到
PaymentByChequeOrderedToShort=支票付款,须付予
SendTo=发送到
PaymentByTransferOnThisBankAccount=通过转移支付对下列银行帐户
VATIsNotUsedForInvoice=*不适用增值税艺术293B的CGI
PaymentByTransferOnThisBankAccount=付款至以下帐户
VATIsNotUsedForInvoice=* 不得包含VAT, 详见CGI-293B
LawApplicationPart1=通过对应用的12/05/80法80.335
LawApplicationPart2=货物仍然是财产
LawApplicationPart3=卖方直到完全兑现
@@ -391,9 +391,9 @@ TitanNumRefModelDesc3=定义与在本财年开始例如9月9个月的变
TitanNumRefModelDesc4=在这个例子中我们应当对2006年9月1日发票命名FA0700001
PlutonNumRefModelDesc1=返回一个可定制的发票号码,按确定的面具。
// STOP - Lines generated via autotranslator.php tool (2010-06-08 21:22:55).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
InvoiceReplacement=更换发票
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:41:53).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
InvoiceReplacement=更换发票
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:41:53).

View File

@@ -212,7 +212,7 @@ LastContacts=最后接触
MyContacts=我的联系人
Phones=电话
Capital=资本
CapitalOf=s首都
CapitalOf=资本 %s
EditCompany=编辑公司
EditDeliveryAddress=修改送货地址
ThisUserIsNot=这个用户是不是一个前景,客户也不供应商
@@ -297,13 +297,13 @@ ListCustomersShort=客户名单
MonkeyNumRefModelDesc=返回格式syymm为客户代码以及syymm -○○○○供应商代码其中YY是年numeroMM是月nnnn是一个没有休息没有为0返回序列。
LeopardNumRefModelDesc=客户/供应商代码是免费的。此代码可以随时修改。
// STOP - Lines generated via autotranslator.php tool (2010-06-08 21:22:55).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
ProfId1IN=教授ID是1
ProfId2IN=ID为2教授
ProfId3IN=教授ID已3
ProfId4IN=ID四教授
SupplierCategory=供应商类别
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:40:12).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
ProfId1IN=教授ID是1
ProfId2IN=ID为2教授
ProfId3IN=教授ID已3
ProfId4IN=ID四教授
SupplierCategory=供应商类别
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:40:12).

View File

@@ -267,7 +267,7 @@ UnitPrice=单价
UnitPriceHT=单位价格(净值)
UnitPriceTTC=单价
PriceU=向上
PriceUHT=向上(净额)
PriceUHT=不含税价格
PriceUTTC=向上
Amount=额
AmountInvoice=发票金额
@@ -290,10 +290,10 @@ Total=总
SubTotal=小计
TotalHTShort=共计(净额)
TotalTTCShort=共有(包括税)
TotalHT=共计(税
TotalTTC=共有(包括税)
TotalHT=共计(不含税)
TotalTTC=共计(含税)
TotalTTCToYourCredit=共有(包括税),以你的信用
TotalVAT=共有增值税
TotalVAT=增值税
IncludedVAT=含增值税
HT=扣除税
TTC=公司增值税
@@ -308,7 +308,7 @@ List=表
FullList=全部列表
Statistics=统计
Status=地位
Ref=号
Ref=号
RefSupplier=号。供应商
RefPayment=号。付款
CommercialProposals=商业建议
@@ -348,12 +348,12 @@ Popularity=声望
Categories=分类
Category=类别
By=由
From=
From=From
to=至
and=和
or=或
Other=其他
Others=他
Others=
OtherInformations=其它信息
Quantity=数量
Qty=数量
@@ -373,7 +373,7 @@ Unknown=未知
General=一般
Size=大小
Received=收稿
Paid=支付
Paid=支付
Topic=Sujet
ByCompanies=由第三方
ByUsers=通过用户
@@ -407,9 +407,9 @@ November=十一月
December=十二月
Month01=一月
Month02=二月
Month03=游行
Month03=三月
Month04=四月
Month05=可能
Month05=五月
Month06=六月
Month07=七月
Month08=八月
@@ -419,16 +419,16 @@ Month11=十一月
Month12=十二月
MonthShort01=一月
MonthShort02=二月
MonthShort03=马尔
MonthShort04=4
MonthShort05=可能
MonthShort06=6
MonthShort07=7
MonthShort08=8
MonthShort09=9
MonthShort10=10
MonthShort11=11
MonthShort12=12
MonthShort03=三月
MonthShort04=
MonthShort05=五月
MonthShort06=
MonthShort07=
MonthShort08=
MonthShort09=
MonthShort10=
MonthShort11=十一
MonthShort12=十二
AttachedFiles=附加档案和文件
FileTransferComplete=文件被上传successfuly
DateFormatYYYYMM=为YYYY - MM
@@ -438,7 +438,7 @@ ReportName=报告名称
ReportPeriod=报告期内
ReportDescription=描述
Report=报告
Keyword=摩托罗拉第一百
Keyword=关键字
Legend=传说
FillTownFromZip=从拉链填写城市
ShowLog=显示日志
@@ -446,7 +446,7 @@ File=文件
Files=档
NotAllowed=不允许
ReadPermissionNotAllowed=读取权限不允许
AmountInCurrency=在%数额的货币
AmountInCurrency=金额 %s
Example=例子
Examples=范例
NoExample=没有例子
@@ -588,13 +588,13 @@ ShortFriday=F
ShortSaturday=S
ShortSunday=S
// STOP - Lines generated via autotranslator.php tool (2010-06-09 00:39:24).
// START - Lines generated via autotranslator.php tool (2010-09-04 02:09:13).
// Reference language: en_US -> zh_CN
FormatHourShortDuration=%H:%M
TotalLT1ES=共有再生能源
TotalLT2ES=共有IRPF
Source=来源
Prefix=字首
// STOP - Lines generated via autotranslator.php tool (2010-09-04 02:22:42).
// START - Lines generated via autotranslator.php tool (2010-09-04 02:09:13).
// Reference language: en_US -> zh_CN
FormatHourShortDuration=%H:%M
TotalLT1ES=共有再生能源
TotalLT2ES=共有IRPF
Source=来源
Prefix=字首
// STOP - Lines generated via autotranslator.php tool (2010-09-04 02:22:42).

View File

@@ -11,7 +11,7 @@ CHARSET=UTF-8
OrdersArea=客户订单面积
SuppliersOrdersArea=供应商的订单面积
OrderCard=订购卡
Order=秩序
Order=订单
Orders=订单
OrderLine=在线订单
OrderFollow=跟进
@@ -97,7 +97,7 @@ ComptaCard=会计证
DraftOrders=命令草案
RelatedOrders=有关命令
OnProcessOrders=在处理订单
RefOrder=号。秩序
RefOrder=订单号码
RefCustomerOrder=号。客户订单
CustomerOrder=客户订单
RefCustomerOrderShort=号。卡斯特。秩序
@@ -138,9 +138,9 @@ AddDeliveryCostLine=添加交货成本线,显示该命令的重量
PDFEinsteinDescription=一个完整的命令模式logo. ..
PDFEdisonDescription=一份简单的订购模式
// STOP - Lines generated via autotranslator.php tool (2010-06-08 21:22:55).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
DispatchSupplierOrder=接收供应商的订单%s
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:34:42).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
DispatchSupplierOrder=接收供应商的订单%s
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:34:42).

View File

@@ -8,6 +8,22 @@
// START - Lines generated via autotranslator.php tool (2010-06-09 00:32:00).
// Reference language: en_US
CHARSET=UTF-8
ErrorPasswordDiffers=密码不同,请重新输入。
ErrorForbidden=访问被拒绝。 <br>您尝试访问的页面,无一被验证的会话区或功能,或者不允许你的用户。
ErrorForbidden2=此登录权限可以定义你的Dolibarr从菜单的S ->s的管理员
ErrorForbidden3=看来Dolibarr是不是通过身份验证的会话中使用。以在Dolibarr安装文件就会知道如何管理认证htaccess的mod_auth或其他...).
ErrorNoImagickReadimage=功能imagick_readimage是没有发现在这个PHP。没有预览可用。管理员可以从菜单中禁用此设置 - 显示选项卡。
ErrorRecordAlreadyExists=记录已存在
ErrorCantReadFile=无法读取档案's'
ErrorCantReadDir=无法读取目录's'
ErrorFailedToFindEntity=无法读取实体's'的
ErrorBadLoginPassword=坏值的帐号和密码
ErrorLoginDisabled=您的帐户已被禁用
ErrorFailedToRunExternalCommand=无法运行外部命令。检查它是可用和可运行在PHP的服务器。如果PHP <b>安全模式</b>被激活,请检查命令<b>safe_mode_exec_dir之</b>内,是由参数定义一个目录。
ErrorFailedToChangePassword=无法更改密码
ErrorLoginDoesNotExists=<b>如何正确</b>使用手机与登录<b></b>找不到。
ErrorLoginHasNoEmail=这位用户没有电子邮件地址。进程中止。
ErrorBadValueForCode=代码有错误的值类型。再次尝试以新的价值...
SecurityCode=安全代码
Calendar=日历
AddTrip=添加行程
@@ -17,12 +33,12 @@ BirthdayDate=生日
DateToBirth=在出生日期
BirthdayAlertOn=生日提醒活跃
BirthdayAlertOff=生日提醒无效
Notify_FICHINTER_VALIDATE=验证干预
Notify_BILL_VALIDATE=客户发票验证
Notify_ORDER_SUPPLIER_APPROVE=供应商的订单批准
Notify_ORDER_SUPPLIER_REFUSE=供应商的订单拒绝
Notify_ORDER_VALIDATE=验证客户订单
Notify_PROPAL_VALIDATE=验证客户的建议
Notify_NOTIFY_VAL_FICHINTER=验证干预
Notify_NOTIFY_VAL_FAC=客户发票验证
Notify_NOTIFY_APP_ORDER_SUPPLIER=供应商的订单批准
Notify_NOTIFY_REF_ORDER_SUPPLIER=供应商的订单拒绝
Notify_NOTIFY_VAL_ORDER=验证客户订单
Notify_NOTIFY_VAL_PROPAL=验证客户的建议
NbOfAttachedFiles=所附文件数/文件
TotalSizeOfAttachedFiles=所附文件的总大小/文件
MaxSize=最大尺寸
@@ -30,8 +46,14 @@ AttachANewFile=附加一个新的文件/文件
LinkedObject=链接对象
Miscellanous=杂项
NbOfActiveNotifications=号码的通知
WarningInstallDirExists=警告,安装目录<b>htdocs中/安装</b> )依然存在。这是一个严重的安全漏洞。您应该删除它尽快。
WarningUntilDirRemoved=所有安全警告可见由管理员用户只将保持活跃只要是存在的脆弱性或常数MAIN_REMOVE_INSTALL_WARNING是在安装程序->其他设置添加)。
PredefinedMailTest=这是一个测试邮件。\ n该两行是由一个回车分隔。
PredefinedMailTestHtml=这是一个<b>测试</b>邮件(单词测试必须大胆)。 <br>这两条线隔开,回车。
PredefinedMailContentSendInvoice=Veuillez trouver慈联合报制作__FACREF__ \ ñ \ nCordialement \ ñ \ ñ
PredefinedMailContentSendInvoiceReminder=努斯apportons à votre明知地阙拉制作__FACREF__东北桑布勒考绩avoir埃泰réglée。香格里拉voici donc倒入垂降恩一块jointe。\ ñ \ nCordialement \ ñ \ ñ
PredefinedMailContentSendProposal=Veuillez trouver慈联合报主张商业设备__PROPREF__ \ ñ \ nCordialement \ ñ \ ñ
PredefinedMailContentSendOrder=Veuillez trouver慈联合报commande __ORDERREF__ \ ñ \ nCordialement \ ñ \ ñ
DemoDesc=Dolibarr是紧凑型的ERP / CRM的几个功能模块组成。一个演示其中包括所有模块并不意味着什么因为这永远不会发生。因此一些演示配置文件都可用。
ChooseYourDemoProfil=演示材选择符合您的活动...
DemoFundation=一个基金会管理成员
@@ -167,228 +189,8 @@ NoExportableData=没有出口的数据(导出加载的数据,或丢失的权
ToExport=出口
NewExport=新的出口
ExternalSites=外部网站
// STOP - Lines generated via autotranslator.php tool (2010-06-09 00:32:00).
// START - Lines generated via autotranslator.php tool (2010-07-17 12:23:40).
// Reference language: en_US
BirthdayAlertOn=bursdag varsling aktive
BirthdayAlertOff=bursdag varsling inaktive
Notify_ORDER_SUPPLIER_APPROVE=Leverandør bestill godkjent
Notify_ORDER_SUPPLIER_REFUSE=Leverandør bestill nektet
Notify_ORDER_VALIDATE=Kundeordre validert
Notify_PROPAL_VALIDATE=Kunden forslaget validert
PredefinedMailTest=Dette er en test post. \ NDe to linjer er atskilt med en vognretur.
PredefinedMailTestHtml=Dette er en <b>test</b> mail (ordet testen må være i fet skrift). <br> De to linjene er skilt med en vognretur.
FeatureNotYetAvailableShort=Tilgjengelig i en neste versjon
CalculatedWeight=Beregnet vekt
CalculatedVolume=Beregnet volum
Length=Lengde
LengthUnitm=m
LengthUnitdm=dm
LengthUnitcm=cm
LengthUnitmm=mm
Surface=Område
SurfaceUnitm2=m2
SurfaceUnitdm2=DM2
SurfaceUnitcm2=cm2
SurfaceUnitmm2=mm2
StatsByNumberOfUnits=Statistikk i antall produkter / tjenester enheter
StatsByNumberOfEntities=Statistikk i antall henvisende enheter
NumberOfProposals=Antall forslag på 12 siste måned
NumberOfCustomerOrders=Antall kundeordre på siste 12 mnd
NumberOfCustomerInvoices=Antall kundefakturaer på siste 12 mnd
NumberOfSupplierInvoices=Antall leverandørfakturaer på siste 12 mnd
NumberOfUnitsProposals=Antall enheter på forslag på siste 12 mnd
NumberOfUnitsCustomerOrders=Antall enheter på kundeordrer på siste 12 mnd
NumberOfUnitsCustomerInvoices=Antall enheter på kundenes fakturaer på siste 12 mnd
NumberOfUnitsSupplierInvoices=Antall enheter på leverandørfakturaer på siste 12 mnd
EMailTextInterventionValidated=Intervensjonen %s har blitt validert.
EMailTextInvoiceValidated=Fakturaen %s har blitt validert.
EMailTextProposalValidated=Forslaget %s har blitt validert.
EMailTextOrderValidated=Ordren %s har blitt validert.
EMailTextOrderApproved=Ordren %s er godkjent.
EMailTextOrderApprovedBy=Ordren %s er godkjent av %s.
EMailTextOrderRefused=Ordren %s har blitt nektet.
EMailTextOrderRefusedBy=Ordren %s har blitt nektet av %s.
ImportedWithSet=Innførsel datasett
DolibarrNotification=Automatisk varsling
ResizeDesc=Skriv inn ny <b>bredde</b> eller ny høyde. Forhold vil bli holdt under resizing ...
NewLength=Ny bredde
NewHeight=Ny høyde
NewSizeAfterCropping=Ny størrelse etter beskjæring
DefineNewAreaToPick=Definer nytt område på bildet for å plukke (venstre klikk på bildet og dra til du kommer til motsatt hjørne)
CurrentInformationOnImage=Informasjon om gjeldende bilde
YouReceiveMailBecauseOfNotification=Du mottar denne meldingen fordi din e-post har blitt lagt til listen over mål for å bli informert om spesielle hendelser i %s programvare av %s.
YouReceiveMailBecauseOfNotification2=Denne hendelsen er følgende:
ExternalSites=Eksterne nettsteder
Notify_ORDER_VALIDATE=Bestelling van de klant gevalideerd
Notify_PROPAL_VALIDATE=Klant voorstel gevalideerd
PredefinedMailTest=Dit is een test e-mail. \ NDe twee lijnen worden gescheiden door een harde return.
PredefinedMailTestHtml=Dit is een <b>test</b> e-mail (het woord test moet worden in het vet). <br> De twee lijnen worden gescheiden door een harde return.
CalculatedWeight=Berekend gewicht
CalculatedVolume=Berekende volume
Length=Lengte
LengthUnitm=m
LengthUnitdm=dm
LengthUnitcm=cm
LengthUnitmm=mm
Surface=Gebied
SurfaceUnitm2=m2
SurfaceUnitdm2=dm2
SurfaceUnitcm2=cm2
SurfaceUnitmm2=mm2
EMailTextProposalValidated=Het voorstel is gevalideerd %s.
EMailTextOrderValidated=De volgorde %s is gevalideerd.
ResizeDesc=Voer een nieuwe breedte <b>of</b> hoogte van nieuwe. Ratio zullen worden gehouden gedurende resizen ...
NewLength=Nieuwe breedte
NewHeight=Nieuwe hoogte
NewSizeAfterCropping=Nieuwe grootte na bijsnijden
DefineNewAreaToPick=Definieer nieuwe ruimte op de afbeelding om uit te kiezen (klik links op de afbeelding en sleep totdat u bij de tegenoverliggende hoek)
CurrentInformationOnImage=Informatie over de huidige afbeelding
YouReceiveMailBecauseOfNotification=U ontvangt dit bericht omdat uw e-mail is toegevoegd aan de lijst van doelstellingen te worden geïnformeerd over bepaalde gebeurtenissen in de software van %s %s.
YouReceiveMailBecauseOfNotification2=Dit evenement is de volgende:
ExternalSites=Externe sites
CalculatedWeight=Berekend gewicht
CalculatedVolume=Berekende volume
YouReceiveMailBecauseOfNotification=U ontvangt dit bericht omdat uw e-mail is toegevoegd aan de lijst van doelstellingen te worden geïnformeerd over bepaalde gebeurtenissen in de software van %s %s.
YouReceiveMailBecauseOfNotification2=Dit evenement is de volgende:
Notify_ORDER_VALIDATE=Aby Klient zatwierdzone
Notify_PROPAL_VALIDATE=wniosek Klienta zatwierdzone
PredefinedMailTest=To jest test mail. Czeka na zatwierdzenie nowego dwie linie oddzielone są znakiem powrotu karetki.
PredefinedMailTestHtml=To jest mail <b>do badań</b> (test słowa muszą być pogrubione). <br> Dwie linie oddzielone są znakiem powrotu karetki.
CalculatedWeight=Oblicza masy
CalculatedVolume=Objętości
Length=Długość
LengthUnitm=m
LengthUnitdm=dm
LengthUnitcm=cm
LengthUnitmm=mm
Surface=Obszar
SurfaceUnitm2=m2
SurfaceUnitdm2=dm2
SurfaceUnitcm2=cm2
SurfaceUnitmm2=mm2
NumberOfUnitsProposals=Liczba jednostek na propozycje dotyczące ostatnich 12 miesięcy
EMailTextProposalValidated=%s wniosek został zatwierdzony.
EMailTextOrderValidated=Aby %s został zatwierdzony.
ResizeDesc=Wpisz nową szerokość <b>lub</b> nowy wysokości. Stosunek będą przechowywane w zmianie rozmiaru ...
NewLength=Nowa szerokość
NewHeight=Nowa wysokość
NewSizeAfterCropping=Nowy rozmiar po przycięciu
DefineNewAreaToPick=Określenia nowego obszaru na zdjęcie, aby wybrać (z lewej kliknąć na zdjęcie, a następnie przeciągnąć aż do przeciwnego rogu)
CurrentInformationOnImage=Informacje na temat bieżącego obrazu
YouReceiveMailBecauseOfNotification=Pojawieniu się tego komunikatu, ponieważ e-mail został dodany do listy celów do informacji o wydarzeniach w szczególności z %s %s oprogramowania.
YouReceiveMailBecauseOfNotification2=To wydarzenie jest następujące:
ExternalSites=tereny zewnętrzne
Notify_ORDER_VALIDATE=ordem do cliente validado
Notify_PROPAL_VALIDATE=proposta do cliente validado
PredefinedMailTest=Este é um mail de teste. \ NO duas linhas são separadas por um retorno de carro.
PredefinedMailTestHtml=Este é um mail <b>de teste</b> (o teste da Palavra deve ser em negrito). <br> As duas linhas são separadas por um retorno de carro.
CalculatedWeight=peso calculado
CalculatedVolume=volume calculado
Length=Comprimento
LengthUnitm=m
LengthUnitdm=dm
LengthUnitcm=centímetros
LengthUnitmm=milímetro
Surface=Área
SurfaceUnitm2=m2
SurfaceUnitdm2=dm2
SurfaceUnitcm2=cm2
SurfaceUnitmm2=mm2
EMailTextProposalValidated=A proposta %s foi validado.
EMailTextOrderValidated=A ordem %s foi validado.
ResizeDesc=Digite nova largura <b>ou</b> altura de novo. Razão será mantido durante o redimensionamento ...
NewLength=largura Novo
NewHeight=Nova altura
NewSizeAfterCropping=Novo tamanho após a colheita
DefineNewAreaToPick=Definir nova área na imagem para escolher (clique na imagem à esquerda, em seguida, arrastar até chegar ao canto oposto)
CurrentInformationOnImage=Informações sobre a imagem atual
YouReceiveMailBecauseOfNotification=Você receberá esta mensagem porque seu e-mail foi adicionado à lista de alvos a ser informado dos acontecimentos em particular do software %s %s.
YouReceiveMailBecauseOfNotification2=Este evento é o seguinte:
ExternalSites=Sites externos
Notify_ORDER_VALIDATE=Клиент для проверки
Notify_PROPAL_VALIDATE=Клиент предложение проверки
PredefinedMailTest=Это тест почты. \ NЭтот две строки, разделенные символом возврата каретки.
PredefinedMailTestHtml=Это <b>тест</b> почты (слово "испытание должно быть жирным шрифтом). <br> 2 линии разделяются символом возврата каретки.
CalculatedWeight=Расчетный вес
CalculatedVolume=Расчетный объем
Length=Длина
LengthUnitm=метр
LengthUnitdm=дм
LengthUnitcm=см
LengthUnitmm=мм
Surface=Площадь
SurfaceUnitm2=м2
SurfaceUnitdm2=DM2
SurfaceUnitcm2=см2
SurfaceUnitmm2=мм2
NumberOfUnitsProposals=Количество единиц по предложениям за последние 12 месяцев
EMailTextProposalValidated=Предложение %s была утверждена.
EMailTextOrderValidated=Для %s была утверждена.
ResizeDesc=Введите новые значения ширины <b>или</b> новые высоты. Отношение будут храниться в течение размера ...
NewLength=Новая ширина
NewHeight=Новая высота
NewSizeAfterCropping=Новый размер после обрезания
DefineNewAreaToPick=Определить новые области на изображение, чтобы получить (левой кнопкой мыши на изображении, а затем перетащить пока не дойдете до противоположного угла)
CurrentInformationOnImage=Информация о текущем изображении
YouReceiveMailBecauseOfNotification=Это сообщение появляется, потому что ваше сообщение было добавлено в список целей, которые должны быть проинформированы о конкретных мероприятий в %s программного обеспечения %s.
YouReceiveMailBecauseOfNotification2=Это событие имеет следующий вид:
ExternalSites=На внешних сайтах
Notify_ORDER_VALIDATE=Stranka da potrdijo
Notify_PROPAL_VALIDATE=Customer predlogu potrjene
CalculatedWeight=Izračuna masa
CalculatedVolume=Izračuna prostornine
Length=Dolžina
LengthUnitm=m
LengthUnitdm=dm
LengthUnitcm=cm
LengthUnitmm=mm
Surface=Območje
SurfaceUnitm2=m2
SurfaceUnitdm2=dm2
SurfaceUnitcm2=cm2
SurfaceUnitmm2=mm2
EMailTextProposalValidated=Predlog je bil %s potrjena.
EMailTextOrderValidated=Da %s je bila potrjena.
ResizeDesc=Vnesite novo širino <b>ali</b> nove višine. Razmerje se bo še naprej v velikosti ...
NewLength=New širina
NewHeight=New višina
NewSizeAfterCropping=New velikosti po obrezovanje
DefineNewAreaToPick=Določite novo področje na sliko za pick (levi klik na sliko nato povlecite, dokler ne dosežete nasprotnem kotu)
CurrentInformationOnImage=Informacije o trenutni sliki
YouReceiveMailBecauseOfNotification=Prikaže se to sporočilo, ker je bil vaš e-poštni doda na seznam ciljev do obveščenosti določene prireditve v programsko opremo za %s %s.
YouReceiveMailBecauseOfNotification2=Ta dogodek je naslednji:
ExternalSites=Zunanjih spletnih mest
Notify_ORDER_VALIDATE=Müşteri sipariş onaylandı
Notify_PROPAL_VALIDATE=Müşteri öneri onaylandı
CalculatedWeight=Hesaplanan ağırlık
CalculatedVolume=Hesaplanan hacim
Length=Uzunluk
LengthUnitm=m
LengthUnitdm=dm
LengthUnitcm=cm
LengthUnitmm=mm
Surface=Alan
SurfaceUnitm2=m2
SurfaceUnitdm2=dm2
SurfaceUnitcm2=cm2
SurfaceUnitmm2=mm2
EMailTextProposalValidated=Teklif Ssss doğrulanmıştır.
EMailTextOrderValidated=Sipariş Ssss doğrulanmıştır.
ResizeDesc=yükseklik <b>OR</b> yeni genişliğini girin yeni. Oranı boyutlandırma sırasında tutulacak ...
NewLength=Yeni genişliği
NewHeight=Yeni yükseklik
NewSizeAfterCropping=kırpma sonra yeni boyut
DefineNewAreaToPick=Resmi tanımlayın yeni bir alan (resmine sonra ters köşe ulaşana kadar sürükleyin) sol klik almak için
CurrentInformationOnImage=Geçerli görüntüye Bilgiler
YouReceiveMailBecauseOfNotification=E-posta hedef listesine Ssss of Ssss yazılımı içine belirli olaylar konusunda bilgi sahibi olmak eklenmiş çünkü bu mesajı alırsınız.
YouReceiveMailBecauseOfNotification2=Bu olay şudur:
ExternalSites=Harici siteler
CalculatedWeight=计算重量
CalculatedVolume=计算量
// STOP - Lines generated via autotranslator.php tool (2010-07-17 12:40:30).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
@@ -402,32 +204,32 @@ SizeUnitinch=英寸
SizeUnitfoot=脚
ImageEditor=图像编辑器
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:57:19).
// START - Lines generated via autotranslator.php tool (2011-10-10 02:45:33).
// Reference language: en_US -> zh_CN
ToolsDesc=这个区域是专门用于杂项工具组到其他菜单项。 <br><br>这些工具可以达到从侧面菜单。
Notify_WITHDRAW_TRANSMIT=传输撤军
Notify_BILL_PAYED=客户发票payed
Notify_BILL_CANCEL=客户发票取消
Notify_BILL_SENTBYMAIL=通过邮件发送的客户发票
Notify_ORDER_SUPPLIER_VALIDATE=供应商为了验证
Notify_ORDER_SUPPLIER_SENTBYMAIL=通过邮件发送的供应商的订单
Notify_BILL_SUPPLIER_VALIDATE=供应商发票验证
Notify_BILL_SUPPLIER_PAYED=供应商发票payed
Notify_BILL_SUPPLIER_SENTBYMAIL=通过邮件发送的供应商发票
Notify_CONTRACT_VALIDATE=合同验证
Notify_FICHEINTER_VALIDATE=干预验证
Notify_MEMBER_DELETE=会员删除
PredefinedMailContentSendSupplierInvoice=你会发现这里的发票__FACREF__ \n\nSincerely \n\n
PredefinedMailContentSendShipping=你会发现这里的航运__SHIPPINGREF__ \n\nSincerely \n\n
PredefinedMailContentSendFichInter=你会发现这里的干预__FICHINTERREF__ \n\nSincerely \n\n
Top=顶部
Bottom=底部的
Left=左
Right=右键
ThisIsListOfModules=这是一个模块,此演示配置文件(只有最常见的模块在此演示中看到)预选名单。编辑本有一个更个性化的演示,并点击“开始”。
ClickHere=点击这里
FileIsTooBig=文件过大
Export=出口
// STOP - Lines generated via autotranslator.php tool (2011-10-10 05:16:51).
// START - Lines generated via autotranslator.php tool (2011-10-10 02:45:33).
// Reference language: en_US -> zh_CN
ToolsDesc=这个区域是专门用于杂项工具组到其他菜单项。 <br><br>这些工具可以达到从侧面菜单。
Notify_WITHDRAW_TRANSMIT=传输撤军
Notify_BILL_PAYED=客户发票payed
Notify_BILL_CANCEL=客户发票取消
Notify_BILL_SENTBYMAIL=通过邮件发送的客户发票
Notify_ORDER_SUPPLIER_VALIDATE=供应商为了验证
Notify_ORDER_SUPPLIER_SENTBYMAIL=通过邮件发送的供应商的订单
Notify_BILL_SUPPLIER_VALIDATE=供应商发票验证
Notify_BILL_SUPPLIER_PAYED=供应商发票payed
Notify_BILL_SUPPLIER_SENTBYMAIL=通过邮件发送的供应商发票
Notify_CONTRACT_VALIDATE=合同验证
Notify_FICHEINTER_VALIDATE=干预验证
Notify_MEMBER_DELETE=会员删除
PredefinedMailContentSendSupplierInvoice=你会发现这里的发票__FACREF__ \n\nSincerely \n\n
PredefinedMailContentSendShipping=你会发现这里的航运__SHIPPINGREF__ \n\nSincerely \n\n
PredefinedMailContentSendFichInter=你会发现这里的干预__FICHINTERREF__ \n\nSincerely \n\n
Top=顶部
Bottom=底部的
Left=左
Right=右键
ThisIsListOfModules=这是一个模块,此演示配置文件(只有最常见的模块在此演示中看到)预选名单。编辑本有一个更个性化的演示,并点击“开始”。
ClickHere=点击这里
FileIsTooBig=文件过大
Export=出口
// STOP - Lines generated via autotranslator.php tool (2011-10-10 05:16:51).

View File

@@ -79,7 +79,7 @@ ContractNotRunning=该合同未运行
ErrorProductAlreadyExists=一个产品的参考s已经存在。
ErrorProductBadRefOrLabel=错误的价值参考或标签。
Suppliers=供应商
SupplierRef=供应商参考。
SupplierRef=供应商代号:
ShowProduct=显示产品
ShowService=显示服务
ProductsAndServicesArea=产品和服务领域
@@ -164,15 +164,15 @@ NewRefForClone=号。新产品/服务
CustomerPrices=客户价格
SuppliersPrices=供应商的价格
// STOP - Lines generated via autotranslator.php tool (2010-06-08 21:22:55).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
Sell=销售
Buy=采购
OnBuy=购买
ProductStatusOnBuy=可用的
ProductStatusNotOnBuy=过时的
ProductStatusOnBuyShort=可用的
ProductStatusNotOnBuyShort=过时的
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:36:40).
// START - Lines generated via autotranslator.php tool (2010-09-04 01:33:40).
// Reference language: en_US -> zh_CN
Sell=销售
Buy=采购
OnBuy=购买
ProductStatusOnBuy=可用的
ProductStatusNotOnBuy=过时的
ProductStatusOnBuyShort=可用的
ProductStatusNotOnBuyShort=过时的
// STOP - Lines generated via autotranslator.php tool (2010-09-04 01:36:40).

View File

@@ -51,11 +51,11 @@ QtyDispatched=派出数量
OrderDispatch=联合调度
RuleForStockManagementDecrease=为减少库存管理规则
RuleForStockManagementIncrease=增加的库存管理规则
DeStockOnBill=减少对客户的实际库存发票/信用票据验证
DeStockOnValidateOrder=减少对客户的订单确认
DeStockOnBill=减少对客户的实际库存发票/信用票据验证警告在此版本它只有在仓库数1股票被修改
DeStockOnValidateOrder=减少对客户的订单确认警告在此版本中真正的股票它只有在仓库数1股票被修改
DeStockOnShipment=减少对实际装运验证股票(推荐)
ReStockOnBill=增加对供应商发票的实际库存/信用票据验证
ReStockOnValidateOrder=对供应商的订单增加赞许
ReStockOnBill=增加对供应商发票的实际库存/信用票据验证警告在此版本中它只有在仓库数1股票被修改
ReStockOnValidateOrder=对供应商的订单增加赞许警告在此版本中真正的股票它只有在仓库数1股票被修改
ReStockOnDispatchOrder=增加人工调度到仓库供应商接到订单后,实时股票
OrderStatusNotReadyToDispatch=命令还没有或根本没有更多的地位,使产品在仓库库存调度。
StockDiffPhysicTeoric=股票差异的原因和理论物理