2
0
forked from Wavyzz/dolibarr

Debug v11

This commit is contained in:
Laurent Destailleur
2019-12-23 12:24:27 +01:00
parent d4138876af
commit 2df9df2db0
12 changed files with 101 additions and 55 deletions

View File

@@ -71,7 +71,9 @@ class FormOther
public function select_export_model($selected = '', $htmlname = 'exportmodelid', $type = '', $useempty = 0, $fk_user = null) public function select_export_model($selected = '', $htmlname = 'exportmodelid', $type = '', $useempty = 0, $fk_user = null)
{ {
// phpcs:enable // phpcs:enable
$sql = "SELECT rowid, label"; global $conf, $langs, $user;
$sql = "SELECT rowid, label, fk_user";
$sql .= " FROM ".MAIN_DB_PREFIX."export_model"; $sql .= " FROM ".MAIN_DB_PREFIX."export_model";
$sql .= " WHERE type = '".$type."'"; $sql .= " WHERE type = '".$type."'";
if (!empty($fk_user)) $sql .= " AND fk_user IN (0, ".$fk_user.")"; // An export model if (!empty($fk_user)) $sql .= " AND fk_user IN (0, ".$fk_user.")"; // An export model
@@ -79,7 +81,7 @@ class FormOther
$result = $this->db->query($sql); $result = $this->db->query($sql);
if ($result) if ($result)
{ {
print '<select class="flat minwidth200" name="'.$htmlname.'">'; print '<select class="flat minwidth200" name="'.$htmlname.'" id="'.$htmlname.'">';
if ($useempty) if ($useempty)
{ {
print '<option value="-1">&nbsp;</option>'; print '<option value="-1">&nbsp;</option>';
@@ -90,19 +92,28 @@ class FormOther
while ($i < $num) while ($i < $num)
{ {
$obj = $this->db->fetch_object($result); $obj = $this->db->fetch_object($result);
$label = $obj->label;
if (! empty($conf->global->EXPORTS_SHARE_MODELS) && empty($fk_user) && is_object($user) && $user->id != $obj->fk_user) {
$tmpuser = new User($this->db);
$tmpuser->fetch($obj->fk_user);
$label .= ' <span class="opacitymedium">('.$tmpuser->getFullName($langs).')</span>';
}
if ($selected == $obj->rowid) if ($selected == $obj->rowid)
{ {
print '<option value="'.$obj->rowid.'" selected>'; print '<option value="'.$obj->rowid.'" selected data-html="'.dol_escape_htmltag($label).'">';
} }
else else
{ {
print '<option value="'.$obj->rowid.'">'; print '<option value="'.$obj->rowid.'" data-html="'.dol_escape_htmltag($label).'">';
} }
print $obj->label; print $label;
print '</option>'; print '</option>';
$i++; $i++;
} }
print "</select>"; print "</select>";
print ajax_combobox($htmlname);
} }
else { else {
dol_print_error($this->db); dol_print_error($this->db);
@@ -130,7 +141,7 @@ class FormOther
$result = $this->db->query($sql); $result = $this->db->query($sql);
if ($result) if ($result)
{ {
print '<select class="flat minwidth200" name="'.$htmlname.'">'; print '<select class="flat minwidth200" name="'.$htmlname.'" id="'.$htmlname.'">';
if ($useempty) if ($useempty)
{ {
print '<option value="-1">&nbsp;</option>'; print '<option value="-1">&nbsp;</option>';
@@ -154,6 +165,7 @@ class FormOther
$i++; $i++;
} }
print "</select>"; print "</select>";
print ajax_combobox($htmlname);
} }
else { else {
dol_print_error($this->db); dol_print_error($this->db);

View File

@@ -47,10 +47,12 @@ if (class_exists($keyforclass))
* break; * break;
*/ */
} }
$helpfield=preg_replace('/\(.*$/', '', $valuefield['help']);
if ($valuefield['enabled']) { if ($valuefield['enabled']) {
$this->export_fields_array[$r][$fieldname] = $fieldlabel; $this->export_fields_array[$r][$fieldname] = $fieldlabel;
$this->export_TypeFields_array[$r][$fieldname] = $typeFilter; $this->export_TypeFields_array[$r][$fieldname] = $typeFilter;
$this->export_entities_array[$r][$fieldname] = $keyforelement; $this->export_entities_array[$r][$fieldname] = $keyforelement;
$this->export_help_array[$r][$fieldname] = $helpfield;
} }
} }
} }

View File

@@ -3349,7 +3349,7 @@ function img_picto_common($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0
*/ */
function img_action($titlealt, $numaction) function img_action($titlealt, $numaction)
{ {
global $conf, $langs; global $langs;
if (empty($titlealt) || $titlealt == 'default') if (empty($titlealt) || $titlealt == 'default')
{ {
@@ -3374,7 +3374,7 @@ function img_action($titlealt, $numaction)
*/ */
function img_pdf($titlealt = 'default', $size = 3) function img_pdf($titlealt = 'default', $size = 3)
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Show'); if ($titlealt == 'default') $titlealt = $langs->trans('Show');
@@ -3390,7 +3390,7 @@ function img_pdf($titlealt = 'default', $size = 3)
*/ */
function img_edit_add($titlealt = 'default', $other = '') function img_edit_add($titlealt = 'default', $other = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Add'); if ($titlealt == 'default') $titlealt = $langs->trans('Add');
@@ -3405,7 +3405,7 @@ function img_edit_add($titlealt = 'default', $other = '')
*/ */
function img_edit_remove($titlealt = 'default', $other = '') function img_edit_remove($titlealt = 'default', $other = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Remove'); if ($titlealt == 'default') $titlealt = $langs->trans('Remove');
@@ -3422,7 +3422,7 @@ function img_edit_remove($titlealt = 'default', $other = '')
*/ */
function img_edit($titlealt = 'default', $float = 0, $other = '') function img_edit($titlealt = 'default', $float = 0, $other = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Modify'); if ($titlealt == 'default') $titlealt = $langs->trans('Modify');
@@ -3439,7 +3439,7 @@ function img_edit($titlealt = 'default', $float = 0, $other = '')
*/ */
function img_view($titlealt = 'default', $float = 0, $other = '') function img_view($titlealt = 'default', $float = 0, $other = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('View'); if ($titlealt == 'default') $titlealt = $langs->trans('View');
@@ -3457,7 +3457,7 @@ function img_view($titlealt = 'default', $float = 0, $other = '')
*/ */
function img_delete($titlealt = 'default', $other = 'class="pictodelete"') function img_delete($titlealt = 'default', $other = 'class="pictodelete"')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Delete'); if ($titlealt == 'default') $titlealt = $langs->trans('Delete');
@@ -3474,7 +3474,7 @@ function img_delete($titlealt = 'default', $other = 'class="pictodelete"')
*/ */
function img_printer($titlealt = "default", $other = '') function img_printer($titlealt = "default", $other = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == "default") $titlealt = $langs->trans("Print"); if ($titlealt == "default") $titlealt = $langs->trans("Print");
return img_picto($titlealt, 'printer.png', $other); return img_picto($titlealt, 'printer.png', $other);
} }
@@ -3488,7 +3488,7 @@ function img_printer($titlealt = "default", $other = '')
*/ */
function img_split($titlealt = 'default', $other = 'class="pictosplit"') function img_split($titlealt = 'default', $other = 'class="pictosplit"')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Split'); if ($titlealt == 'default') $titlealt = $langs->trans('Split');
@@ -3504,7 +3504,7 @@ function img_split($titlealt = 'default', $other = 'class="pictosplit"')
*/ */
function img_help($usehelpcursor = 1, $usealttitle = 1) function img_help($usehelpcursor = 1, $usealttitle = 1)
{ {
global $conf, $langs; global $langs;
if ($usealttitle) if ($usealttitle)
{ {
@@ -3523,7 +3523,7 @@ function img_help($usehelpcursor = 1, $usealttitle = 1)
*/ */
function img_info($titlealt = 'default') function img_info($titlealt = 'default')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Informations'); if ($titlealt == 'default') $titlealt = $langs->trans('Informations');
@@ -3540,7 +3540,7 @@ function img_info($titlealt = 'default')
*/ */
function img_warning($titlealt = 'default', $moreatt = '', $morecss = 'pictowarning') function img_warning($titlealt = 'default', $moreatt = '', $morecss = 'pictowarning')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Warning'); if ($titlealt == 'default') $titlealt = $langs->trans('Warning');
@@ -3556,11 +3556,11 @@ function img_warning($titlealt = 'default', $moreatt = '', $morecss = 'pictowarn
*/ */
function img_error($titlealt = 'default') function img_error($titlealt = 'default')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Error'); if ($titlealt == 'default') $titlealt = $langs->trans('Error');
return img_picto($titlealt, 'error.png', 'class="valigntextbottom"'); return img_picto($titlealt, 'error.png');
} }
/** /**
@@ -3572,7 +3572,7 @@ function img_error($titlealt = 'default')
*/ */
function img_next($titlealt = 'default', $moreatt = '') function img_next($titlealt = 'default', $moreatt = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Next'); if ($titlealt == 'default') $titlealt = $langs->trans('Next');
@@ -3589,7 +3589,7 @@ function img_next($titlealt = 'default', $moreatt = '')
*/ */
function img_previous($titlealt = 'default', $moreatt = '') function img_previous($titlealt = 'default', $moreatt = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Previous'); if ($titlealt == 'default') $titlealt = $langs->trans('Previous');
@@ -3607,7 +3607,7 @@ function img_previous($titlealt = 'default', $moreatt = '')
*/ */
function img_down($titlealt = 'default', $selected = 0, $moreclass = '') function img_down($titlealt = 'default', $selected = 0, $moreclass = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Down'); if ($titlealt == 'default') $titlealt = $langs->trans('Down');
@@ -3624,7 +3624,7 @@ function img_down($titlealt = 'default', $selected = 0, $moreclass = '')
*/ */
function img_up($titlealt = 'default', $selected = 0, $moreclass = '') function img_up($titlealt = 'default', $selected = 0, $moreclass = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Up'); if ($titlealt == 'default') $titlealt = $langs->trans('Up');
@@ -3641,7 +3641,7 @@ function img_up($titlealt = 'default', $selected = 0, $moreclass = '')
*/ */
function img_left($titlealt = 'default', $selected = 0, $moreatt = '') function img_left($titlealt = 'default', $selected = 0, $moreatt = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Left'); if ($titlealt == 'default') $titlealt = $langs->trans('Left');
@@ -3658,7 +3658,7 @@ function img_left($titlealt = 'default', $selected = 0, $moreatt = '')
*/ */
function img_right($titlealt = 'default', $selected = 0, $moreatt = '') function img_right($titlealt = 'default', $selected = 0, $moreatt = '')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Right'); if ($titlealt == 'default') $titlealt = $langs->trans('Right');
@@ -3674,7 +3674,7 @@ function img_right($titlealt = 'default', $selected = 0, $moreatt = '')
*/ */
function img_allow($allow, $titlealt = 'default') function img_allow($allow, $titlealt = 'default')
{ {
global $conf, $langs; global $langs;
if ($titlealt == 'default') $titlealt = $langs->trans('Active'); if ($titlealt == 'default') $titlealt = $langs->trans('Active');

View File

@@ -216,7 +216,7 @@ class modFacture extends DolibarrModules
's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra', 's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra',
'f.rowid'=>"InvoiceId", 'f.ref'=>"InvoiceRef", 'f.ref_client'=>'RefCustomer', 'f.rowid'=>"InvoiceId", 'f.ref'=>"InvoiceRef", 'f.ref_client'=>'RefCustomer',
'f.type'=>"Type", 'f.datec'=>"InvoiceDateCreation", 'f.datef'=>"DateInvoice", 'f.date_lim_reglement'=>"DateDue", 'f.total'=>"TotalHT", 'f.type'=>"Type", 'f.datec'=>"InvoiceDateCreation", 'f.datef'=>"DateInvoice", 'f.date_lim_reglement'=>"DateDue", 'f.total'=>"TotalHT",
'f.total_ttc'=>"TotalTTC", 'f.tva'=>"TotalVAT", 'f.localtax1'=>'LocalTax1', 'f.localtax2'=>'LocalTax2', 'none.rest'=>'Rest', 'f.paye'=>"InvoicePaid", 'f.fk_statut'=>'InvoiceStatus', 'f.total_ttc'=>"TotalTTC", 'f.tva'=>"TotalVAT", 'f.localtax1'=>'LocalTax1', 'f.localtax2'=>'LocalTax2', 'none.rest'=>'Rest', 'f.paye'=>"InvoicePaidCompletely", 'f.fk_statut'=>'InvoiceStatus',
'f.note_private'=>"NotePrivate", 'f.note_public'=>"NotePublic", 'f.fk_user_author'=>'CreatedById', 'uc.login'=>'CreatedByLogin', 'f.note_private'=>"NotePrivate", 'f.note_public'=>"NotePublic", 'f.fk_user_author'=>'CreatedById', 'uc.login'=>'CreatedByLogin',
'f.fk_user_valid'=>'ValidatedById', 'uv.login'=>'ValidatedByLogin', 'pj.ref'=>'ProjectRef', 'pj.title'=>'ProjectLabel', 'fd.rowid'=>'LineId', 'fd.description'=>"LineDescription", 'f.fk_user_valid'=>'ValidatedById', 'uv.login'=>'ValidatedByLogin', 'pj.ref'=>'ProjectRef', 'pj.title'=>'ProjectLabel', 'fd.rowid'=>'LineId', 'fd.description'=>"LineDescription",
'fd.subprice'=>"LineUnitPrice", 'fd.tva_tx'=>"LineVATRate", 'fd.qty'=>"LineQty", 'fd.total_ht'=>"LineTotalHT", 'fd.total_tva'=>"LineTotalVAT", 'fd.subprice'=>"LineUnitPrice", 'fd.tva_tx'=>"LineVATRate", 'fd.qty'=>"LineQty", 'fd.total_ht'=>"LineTotalHT", 'fd.total_tva'=>"LineTotalVAT",
@@ -300,12 +300,13 @@ class modFacture extends DolibarrModules
's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra', 's.code_compta_fournisseur'=>'SupplierAccountancyCode', 's.tva_intra'=>'VATIntra',
'f.rowid'=>"InvoiceId", 'f.ref'=>"InvoiceRef", 'f.ref_client'=>'RefCustomer', 'f.rowid'=>"InvoiceId", 'f.ref'=>"InvoiceRef", 'f.ref_client'=>'RefCustomer',
'f.type'=>"Type", 'f.datec'=>"InvoiceDateCreation", 'f.datef'=>"DateInvoice", 'f.date_lim_reglement'=>"DateDue", 'f.total'=>"TotalHT", 'f.type'=>"Type", 'f.datec'=>"InvoiceDateCreation", 'f.datef'=>"DateInvoice", 'f.date_lim_reglement'=>"DateDue", 'f.total'=>"TotalHT",
'f.total_ttc'=>"TotalTTC", 'f.tva'=>"TotalVAT", 'f.localtax1'=>'LocalTax1', 'f.localtax2'=>'LocalTax2', 'none.rest'=>'Rest', 'f.paye'=>"InvoicePaid", 'f.fk_statut'=>'InvoiceStatus', 'f.total_ttc'=>"TotalTTC", 'f.tva'=>"TotalVAT", 'f.localtax1'=>'LocalTax1', 'f.localtax2'=>'LocalTax2', 'none.rest'=>'Rest', 'f.paye'=>"InvoicePaidCompletely", 'f.fk_statut'=>'InvoiceStatus',
'f.note_private'=>"NotePrivate", 'f.note_public'=>"NotePublic", 'f.fk_user_author'=>'CreatedById', 'uc.login'=>'CreatedByLogin', 'f.note_private'=>"NotePrivate", 'f.note_public'=>"NotePublic", 'f.fk_user_author'=>'CreatedById', 'uc.login'=>'CreatedByLogin',
'f.fk_user_valid'=>'ValidatedById', 'uv.login'=>'ValidatedByLogin', 'pj.ref'=>'ProjectRef', 'pj.title'=>'ProjectLabel', 'p.rowid'=>'PaymentId', 'p.ref'=>'PaymentRef', 'f.fk_user_valid'=>'ValidatedById', 'uv.login'=>'ValidatedByLogin', 'pj.ref'=>'ProjectRef', 'pj.title'=>'ProjectLabel', 'p.rowid'=>'PaymentId', 'p.ref'=>'PaymentRef',
'p.amount'=>'AmountPayment', 'pf.amount'=>'AmountPaymentDistributedOnInvoice', 'p.datep'=>'DatePayment', 'p.num_paiement'=>'PaymentNumber', 'p.amount'=>'AmountPayment', 'pf.amount'=>'AmountPaymentDistributedOnInvoice', 'p.datep'=>'DatePayment', 'p.num_paiement'=>'PaymentNumber',
'pt.code'=>'CodePaymentMode', 'pt.libelle'=>'LabelPaymentMode', 'p.note'=>'PaymentNote', 'p.fk_bank'=>'IdTransaction', 'ba.ref'=>'AccountRef' 'pt.code'=>'CodePaymentMode', 'pt.libelle'=>'LabelPaymentMode', 'p.note'=>'PaymentNote', 'p.fk_bank'=>'IdTransaction', 'ba.ref'=>'AccountRef'
); );
$this->export_help_array[$r] = array('f.paye'=>'InvoicePaidCompletelyHelp');
if (! empty($conf->multicurrency->enabled)) if (! empty($conf->multicurrency->enabled))
{ {
$this->export_fields_array[$r]['f.multicurrency_code'] = 'Currency'; $this->export_fields_array[$r]['f.multicurrency_code'] = 'Currency';
@@ -313,6 +314,7 @@ class modFacture extends DolibarrModules
$this->export_fields_array[$r]['f.multicurrency_total_ht'] = 'MulticurrencyAmountHT'; $this->export_fields_array[$r]['f.multicurrency_total_ht'] = 'MulticurrencyAmountHT';
$this->export_fields_array[$r]['f.multicurrency_total_tva'] = 'MulticurrencyAmountVAT'; $this->export_fields_array[$r]['f.multicurrency_total_tva'] = 'MulticurrencyAmountVAT';
$this->export_fields_array[$r]['f.multicurrency_total_ttc'] = 'MulticurrencyAmountTTC'; $this->export_fields_array[$r]['f.multicurrency_total_ttc'] = 'MulticurrencyAmountTTC';
$this->export_examplevalues_array[$r]['f.multicurrency_code'] = 'EUR';
} }
if (! empty($conf->cashdesk->enabled) || ! empty($conf->takepos->enabled) || ! empty($conf->global->INVOICE_SHOW_POS)) if (! empty($conf->cashdesk->enabled) || ! empty($conf->takepos->enabled) || ! empty($conf->global->INVOICE_SHOW_POS))
{ {

View File

@@ -43,12 +43,13 @@ class Export
public $array_export_sql_order=array(); // Tableau des "requetes sql" public $array_export_sql_order=array(); // Tableau des "requetes sql"
public $array_export_fields=array(); // Tableau des listes de champ+libelle a exporter public $array_export_fields=array(); // Tableau des listes de champ+libelle a exporter
public $array_export_TypeFields=array(); // Tableau des listes de champ+Type de filtre public $array_export_TypeFields=array(); // Tableau des listes de champ+Type de filtre
public $array_export_FilterValue=array(); // Tableau des listes de champ+Valeur a filtrer public $array_export_FilterValue=array(); // Tableau des listes de champ+Valeur a filtrer
public $array_export_entities=array(); // Tableau des listes de champ+alias a exporter public $array_export_entities=array(); // Tableau des listes de champ+alias a exporter
public $array_export_dependencies=array(); // array of list of entities that must take care of the DISTINCT if a field is added into export public $array_export_dependencies=array(); // array of list of entities that must take care of the DISTINCT if a field is added into export
public $array_export_special=array(); // Tableau des operations speciales sur champ public $array_export_special=array(); // array of special operations to do on field
public $array_export_examplevalues=array(); // array with examples public $array_export_examplevalues=array(); // array with examples for fields
public $array_export_help=array(); // array with tooltip help for fields
// To store export modules // To store export modules
public $hexa; public $hexa;
@@ -186,6 +187,8 @@ class Export
$this->array_export_special[$i]=(! empty($module->export_special_array[$r])?$module->export_special_array[$r]:''); $this->array_export_special[$i]=(! empty($module->export_special_array[$r])?$module->export_special_array[$r]:'');
// Array of examples // Array of examples
$this->array_export_examplevalues[$i]=$module->export_examplevalues_array[$r]; $this->array_export_examplevalues[$i]=$module->export_examplevalues_array[$r];
// Array of help tooltips
$this->array_export_help[$i]=(! empty($module->export_help_array[$r])?$module->export_help_array[$r]:'');
// Requete sql du dataset // Requete sql du dataset
$this->array_export_sql_start[$i]=$module->export_sql_start[$r]; $this->array_export_sql_start[$i]=$module->export_sql_start[$r];

View File

@@ -543,8 +543,12 @@ if ($step == 2 && $datatoexport)
print '<input type="hidden" name="datatoexport" value="'.$datatoexport.'">'; print '<input type="hidden" name="datatoexport" value="'.$datatoexport.'">';
print '<div class="valignmiddle marginbottomonly">'; print '<div class="valignmiddle marginbottomonly">';
print '<span class="opacitymedium">'.$langs->trans("SelectExportFields").'</span> '; print '<span class="opacitymedium">'.$langs->trans("SelectExportFields").'</span> ';
if (empty($conf->global->EXPORTS_SHARE_MODELS))$htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1, $user->id); if (empty($conf->global->EXPORTS_SHARE_MODELS)) {
else $htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1); $htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1, $user->id);
}
else {
$htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1);
}
print ' '; print ' ';
print '<input type="submit" class="button" value="'.$langs->trans("Select").'">'; print '<input type="submit" class="button" value="'.$langs->trans("Select").'">';
print '</div>'; print '</div>';
@@ -622,6 +626,10 @@ if ($step == 2 && $datatoexport)
{ {
$htmltext .= '<b>'.$langs->trans("Type").':</b> '.$objexport->array_export_TypeFields[0][$code].'<br>'; $htmltext .= '<b>'.$langs->trans("Type").':</b> '.$objexport->array_export_TypeFields[0][$code].'<br>';
} }
if (!empty($objexport->array_export_help[0][$code]))
{
$htmltext .= '<b>'.$langs->trans("Help").':</b> '.$langs->trans($objexport->array_export_help[0][$code]).'<br>';
}
if (isset($array_selected[$code]) && $array_selected[$code]) if (isset($array_selected[$code]) && $array_selected[$code])
{ {
@@ -808,11 +816,15 @@ if ($step == 3 && $datatoexport)
} }
if (!empty($objexport->array_export_examplevalues[0][$code])) if (!empty($objexport->array_export_examplevalues[0][$code]))
{ {
$htmltext .= $langs->trans("SourceExample").': <b>'.$objexport->array_export_examplevalues[0][$code].'</b><br>'; $htmltext .= '<b>'.$langs->trans("SourceExample").':</b> '.$objexport->array_export_examplevalues[0][$code].'<br>';
} }
if (!empty($objexport->array_export_TypeFields[0][$code])) if (!empty($objexport->array_export_TypeFields[0][$code]))
{ {
$htmltext .= $langs->trans("Type").': <b>'.$objexport->array_export_TypeFields[0][$code].'</b><br>'; $htmltext .= '<b>'.$langs->trans("Type").':</b> '.$objexport->array_export_TypeFields[0][$code].'<br>';
}
if (!empty($objexport->array_export_help[0][$code]))
{
$htmltext .= '<b>'.$langs->trans("Help").':</b> '.$langs->trans($objexport->array_export_help[0][$code]).'<br>';
} }
print '<td>'; print '<td>';
@@ -999,11 +1011,15 @@ if ($step == 4 && $datatoexport)
} }
if (!empty($objexport->array_export_examplevalues[0][$code])) if (!empty($objexport->array_export_examplevalues[0][$code]))
{ {
$htmltext .= $langs->trans("SourceExample").': <b>'.$objexport->array_export_examplevalues[0][$code].'</b><br>'; $htmltext .= '<b>'.$langs->trans("SourceExample").':</b> '.$objexport->array_export_examplevalues[0][$code].'<br>';
} }
if (!empty($objexport->array_export_TypeFields[0][$code])) if (!empty($objexport->array_export_TypeFields[0][$code]))
{ {
$htmltext .= $langs->trans("Type").': <b>'.$objexport->array_export_TypeFields[0][$code].'</b><br>'; $htmltext .= '<b>'.$langs->trans("Type").':</b> '.$objexport->array_export_TypeFields[0][$code].'<br>';
}
if (!empty($objexport->array_export_help[0][$code]))
{
$htmltext .= '<b>'.$langs->trans("Help").':</b> '.$langs->trans($objexport->array_export_help[0][$code]).'<br>';
} }
print '<td>'; print '<td>';
@@ -1047,7 +1063,10 @@ if ($step == 4 && $datatoexport)
if (count($array_selected)) if (count($array_selected))
{ {
print '<br>'; print '<br>';
print $langs->trans("SaveExportModel");
print '<div class="marginbottomonly">';
print '<span class="opacitymedium">'.$langs->trans("SaveExportModel").'</span>';
print '</div>';
print '<form class="nocellnopadd" action="export.php" method="post">'; print '<form class="nocellnopadd" action="export.php" method="post">';
print '<input type="hidden" name="token" value="'.newToken().'">'; print '<input type="hidden" name="token" value="'.newToken().'">';

View File

@@ -519,14 +519,12 @@ if ($step == 3 && $datatoimport)
print '</table>'; print '</table>';
print '</div>'; print '</div>';
print '<br>';
print '<b>'.$langs->trans("InformationOnSourceFile").'</b>'; print load_fiche_titre($langs->trans("InformationOnSourceFile"), '', '');
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<table width="100%" class="border tableforfield">'; print '<table width="100%" class="border tableforfield">';
//print '<tr><td colspan="2"><b>'.$langs->trans("InformationOnSourceFile").'</b></td></tr>';
// Source file format // Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
@@ -798,13 +796,12 @@ if ($step == 4 && $datatoimport)
print '</table>'; print '</table>';
print '</div>'; print '</div>';
print '<br>';
print '<b>'.$langs->trans("InformationOnSourceFile").'</b>'; print load_fiche_titre($langs->trans("InformationOnSourceFile"), '', '');
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<table width="100%" class="border tableforfield">'; print '<table width="100%" class="border tableforfield">';
//print '<tr><td colspan="2"><b>'.$langs->trans("InformationOnSourceFile").'</b></td></tr>';
// Source file format // Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
@@ -1273,13 +1270,12 @@ if ($step == 5 && $datatoimport)
print '</table>'; print '</table>';
print '</div>'; print '</div>';
print '<br>';
print '<b>'.$langs->trans("InformationOnSourceFile").'</b>'; print load_fiche_titre($langs->trans("InformationOnSourceFile"), '', '');
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<table width="100%" class="border tableforfield">'; print '<table width="100%" class="border tableforfield">';
//print '<tr><td colspan="2"><b>'.$langs->trans("InformationOnSourceFile").'</b></td></tr>';
// Source file format // Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';
@@ -1378,9 +1374,9 @@ if ($step == 5 && $datatoimport)
print '</table>'; print '</table>';
print '</div>'; print '</div>';
print '<br>';
print '<b>'.$langs->trans("InformationOnTargetTables").'</b>'; print load_fiche_titre($langs->trans("InformationOnTargetTables"), '', '');
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
@@ -1717,13 +1713,12 @@ if ($step == 6 && $datatoimport)
print '</table>'; print '</table>';
print '</div>'; print '</div>';
print '<br>';
print '<b>'.$langs->trans("InformationOnSourceFile").'</b>'; print load_fiche_titre($langs->trans("InformationOnSourceFile"), '', '');
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<table width="100%" class="border">'; print '<table width="100%" class="border">';
//print '<tr><td colspan="2"><b>'.$langs->trans("InformationOnSourceFile").'</b></td></tr>';
// Source file format // Source file format
print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("SourceFileFormat").'</td>';

View File

@@ -334,6 +334,8 @@ InvoiceDateCreation=Invoice creation date
InvoiceStatus=Invoice status InvoiceStatus=Invoice status
InvoiceNote=Invoice note InvoiceNote=Invoice note
InvoicePaid=Invoice paid InvoicePaid=Invoice paid
InvoicePaidCompletely=Paid completely
InvoicePaidCompletelyHelp=Invoice that are paid completely. This excludes invoices that are paid partially. To get list of all 'Closed' or non 'Closed' invoices, prefer to use a filter on the invoice status.
OrderBilled=Order billed OrderBilled=Order billed
DonationPaid=Donation paid DonationPaid=Donation paid
PaymentNumber=Payment number PaymentNumber=Payment number

View File

@@ -69,6 +69,8 @@ Terminal=Terminal
NumberOfTerminals=Number of Terminals NumberOfTerminals=Number of Terminals
TerminalSelect=Select terminal you want to use: TerminalSelect=Select terminal you want to use:
POSTicket=POS Ticket POSTicket=POS Ticket
POSTerminal=POS Terminal
POSModule=POS Module
BasicPhoneLayout=Use basic layout for phones BasicPhoneLayout=Use basic layout for phones
SetupOfTerminalNotComplete=Setup of terminal %s is not complete SetupOfTerminalNotComplete=Setup of terminal %s is not complete
DirectPayment=Direct payment DirectPayment=Direct payment

View File

@@ -342,7 +342,10 @@ class modMyModule extends DolibarrModules
include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php'; include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
//$keyforselect='myobjectline'; $keyforaliasextra='extraline'; $keyforelement='myobjectline'; //$keyforselect='myobjectline'; $keyforaliasextra='extraline'; $keyforelement='myobjectline';
//include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php'; //include DOL_DOCUMENT_ROOT.'/core/extrafieldsinexport.inc.php';
//$this->export_dependencies_array[$r]=array('myobjectline'=>array('tl.rowid','tl.ref')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields) //$this->export_dependencies_array[$r] = array('myobjectline'=>array('tl.rowid','tl.ref')); // To force to activate one or several fields if we select some fields that need same (like to select a unique key if we ask a field of a child to avoid the DISTINCT to discard them, or for computed field than need several other fields)
//$this->export_special_array[$r] = array('t.field'=>'...');
//$this->export_examplevalues_array[$r] = array('t.field'=>'Example');
//$this->export_help_array[$r] = array('t.field'=>'FieldDescHelp');
$this->export_sql_start[$r]='SELECT DISTINCT '; $this->export_sql_start[$r]='SELECT DISTINCT ';
$this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t'; $this->export_sql_end[$r] =' FROM '.MAIN_DB_PREFIX.'myobject as t';
//$this->export_sql_end[$r] =' LEFT JOIN '.MAIN_DB_PREFIX.'myobject_line as tl ON tl.fk_myobject = t.rowid'; //$this->export_sql_end[$r] =' LEFT JOIN '.MAIN_DB_PREFIX.'myobject_line as tl ON tl.fk_myobject = t.rowid';

View File

@@ -1408,6 +1408,9 @@ div.nopadding {
/* vertical-align: text-bottom; */ /* vertical-align: text-bottom; */
color: <?php echo $badgeWarning ?>; color: <?php echo $badgeWarning ?>;
} }
.pictoerror {
color: <?php echo $badgeDanger ?>;
}
.pictomodule { .pictomodule {
width: 14px; width: 14px;
} }

View File

@@ -1613,6 +1613,9 @@ div.nopadding {
/* vertical-align: text-bottom; */ /* vertical-align: text-bottom; */
color: <?php echo $badgeWarning; ?>; color: <?php echo $badgeWarning; ?>;
} }
.pictoerror {
color: <?php echo $badgeDanger ?>;
}
.pictomodule { .pictomodule {
width: 14px; width: 14px;
} }