Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed Nov 29, 2018
2 parents 10fc014 + 6e21b37 commit 9e20d9e
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 27 deletions.
2 changes: 1 addition & 1 deletion htdocs/admin/salaries.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@

// End of page
llxFooter();
$db->close();;
$db->close();
5 changes: 1 addition & 4 deletions htdocs/comm/propal/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2016-2018 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2017 Charlene Benke <charlie@patas-monkey.com>
* Copyright (C) 2017-2018 Charlene Benke <charlie@patas-monkey.com>
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -175,9 +175,6 @@
}
}

$object = new Propal($db); // To be passed as parameter of executeHooks that need


/*
* Actions
*/
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/localtax/quadri_detail.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@

// Localtax
print '<td class="nowrap" align="right">';
$temp_vat=($local==1?$fields['localtax1']:$fields['localtax2'])*$ratiopaymentinvoice;;
$temp_vat=($local==1?$fields['localtax1']:$fields['localtax2'])*$ratiopaymentinvoice;
print price(price2num($temp_vat,'MT'),1);
//print price($fields['vat']);
print '</td>';
Expand Down
4 changes: 2 additions & 2 deletions htdocs/compta/salaries/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@

if ($cancel)
{
header("Location: index.php");
header("Location: list.php");
exit;
}

Expand Down Expand Up @@ -139,7 +139,7 @@
if ($ret > 0)
{
$db->commit();
header("Location: index.php");
header("Location: list.php");
exit;
}
else
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/actions_extrafields.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

$extrasize=GETPOST('size','int');
$type=GETPOST('type','alpha');
$param=GETPOST('param','alpha');;
$param=GETPOST('param','alpha');

if ($type=='double' && strpos($extrasize,',')===false) $extrasize='24,8';
if ($type=='date') $extrasize='';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ function write_file($object,$outputlangs,$srctemplatepath)
if (!empty($row['thm'])) {
$row['amountht']=($row['task_duration'] / 3600) * $row['thm'];
$defaultvat = get_default_tva($mysoc, $mysoc);
$row['amountttc']=price2num($row['amountht'] * (1 + ($defaultvat / 100)),'MT');;
$row['amountttc']=price2num($row['amountht'] * (1 + ($defaultvat / 100)),'MT');
} else {
$row['amountht']=0;
$row['amountttc']=0;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/stock/doc/pdf_stdmovement.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function __construct($db)
// Define position of columns
$this->wref = 15;
$this->posxidref = $this->marge_gauche;
$this->posxdatemouv = $this->marge_gauche+8;;
$this->posxdatemouv = $this->marge_gauche+8;
$this->posxdesc=37;
$this->posxlabel=50;
$this->posxtva=80;
Expand Down
2 changes: 1 addition & 1 deletion htdocs/emailcollector/class/emailcollectoraction.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class EmailCollectorAction extends CommonObject
*/
public $fields=array(
'rowid' => array('type'=>'integer', 'label'=>'TechnicalID', 'enabled'=>1, 'visible'=>-1, 'position'=>1, 'notnull'=>1, 'index'=>1, 'comment'=>"Id",),
'fk_emailcollector' => array('type'=>'integer', 'label'=>'Id of emailcollector', 'foreignkey'=>'emailcollecotr.rowid'),
'fk_emailcollector' => array('type'=>'integer', 'label'=>'Id of emailcollector', 'foreignkey'=>'emailcollector.rowid'),
'type' => array('type'=>'varchar(128)', 'label'=>'Type', 'enabled'=>1, 'visible'=>1, 'position'=>10, 'notnull'=>1, 'index'=>1),
'actionparam' => array('type'=>'varchar(255)', 'label'=>'ParamForAction', 'enabled'=>1, 'visible'=>1, 'position'=>40, 'notnull'=>-1),
'date_creation' => array('type'=>'datetime', 'label'=>'DateCreation', 'enabled'=>1, 'visible'=>-2, 'position'=>500, 'notnull'=>1,),
Expand Down
1 change: 0 additions & 1 deletion htdocs/fichinter/class/fichinter.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ function create($user, $notrigger=0)
*/
function update($user, $notrigger=0)
{
global $conf;
if (! is_numeric($this->duration)) {
$this->duration = 0;
}
Expand Down
4 changes: 2 additions & 2 deletions htdocs/fourn/facture/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@

// FIXME Missing special_code into addline and updateline methods
$object->special_code = $lines[$i]->special_code;

// FIXME Missing $lines[$i]->ref_supplier and $lines[$i]->label into addline and updateline methods. They are filled when coming from order for example.
$result = $object->addline(
$desc,
Expand Down Expand Up @@ -2717,7 +2717,7 @@

$paymentstatic->id=$objp->rowid;
$paymentstatic->datepaye=$db->jdate($objp->dp);
$paymentstatic->ref=($objp->ref ? $objp->ref : $objp->rowid);;
$paymentstatic->ref=($objp->ref ? $objp->ref : $objp->rowid);
$paymentstatic->num_paiement=$objp->num_paiement;
$paymentstatic->payment_code=$objp->payment_code;

Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/stock/product.php
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@
print '<td align="right">';
if (empty($conf->global->PRODUIT_MULTIPRICES)) print price(price2num($object->price * $obj->reel, 'MT'), 1) . '</td>';
else print $langs->trans("Variable");
print '</tr>';;
print '</tr>';
$total += $obj->reel;
if (price2num($object->pmp)) $totalwithpmp += $obj->reel;
$totalvalue = $totalvalue + ($object->pmp * $obj->reel);
Expand Down
2 changes: 1 addition & 1 deletion htdocs/projet/activity/perday.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@
print '<td class="center"></td>';
print "</tr>\n";

$colspan = 6+(empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT)?0:2);;
$colspan = 6+(empty($conf->global->PROJECT_TIMESHEET_DISABLEBREAK_ON_PROJECT)?0:2);

if ($conf->use_javascript_ajax)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/public/payment/newpayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@
dol_print_error_email('BADREFINPAYMENTFORM', $langs->trans("ErrorBadLinkSourceSetButBadValueForRef", $source, $ref));
// End of page
llxFooter();
$db->close();;
$db->close();
exit;
}

Expand Down
4 changes: 2 additions & 2 deletions htdocs/societe/checkvat/checkVatPopup.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
$vatNumber = preg_replace('/\^\w/', '', $vatNumber);
$countryCode=substr($vatNumber,0,2);
$vatNumber=substr($vatNumber,2);

print '<b>'.$langs->trans("Country").'</b>: '.$countryCode.'<br>';
print '<b>'.$langs->trans("VATIntraShort").'</b>: '.$vatNumber.'<br>';
print '<br>';
Expand Down Expand Up @@ -176,4 +176,4 @@

// End of page
llxFooter();
$db->close();;
$db->close();
6 changes: 3 additions & 3 deletions htdocs/stripe/class/actions_stripe.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* \ingroup stripe
* \brief File Class actionsstripeconnect
*/
require_once DOL_DOCUMENT_ROOT.'/stripe/class/stripe.class.php';;
require_once DOL_DOCUMENT_ROOT.'/stripe/class/stripe.class.php';


$langs->load("stripe@stripe");
Expand All @@ -44,8 +44,8 @@ class ActionsStripeconnect
private $config=array();

// For Hookmanager return
var $resprints;
var $results=array();
public $resprints;
public $results=array();


/**
Expand Down
2 changes: 1 addition & 1 deletion htdocs/takepos/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function Print(id){
function TakeposPrinting(id){
var receipt;
$.get("receipt.php?facid="+id, function(data, status){
receipt=data.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '');;
receipt=data.replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '');
$.ajax({
type: "POST",
url: 'http://<?php print $conf->global->TAKEPOS_PRINT_SERVER;?>:8111/print',
Expand Down
2 changes: 1 addition & 1 deletion htdocs/theme/md/style.css.php
Original file line number Diff line number Diff line change
Expand Up @@ -4705,7 +4705,7 @@

/* Special case for the select2 add widget */
#addbox .select2-container .select2-choice > .select2-chosen, #actionbookmark .select2-container .select2-choice > .select2-chosen {
text-align: <?php echo $left; ?>;;
text-align: <?php echo $left; ?>;
opacity: 0.3;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/user/class/user.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,7 @@ function getNomUrl($withpictoimg=0, $option='', $infologin=0, $notooltip=0, $max
$label.= '<br><b>'.$langs->trans("Browser").':</b> '.$conf->browser->name.($conf->browser->version?' '.$conf->browser->version:'').' ('.$_SERVER['HTTP_USER_AGENT'].')';
$label.= '<br><b>'.$langs->trans("Layout").':</b> '.$conf->browser->layout;
$label.= '<br><b>'.$langs->trans("Screen").':</b> '.$_SESSION['dol_screenwidth'].' x '.$_SESSION['dol_screenheight'];
if ($conf->browser->layout == 'phone') $label.= '<br><b>'.$langs->trans("Phone").':</b> '.$langs->trans("Yes");;
if ($conf->browser->layout == 'phone') $label.= '<br><b>'.$langs->trans("Phone").':</b> '.$langs->trans("Yes");
if (! empty($_SESSION["disablemodules"])) $label.= '<br><b>'.$langs->trans("DisabledModules").':</b> <br>'.join(', ',explode(',',$_SESSION["disablemodules"]));
}
if ($infologin < 0) $label='';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/variants/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@

// End of page
llxFooter();
$db->close();;
$db->close();

0 comments on commit 9e20d9e

Please sign in to comment.