Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
584027dd05
@ -546,6 +546,7 @@ class Propal extends CommonObject
|
|||||||
$this->line->label = $label;
|
$this->line->label = $label;
|
||||||
$this->line->desc = $desc;
|
$this->line->desc = $desc;
|
||||||
$this->line->qty = $qty;
|
$this->line->qty = $qty;
|
||||||
|
$this->line->product_type = $type;
|
||||||
$this->line->tva_tx = $txtva;
|
$this->line->tva_tx = $txtva;
|
||||||
$this->line->localtax1_tx = $txlocaltax1;
|
$this->line->localtax1_tx = $txlocaltax1;
|
||||||
$this->line->localtax2_tx = $txlocaltax2;
|
$this->line->localtax2_tx = $txlocaltax2;
|
||||||
@ -2783,7 +2784,7 @@ class PropaleLigne extends CommonObject
|
|||||||
$sql.= ' pd.info_bits, pd.total_ht, pd.total_tva, pd.total_ttc, pd.fk_product_fournisseur_price as fk_fournprice, pd.buy_price_ht as pa_ht, pd.special_code, pd.rang,';
|
$sql.= ' pd.info_bits, pd.total_ht, pd.total_tva, pd.total_ttc, pd.fk_product_fournisseur_price as fk_fournprice, pd.buy_price_ht as pa_ht, pd.special_code, pd.rang,';
|
||||||
$sql.= ' pd.localtax1_tx, pd.localtax2_tx, pd.total_localtax1, pd.total_localtax2,';
|
$sql.= ' pd.localtax1_tx, pd.localtax2_tx, pd.total_localtax1, pd.total_localtax2,';
|
||||||
$sql.= ' p.ref as product_ref, p.label as product_label, p.description as product_desc,';
|
$sql.= ' p.ref as product_ref, p.label as product_label, p.description as product_desc,';
|
||||||
$sql.= ' pd.date_start, pd.date_end';
|
$sql.= ' pd.date_start, pd.date_end, pd.product_type';
|
||||||
$sql.= ' FROM '.MAIN_DB_PREFIX.'propaldet as pd';
|
$sql.= ' FROM '.MAIN_DB_PREFIX.'propaldet as pd';
|
||||||
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON pd.fk_product = p.rowid';
|
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON pd.fk_product = p.rowid';
|
||||||
$sql.= ' WHERE pd.rowid = '.$rowid;
|
$sql.= ' WHERE pd.rowid = '.$rowid;
|
||||||
@ -2820,6 +2821,7 @@ class PropaleLigne extends CommonObject
|
|||||||
$this->marque_tx = $marginInfos[2];
|
$this->marque_tx = $marginInfos[2];
|
||||||
|
|
||||||
$this->special_code = $objp->special_code;
|
$this->special_code = $objp->special_code;
|
||||||
|
$this->product_type = $objp->product_type;
|
||||||
$this->rang = $objp->rang;
|
$this->rang = $objp->rang;
|
||||||
|
|
||||||
$this->ref = $objp->product_ref; // deprecated
|
$this->ref = $objp->product_ref; // deprecated
|
||||||
@ -3054,6 +3056,7 @@ class PropaleLigne extends CommonObject
|
|||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."propaldet SET";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."propaldet SET";
|
||||||
$sql.= " description='".$this->db->escape($this->desc)."'";
|
$sql.= " description='".$this->db->escape($this->desc)."'";
|
||||||
$sql.= " , label=".(! empty($this->label)?"'".$this->db->escape($this->label)."'":"null");
|
$sql.= " , label=".(! empty($this->label)?"'".$this->db->escape($this->label)."'":"null");
|
||||||
|
$sql.= " , product_type=".$this->product_type;
|
||||||
$sql.= " , tva_tx='".price2num($this->tva_tx)."'";
|
$sql.= " , tva_tx='".price2num($this->tva_tx)."'";
|
||||||
$sql.= " , localtax1_tx=".price2num($this->localtax1_tx);
|
$sql.= " , localtax1_tx=".price2num($this->localtax1_tx);
|
||||||
$sql.= " , localtax2_tx=".price2num($this->localtax2_tx);
|
$sql.= " , localtax2_tx=".price2num($this->localtax2_tx);
|
||||||
|
|||||||
@ -1259,7 +1259,7 @@ class Form
|
|||||||
* Return list of products for customer in Ajax if Ajax activated or go to select_produits_list
|
* Return list of products for customer in Ajax if Ajax activated or go to select_produits_list
|
||||||
*
|
*
|
||||||
* @param int $selected Preselected products
|
* @param int $selected Preselected products
|
||||||
* @param string $htmlname Name of HTML seletc field (must be unique in page)
|
* @param string $htmlname Name of HTML select field (must be unique in page)
|
||||||
* @param int $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
|
* @param int $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
|
||||||
* @param int $limit Limit on number of returned lines
|
* @param int $limit Limit on number of returned lines
|
||||||
* @param int $price_level Level of price to show
|
* @param int $price_level Level of price to show
|
||||||
@ -1268,7 +1268,7 @@ class Form
|
|||||||
* @param string $selected_input_value Value of preselected input text (with ajax)
|
* @param string $selected_input_value Value of preselected input text (with ajax)
|
||||||
* @param int $hidelabel Hide label (0=no, 1=yes, 2=show search icon (before) and placeholder, 3 search icon after)
|
* @param int $hidelabel Hide label (0=no, 1=yes, 2=show search icon (before) and placeholder, 3 search icon after)
|
||||||
* @param array $ajaxoptions Options for ajax_autocompleter
|
* @param array $ajaxoptions Options for ajax_autocompleter
|
||||||
* @param int $socid Thridparty Id
|
* @param int $socid Thirdparty Id
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function select_produits($selected='', $htmlname='productid', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(),$socid=0)
|
function select_produits($selected='', $htmlname='productid', $filtertype='', $limit=20, $price_level=0, $status=1, $finished=2, $selected_input_value='', $hidelabel=0, $ajaxoptions=array(),$socid=0)
|
||||||
@ -1320,13 +1320,13 @@ class Form
|
|||||||
* @param int $selected Preselected product
|
* @param int $selected Preselected product
|
||||||
* @param string $htmlname Name of select html
|
* @param string $htmlname Name of select html
|
||||||
* @param string $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
|
* @param string $filtertype Filter on product type (''=nofilter, 0=product, 1=service)
|
||||||
* @param int $limit Limite sur le nombre de lignes retournees
|
* @param int $limit Limit on number of returned lines
|
||||||
* @param int $price_level Level of price to show
|
* @param int $price_level Level of price to show
|
||||||
* @param string $filterkey Filter on product
|
* @param string $filterkey Filter on product
|
||||||
* @param int $status -1=Return all products, 0=Products not on sell, 1=Products on sell
|
* @param int $status -1=Return all products, 0=Products not on sell, 1=Products on sell
|
||||||
* @param int $finished Filter on finished field: 2=No filter
|
* @param int $finished Filter on finished field: 2=No filter
|
||||||
* @param int $outputmode 0=HTML select string, 1=Array
|
* @param int $outputmode 0=HTML select string, 1=Array
|
||||||
* @param int $socid Thridparty Id
|
* @param int $socid Thirdparty Id
|
||||||
* @return array Array of keys for json
|
* @return array Array of keys for json
|
||||||
*/
|
*/
|
||||||
function select_produits_list($selected='',$htmlname='productid',$filtertype='',$limit=20,$price_level=0,$filterkey='',$status=1,$finished=2,$outputmode=0,$socid=0)
|
function select_produits_list($selected='',$htmlname='productid',$filtertype='',$limit=20,$price_level=0,$filterkey='',$status=1,$finished=2,$outputmode=0,$socid=0)
|
||||||
|
|||||||
@ -42,6 +42,7 @@ class FactureFournisseur extends CommonInvoice
|
|||||||
public $fk_element='fk_facture_fourn';
|
public $fk_element='fk_facture_fourn';
|
||||||
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
protected $ismultientitymanaged = 1; // 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||||
|
|
||||||
|
var $rowid;
|
||||||
var $ref;
|
var $ref;
|
||||||
var $product_ref;
|
var $product_ref;
|
||||||
var $ref_supplier;
|
var $ref_supplier;
|
||||||
|
|||||||
@ -112,6 +112,7 @@ ReplenishmentOrdersDesc=This is list of all opened supplier orders
|
|||||||
Replenishments=Replenishments
|
Replenishments=Replenishments
|
||||||
NbOfProductBeforePeriod=Quantity of product %s in stock before selected period (< %s)
|
NbOfProductBeforePeriod=Quantity of product %s in stock before selected period (< %s)
|
||||||
NbOfProductAfterPeriod=Quantity of product %s in stock after selected period (> %s)
|
NbOfProductAfterPeriod=Quantity of product %s in stock after selected period (> %s)
|
||||||
|
MassMovement=Mass movement
|
||||||
MassStockMovement=Mass stock movement
|
MassStockMovement=Mass stock movement
|
||||||
SelectProductInAndOutWareHouse=Select a product, a quantity, a source warehouse and a target warehouse, then click "%s". Once this is done for all required movements, click onto "%s".
|
SelectProductInAndOutWareHouse=Select a product, a quantity, a source warehouse and a target warehouse, then click "%s". Once this is done for all required movements, click onto "%s".
|
||||||
RecordMovement=Record transfert
|
RecordMovement=Record transfert
|
||||||
|
|||||||
@ -28,8 +28,10 @@ ProductsAndServicesStatistics=Statistiques produits et services
|
|||||||
ProductsStatistics=Statistiques produits
|
ProductsStatistics=Statistiques produits
|
||||||
ProductsOnSell=Produits en vente ou en achat
|
ProductsOnSell=Produits en vente ou en achat
|
||||||
ProductsNotOnSell=Produits hors vente et hors achat
|
ProductsNotOnSell=Produits hors vente et hors achat
|
||||||
|
ProductsOnSellAndOnBuy=Produits en vente et en achat
|
||||||
ServicesOnSell=Services en vente ou en achat
|
ServicesOnSell=Services en vente ou en achat
|
||||||
ServicesNotOnSell=Services hors vente et hors achat
|
ServicesNotOnSell=Services hors vente et hors achat
|
||||||
|
ServicesOnSellAndOnBuy=Services en vente et en achat
|
||||||
InternalRef=Référence interne
|
InternalRef=Référence interne
|
||||||
LastRecorded=Derniers produits/services en vente enregistrés
|
LastRecorded=Derniers produits/services en vente enregistrés
|
||||||
LastRecordedProductsAndServices=Les %s derniers produits/services enregistrés
|
LastRecordedProductsAndServices=Les %s derniers produits/services enregistrés
|
||||||
|
|||||||
@ -103,7 +103,7 @@ CurentlyUsingVirtualStock=Stock théorique
|
|||||||
CurentlyUsingPhysicalStock=Stock réel
|
CurentlyUsingPhysicalStock=Stock réel
|
||||||
RuleForStockReplenishment=Règle de gestion du réapprovisionnement des stocks
|
RuleForStockReplenishment=Règle de gestion du réapprovisionnement des stocks
|
||||||
SelectProductWithNotNullQty=Sélectionnez au moins un produit avec une quantité non nulle et un fournisseur
|
SelectProductWithNotNullQty=Sélectionnez au moins un produit avec une quantité non nulle et un fournisseur
|
||||||
AlertOnly= Alertes seulement
|
AlertOnly=Alertes seulement
|
||||||
WarehouseForStockDecrease=L'entrepôt <b>%s</b> sera utilisé pour la décrémentation du stock
|
WarehouseForStockDecrease=L'entrepôt <b>%s</b> sera utilisé pour la décrémentation du stock
|
||||||
WarehouseForStockIncrease=L'entrepôt <b>%s</b> sera utilisé pour l'incrémentation du stock
|
WarehouseForStockIncrease=L'entrepôt <b>%s</b> sera utilisé pour l'incrémentation du stock
|
||||||
ForThisWarehouse=Pour cet entrepôt
|
ForThisWarehouse=Pour cet entrepôt
|
||||||
|
|||||||
@ -265,7 +265,15 @@ print '<tr '.$bc[$var].'>';
|
|||||||
print '<td colspan="2">';
|
print '<td colspan="2">';
|
||||||
$filtertype=0;
|
$filtertype=0;
|
||||||
if (! empty($conf->global->STOCK_SUPPORTS_SERVICES)) $filtertype='';
|
if (! empty($conf->global->STOCK_SUPPORTS_SERVICES)) $filtertype='';
|
||||||
print $form->select_produits($id_product,'productid',$filtertype);
|
if ($conf->global->PRODUIT_LIMIT_SIZE <= 0)
|
||||||
|
{
|
||||||
|
$limit='';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$limit = $conf->global->PRODUIT_LIMIT_SIZE;
|
||||||
|
}
|
||||||
|
print $form->select_produits($id_product,'productid',$filtertype,$limit);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
// In warehouse
|
// In warehouse
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user