diff --git a/htdocs/product/price.php b/htdocs/product/price.php
index 2444fe6468d..a150402cfde 100644
--- a/htdocs/product/price.php
+++ b/htdocs/product/price.php
@@ -499,6 +499,7 @@ if (empty($reshook))
// add price by customer
$prodcustprice->fk_soc = GETPOST('socid', 'int');
+ $prodcustprice->ref_customer = GETPOST('ref_customer', 'alpha');
$prodcustprice->fk_product = $object->id;
$prodcustprice->price = price2num(GETPOST("price"), 'MU');
$prodcustprice->price_min = price2num(GETPOST("price_min"), 'MU');
@@ -600,6 +601,7 @@ if (empty($reshook))
$prodcustprice->fetch(GETPOST('lineid', 'int'));
// update price by customer
+ $prodcustprice->ref_customer = GETPOST('ref_customer', 'alpha');
$prodcustprice->price = price2num(GETPOST("price"), 'MU');
$prodcustprice->price_min = price2num(GETPOST("price_min"), 'MU');
$prodcustprice->price_base_type = GETPOST("price_base_type", 'alpha');
@@ -1662,6 +1664,10 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES))
print '';
print '';
+ // Ref. Customer
+ print '
| ' . $langs->trans('RefCustomer') . ' | ';
+ print ' |
';
+
// VAT
print '| '.$langs->trans("DefaultTaxRate").' | ';
print $form->load_tva("tva_tx", $object->default_vat_code ? $object->tva_tx.' ('.$object->default_vat_code.')' : $object->tva_tx, $mysoc, '', $object->id, $object->tva_npr, $object->type, false, 1);
@@ -1748,6 +1754,10 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES))
print " | ".$staticsoc->getNomUrl(1)." | ";
print '
';
+ // Ref. Customer
+ print '| ' . $langs->trans('RefCustomer') . ' | ';
+ print ' |
';
+
// VAT
print '| '.$langs->trans("DefaultTaxRate").' | ';
print $form->load_tva("tva_tx", $prodcustprice->default_vat_code ? $prodcustprice->tva_tx.' ('.$prodcustprice->default_vat_code.')' : $prodcustprice->tva_tx, $mysoc, '', $object->id, $prodcustprice->recuperableonly, $object->type, false, 1);
diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php
index 2275ab251f7..6d1d08b17b5 100644
--- a/htdocs/societe/price.php
+++ b/htdocs/societe/price.php
@@ -88,6 +88,7 @@ if (empty($reshook))
// add price by customer
$prodcustprice->fk_soc = $socid;
+ $prodcustprice->ref_customer = GETPOST('ref_customer', 'alpha');
$prodcustprice->fk_product = GETPOST('prodid', 'int');
$prodcustprice->price = price2num(GETPOST("price"), 'MU');
$prodcustprice->price_min = price2num(GETPOST("price_min"), 'MU');
@@ -162,6 +163,7 @@ if (empty($reshook))
$update_child_soc = GETPOST('updatechildprice');
// update price by customer
+ $prodcustprice->ref_customer = GETPOST('ref_customer', 'alpha');
$prodcustprice->price = price2num(GETPOST("price"), 'MU');
$prodcustprice->price_min = price2num(GETPOST("price_min"), 'MU');
$prodcustprice->price_base_type = GETPOST("price_base_type", 'alpha');
@@ -294,6 +296,10 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print ' | ';
print '
';
+ // Ref. Customer
+ print '| ' . $langs->trans('RefCustomer') . ' | ';
+ print ' |
';
+
// VAT
print '| '.$langs->trans("VATRate").' | ';
print $form->load_tva("tva_tx", $object->tva_tx, $mysoc, '', $object->id, $object->tva_npr, '', false, 1);
@@ -372,6 +378,10 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print " | ".$staticprod->getNomUrl(1)." | ";
print '
';
+ // Ref. Customer
+ print '| ' . $langs->trans('RefCustomer') . ' | ';
+ print ' |
';
+
// VAT
print '| '.$langs->trans("VATRate").' | ';
print $form->load_tva("tva_tx", $prodcustprice->tva_tx, $mysoc, '', $staticprod->id, $prodcustprice->recuperableonly);
|