Debug v15
This commit is contained in:
parent
3774eae510
commit
adec35d4b1
@ -579,7 +579,7 @@ class Translate
|
|||||||
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_currencies', 'code_iso', 'label');
|
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_currencies', 'code_iso', 'label');
|
||||||
} elseif (preg_match('/^SendingMethod([0-9A-Z]+)$/i', $key, $reg)) {
|
} elseif (preg_match('/^SendingMethod([0-9A-Z]+)$/i', $key, $reg)) {
|
||||||
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_shipment_mode', 'code', 'libelle');
|
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_shipment_mode', 'code', 'libelle');
|
||||||
} elseif (preg_match('/^PaymentTypeShort([0-9A-Z]+)$/i', $key, $reg)) {
|
} elseif (preg_match('/^PaymentType(?:Short)?([0-9A-Z]+)$/i', $key, $reg)) {
|
||||||
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_paiement', 'code', 'libelle', '', 1);
|
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_paiement', 'code', 'libelle', '', 1);
|
||||||
} elseif (preg_match('/^OppStatus([0-9A-Z]+)$/i', $key, $reg)) {
|
} elseif (preg_match('/^OppStatus([0-9A-Z]+)$/i', $key, $reg)) {
|
||||||
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_lead_status', 'code', 'label');
|
$newstr = $this->getLabelFromKey($db, $reg[1], 'c_lead_status', 'code', 'label');
|
||||||
|
|||||||
@ -509,12 +509,14 @@ function getNumberInvoicesPieChart($mode)
|
|||||||
|
|
||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
/*$dataseries = array(array($langs->trans('InvoiceLate30Days'), $obj->nblate30)
|
/*
|
||||||
|
$dataseries = array(array($langs->trans('InvoiceLate30Days'), $obj->nblate30)
|
||||||
,array($langs->trans('InvoiceLate15Days'), $obj->nblate15 - $obj->nblate30)
|
,array($langs->trans('InvoiceLate15Days'), $obj->nblate15 - $obj->nblate30)
|
||||||
,array($langs->trans('InvoiceLateMinus15Days'), $obj->nblatenow - $obj->nblate15)
|
,array($langs->trans('InvoiceLateMinus15Days'), $obj->nblatenow - $obj->nblate15)
|
||||||
,array($langs->trans('InvoiceNotLate'), $obj->nbnotlatenow - $obj->nbnotlate15)
|
,array($langs->trans('InvoiceNotLate'), $obj->nbnotlatenow - $obj->nbnotlate15)
|
||||||
,array($langs->trans('InvoiceNotLate15Days'), $obj->nbnotlate15 - $obj->nbnotlate30)
|
,array($langs->trans('InvoiceNotLate15Days'), $obj->nbnotlate15 - $obj->nbnotlate30)
|
||||||
,array($langs->trans('InvoiceNotLate30Days'), $obj->nbnotlate30));*/
|
,array($langs->trans('InvoiceNotLate30Days'), $obj->nbnotlate30));
|
||||||
|
*/
|
||||||
$dataseries[$i]=array($langs->trans('NbOfOpenInvoices'), $obj->nblate30, $obj->nblate15 - $obj->nblate30, $obj->nblatenow - $obj->nblate15, $obj->nbnotlatenow - $obj->nbnotlate15, $obj->nbnotlate15 - $obj->nbnotlate30, $obj->nbnotlate30);
|
$dataseries[$i]=array($langs->trans('NbOfOpenInvoices'), $obj->nblate30, $obj->nblate15 - $obj->nblate30, $obj->nblatenow - $obj->nblate15, $obj->nbnotlatenow - $obj->nbnotlate15, $obj->nbnotlate15 - $obj->nbnotlate30, $obj->nbnotlate30);
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@ -561,8 +563,9 @@ function getNumberInvoicesPieChart($mode)
|
|||||||
$dolgraph->setShowLegend(2);
|
$dolgraph->setShowLegend(2);
|
||||||
$dolgraph->setShowPercent(1);
|
$dolgraph->setShowPercent(1);
|
||||||
$dolgraph->SetType(array('bars', 'bars', 'bars', 'bars', 'bars', 'bars'));
|
$dolgraph->SetType(array('bars', 'bars', 'bars', 'bars', 'bars', 'bars'));
|
||||||
$dolgraph->setHeight('160');
|
//$dolgraph->SetType(array('pie'));
|
||||||
$dolgraph->setWidth('400');
|
$dolgraph->setHeight('160'); /* 160 min is required to show the 6 lines of legend */
|
||||||
|
$dolgraph->setWidth('450');
|
||||||
$dolgraph->setHideXValues(true);
|
$dolgraph->setHideXValues(true);
|
||||||
if ($mode == 'customers') {
|
if ($mode == 'customers') {
|
||||||
$dolgraph->draw('idgraphcustomerinvoices');
|
$dolgraph->draw('idgraphcustomerinvoices');
|
||||||
|
|||||||
@ -84,8 +84,6 @@ PaymentRule=Payment rule
|
|||||||
PaymentMode=Payment Type
|
PaymentMode=Payment Type
|
||||||
DefaultPaymentMode=Default Payment Type
|
DefaultPaymentMode=Default Payment Type
|
||||||
DefaultBankAccount=Default Bank Account
|
DefaultBankAccount=Default Bank Account
|
||||||
PaymentTypeDC=Debit/Credit Card
|
|
||||||
PaymentTypePP=PayPal
|
|
||||||
IdPaymentMode=Payment Type (id)
|
IdPaymentMode=Payment Type (id)
|
||||||
CodePaymentMode=Payment Type (code)
|
CodePaymentMode=Payment Type (code)
|
||||||
LabelPaymentMode=Payment Type (label)
|
LabelPaymentMode=Payment Type (label)
|
||||||
@ -450,6 +448,8 @@ PaymentTypeTRA=Bank draft
|
|||||||
PaymentTypeShortTRA=Draft
|
PaymentTypeShortTRA=Draft
|
||||||
PaymentTypeFAC=Factor
|
PaymentTypeFAC=Factor
|
||||||
PaymentTypeShortFAC=Factor
|
PaymentTypeShortFAC=Factor
|
||||||
|
PaymentTypeDC=Debit/Credit Card
|
||||||
|
PaymentTypePP=PayPal
|
||||||
BankDetails=Bank details
|
BankDetails=Bank details
|
||||||
BankCode=Bank code
|
BankCode=Bank code
|
||||||
DeskCode=Branch code
|
DeskCode=Branch code
|
||||||
|
|||||||
@ -138,7 +138,9 @@ print '</td></tr>';*/
|
|||||||
print '<tr><td>'.$langs->trans('Date').'</td><td colspan="3">'.dol_print_date($object->datep, 'day').'</td></tr>';
|
print '<tr><td>'.$langs->trans('Date').'</td><td colspan="3">'.dol_print_date($object->datep, 'day').'</td></tr>';
|
||||||
|
|
||||||
// Mode
|
// Mode
|
||||||
print '<tr><td>'.$langs->trans('Mode').'</td><td colspan="3">'.$langs->trans("PaymentType".$object->type_code).'</td></tr>';
|
print '<tr><td>'.$langs->trans('Mode').'</td><td colspan="3">';
|
||||||
|
print $langs->trans("PaymentType".$object->type_code);
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
// Numero
|
// Numero
|
||||||
print '<tr><td>'.$langs->trans('Numero').'</td><td colspan="3">'.$object->num_payment.'</td></tr>';
|
print '<tr><td>'.$langs->trans('Numero').'</td><td colspan="3">'.$object->num_payment.'</td></tr>';
|
||||||
|
|||||||
@ -178,7 +178,7 @@ if (empty($reshook)) {
|
|||||||
$search_date_start = '';
|
$search_date_start = '';
|
||||||
$search_date_end = '';
|
$search_date_end = '';
|
||||||
$search_dateep_start = '';
|
$search_dateep_start = '';
|
||||||
$search_dateep_end = '';
|
$search_dateep_end = '';
|
||||||
$search_amount = "";
|
$search_amount = "";
|
||||||
$search_account = '';
|
$search_account = '';
|
||||||
$search_fk_bank = '';
|
$search_fk_bank = '';
|
||||||
@ -553,6 +553,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
|||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ref salary
|
||||||
print "<td>".$salstatic->getNomUrl(1)."</td>\n";
|
print "<td>".$salstatic->getNomUrl(1)."</td>\n";
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
@ -587,7 +588,9 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
print '<td>'.$langs->trans("PaymentTypeShort".$obj->payment_code).'</td>';
|
print '<td>';
|
||||||
|
print $langs->trans("PaymentTypeShort".$obj->payment_code);
|
||||||
|
print '</td>';
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4486,7 +4486,9 @@ table.titlemodulehelp tr td img.widthpictotitle { width: 80px; }
|
|||||||
|
|
||||||
.dolgraphtitle { margin-top: 6px; margin-bottom: 4px; }
|
.dolgraphtitle { margin-top: 6px; margin-bottom: 4px; }
|
||||||
.dolgraphtitlecssboxes { /* margin: 0px; */ }
|
.dolgraphtitlecssboxes { /* margin: 0px; */ }
|
||||||
.dolgraphchart canvas { width: calc(100% - 20px) !important; }
|
.dolgraphchart canvas {
|
||||||
|
/* width: calc(100% - 20px) !important; */
|
||||||
|
}
|
||||||
.legendColorBox, .legendLabel { border: none !important; }
|
.legendColorBox, .legendLabel { border: none !important; }
|
||||||
div.dolgraph div.legend, div.dolgraph div.legend div { background-color: var(--dolgraphbg) !important; }
|
div.dolgraph div.legend, div.dolgraph div.legend div { background-color: var(--dolgraphbg) !important; }
|
||||||
div.dolgraph div.legend table tbody tr { height: auto; }
|
div.dolgraph div.legend table tbody tr { height: auto; }
|
||||||
|
|||||||
@ -4442,7 +4442,9 @@ table.titlemodulehelp tr td img.widthpictotitle { width: 80px; }
|
|||||||
|
|
||||||
.dolgraphtitle { margin-top: 6px; margin-bottom: 4px; }
|
.dolgraphtitle { margin-top: 6px; margin-bottom: 4px; }
|
||||||
.dolgraphtitlecssboxes { /* margin: 0px; */ }
|
.dolgraphtitlecssboxes { /* margin: 0px; */ }
|
||||||
.dolgraphchart canvas { width: calc(100% - 20px) !important; }
|
.dolgraphchart canvas {
|
||||||
|
/* width: calc(100% - 20px) !important; */
|
||||||
|
}
|
||||||
.legendColorBox, .legendLabel { border: none !important; }
|
.legendColorBox, .legendLabel { border: none !important; }
|
||||||
div.dolgraph div.legend, div.dolgraph div.legend div { background-color: rgba(255,255,255,0) !important; }
|
div.dolgraph div.legend, div.dolgraph div.legend div { background-color: rgba(255,255,255,0) !important; }
|
||||||
div.dolgraph div.legend table tbody tr { height: auto; }
|
div.dolgraph div.legend table tbody tr { height: auto; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user