Fix: convert line delimiters
This commit is contained in:
parent
446a81b4c4
commit
d705995a49
@ -56,9 +56,9 @@ print $langs->trans("SetupDescription2")."<br><br>";
|
|||||||
print '<br>';
|
print '<br>';
|
||||||
//print '<hr style="color: #DDDDDD;">';
|
//print '<hr style="color: #DDDDDD;">';
|
||||||
print img_picto('','puce').' '.$langs->trans("SetupDescription3",DOL_URL_ROOT.'/admin/company.php?mainmenu=home');
|
print img_picto('','puce').' '.$langs->trans("SetupDescription3",DOL_URL_ROOT.'/admin/company.php?mainmenu=home');
|
||||||
if (empty($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_PAYS))
|
if (empty($conf->global->MAIN_INFO_SOCIETE_NOM) || empty($conf->global->MAIN_INFO_SOCIETE_PAYS))
|
||||||
{
|
{
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$warnpicto=img_warning($langs->trans("WarningMandatorySetupNotComplete"));
|
$warnpicto=img_warning($langs->trans("WarningMandatorySetupNotComplete"));
|
||||||
print '<br><a href="'.DOL_URL_ROOT.'/admin/company.php?mainmenu=home">'.$warnpicto.' '.$langs->trans("WarningMandatorySetupNotComplete").'</a>';
|
print '<br><a href="'.DOL_URL_ROOT.'/admin/company.php?mainmenu=home">'.$warnpicto.' '.$langs->trans("WarningMandatorySetupNotComplete").'</a>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -776,8 +776,8 @@ if ($id > 0)
|
|||||||
{
|
{
|
||||||
if ($user->rights->facture->creer)
|
if ($user->rights->facture->creer)
|
||||||
{
|
{
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
|
|
||||||
if (! empty($conf->commande->enabled))
|
if (! empty($conf->commande->enabled))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -627,9 +627,9 @@ if ($action == 'create')
|
|||||||
|
|
||||||
print '<tr><td>'.$langs->trans("NotePublic").'</td><td valign="top">';
|
print '<tr><td>'.$langs->trans("NotePublic").'</td><td valign="top">';
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||||
$doleditor=new DolEditor('note_public', GETPOST('note_public'), '', '100', 'dolibarr_notes', 'In', 1, true, true, ROWS_3, 70);
|
$doleditor=new DolEditor('note_public', GETPOST('note_public'), '', '100', 'dolibarr_notes', 'In', 1, true, true, ROWS_3, 70);
|
||||||
print $doleditor->Create(1);
|
print $doleditor->Create(1);
|
||||||
/*
|
/*
|
||||||
print '<textarea name="note_public" wrap="soft" cols="70" rows="'.ROWS_3.'">';
|
print '<textarea name="note_public" wrap="soft" cols="70" rows="'.ROWS_3.'">';
|
||||||
print GETPOST("note_public");
|
print GETPOST("note_public");
|
||||||
@ -639,9 +639,9 @@ if ($action == 'create')
|
|||||||
if (! $user->societe_id)
|
if (! $user->societe_id)
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans("NotePrivate").'</td><td valign="top">';
|
print '<tr><td>'.$langs->trans("NotePrivate").'</td><td valign="top">';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
|
||||||
$doleditor=new DolEditor('note', GETPOST('note'), '', '100', 'dolibarr_notes', 'In', 1, true, true, ROWS_3, 70);
|
$doleditor=new DolEditor('note', GETPOST('note'), '', '100', 'dolibarr_notes', 'In', 1, true, true, ROWS_3, 70);
|
||||||
print $doleditor->Create(1);
|
print $doleditor->Create(1);
|
||||||
/*
|
/*
|
||||||
print '<textarea name="note" wrap="soft" cols="70" rows="'.ROWS_3.'">';
|
print '<textarea name="note" wrap="soft" cols="70" rows="'.ROWS_3.'">';
|
||||||
print GETPOST("note");
|
print GETPOST("note");
|
||||||
|
|||||||
@ -133,31 +133,31 @@ class modStock extends DolibarrModules
|
|||||||
$this->export_sql_end[$r] .=' AND e.entity = '.$conf->entity;
|
$this->export_sql_end[$r] .=' AND e.entity = '.$conf->entity;
|
||||||
|
|
||||||
|
|
||||||
// Imports
|
// Imports
|
||||||
//--------
|
//--------
|
||||||
|
|
||||||
$r=0;
|
$r=0;
|
||||||
|
|
||||||
$r++;
|
$r++;
|
||||||
$this->import_code[$r]=$this->rights_class.'_'.$r;
|
$this->import_code[$r]=$this->rights_class.'_'.$r;
|
||||||
$this->import_label[$r]="Warehouses"; // Translation key
|
$this->import_label[$r]="Warehouses"; // Translation key
|
||||||
$this->import_icon[$r]=$this->picto;
|
$this->import_icon[$r]=$this->picto;
|
||||||
$this->import_entities_array[$r]=array(); // We define here only fields that use another icon that the one defined into import_icon
|
$this->import_entities_array[$r]=array(); // We define here only fields that use another icon that the one defined into import_icon
|
||||||
$this->import_tables_array[$r]=array('e'=>MAIN_DB_PREFIX.'entrepot');
|
$this->import_tables_array[$r]=array('e'=>MAIN_DB_PREFIX.'entrepot');
|
||||||
$this->import_tables_creator_array[$r]=array('e'=>'fk_user_author');
|
$this->import_tables_creator_array[$r]=array('e'=>'fk_user_author');
|
||||||
$this->import_fields_array[$r]=array('e.label'=>"LocationSummary*",
|
$this->import_fields_array[$r]=array('e.label'=>"LocationSummary*",
|
||||||
'e.description'=>"DescWareHouse",'e.lieu'=>"LieuWareHouse",
|
'e.description'=>"DescWareHouse",'e.lieu'=>"LieuWareHouse",
|
||||||
'e.address'=>"Address",'e.cp'=>'Zip','e.fk_pays'=>'CountryCode',
|
'e.address'=>"Address",'e.cp'=>'Zip','e.fk_pays'=>'CountryCode',
|
||||||
'e.statut'=>'Status'
|
'e.statut'=>'Status'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->import_convertvalue_array[$r]=array(
|
$this->import_convertvalue_array[$r]=array(
|
||||||
'e.fk_pays'=>array('rule'=>'fetchidfromcodeid','classfile'=>'/core/class/cpays.class.php','class'=>'Cpays','method'=>'fetch','dict'=>'DictionnaryCountry')
|
'e.fk_pays'=>array('rule'=>'fetchidfromcodeid','classfile'=>'/core/class/cpays.class.php','class'=>'Cpays','method'=>'fetch','dict'=>'DictionnaryCountry')
|
||||||
);
|
);
|
||||||
$this->import_regex_array[$r]=array('e.statut'=>'^[0|1]');
|
$this->import_regex_array[$r]=array('e.statut'=>'^[0|1]');
|
||||||
$this->import_examplevalues_array[$r]=array('e.label'=>"ALM001",
|
$this->import_examplevalues_array[$r]=array('e.label'=>"ALM001",
|
||||||
'e.description'=>"Central Warehouse",'e.lieu'=>"Central",
|
'e.description'=>"Central Warehouse",'e.lieu'=>"Central",
|
||||||
'e.address'=>"Route 66",'e.cp'=>'28080','e.fk_pays'=>'US',
|
'e.address'=>"Route 66",'e.cp'=>'28080','e.fk_pays'=>'US',
|
||||||
'e.statut'=>'1');
|
'e.statut'=>'1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -404,9 +404,9 @@ if ($object->fetch($id))
|
|||||||
show_contacts($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?id='.$object->id);
|
show_contacts($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?id='.$object->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Addresses list
|
// Addresses list
|
||||||
if (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) && ! empty($conf->global->MAIN_REPEATADDRESSONEACHTAB))
|
if (! empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) && ! empty($conf->global->MAIN_REPEATADDRESSONEACHTAB))
|
||||||
{
|
{
|
||||||
$result=show_addresses($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
|
$result=show_addresses($conf,$langs,$db,$object,$_SERVER["PHP_SELF"].'?socid='.$object->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -209,8 +209,8 @@ class Entrepot extends CommonObject
|
|||||||
// Update denormalized fields because we change content of produt_stock
|
// Update denormalized fields because we change content of produt_stock
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."product p SET p.stock= (SELECT SUM(ps.reel) FROM ".MAIN_DB_PREFIX."product_stock ps WHERE ps.fk_product = p.rowid)";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."product p SET p.stock= (SELECT SUM(ps.reel) FROM ".MAIN_DB_PREFIX."product_stock ps WHERE ps.fk_product = p.rowid)";
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::delete sql=".$sql);
|
dol_syslog(get_class($this)."::delete sql=".$sql);
|
||||||
$resql2=$this->db->query($sql);
|
$resql2=$this->db->query($sql);
|
||||||
|
|
||||||
if ($resql1 && $resql2)
|
if ($resql1 && $resql2)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -194,8 +194,8 @@ class MouvementStock
|
|||||||
{
|
{
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."product SET pmp = ".$newpmp.", stock = ".$this->db->ifsql("stock IS NULL", 0, "stock") . " + ".$qty;
|
$sql = "UPDATE ".MAIN_DB_PREFIX."product SET pmp = ".$newpmp.", stock = ".$this->db->ifsql("stock IS NULL", 0, "stock") . " + ".$qty;
|
||||||
$sql.= " WHERE rowid = ".$fk_product;
|
$sql.= " WHERE rowid = ".$fk_product;
|
||||||
// May be this request is better:
|
// May be this request is better:
|
||||||
// UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps WHERE ps.fk_product = p.rowid);
|
// UPDATE llx_product p SET p.stock= (SELECT SUM(ps.reel) FROM llx_product_stock ps WHERE ps.fk_product = p.rowid);
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::_create sql=".$sql);
|
dol_syslog(get_class($this)."::_create sql=".$sql);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user