diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index e741adc84b5..c092690a505 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -579,7 +579,7 @@ class Translate $newstr = $this->getLabelFromKey($db, $reg[1], 'c_currencies', 'code_iso', 'label'); } elseif (preg_match('/^SendingMethod([0-9A-Z]+)$/i', $key, $reg)) { $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); } elseif (preg_match('/^OppStatus([0-9A-Z]+)$/i', $key, $reg)) { $newstr = $this->getLabelFromKey($db, $reg[1], 'c_lead_status', 'code', 'label'); diff --git a/htdocs/core/lib/invoice.lib.php b/htdocs/core/lib/invoice.lib.php index 8b61a690910..c64c63fc0dd 100644 --- a/htdocs/core/lib/invoice.lib.php +++ b/htdocs/core/lib/invoice.lib.php @@ -509,12 +509,14 @@ function getNumberInvoicesPieChart($mode) while ($i < $num) { $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('InvoiceLateMinus15Days'), $obj->nblatenow - $obj->nblate15) ,array($langs->trans('InvoiceNotLate'), $obj->nbnotlatenow - $obj->nbnotlate15) ,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); $i++; } @@ -561,8 +563,9 @@ function getNumberInvoicesPieChart($mode) $dolgraph->setShowLegend(2); $dolgraph->setShowPercent(1); $dolgraph->SetType(array('bars', 'bars', 'bars', 'bars', 'bars', 'bars')); - $dolgraph->setHeight('160'); - $dolgraph->setWidth('400'); + //$dolgraph->SetType(array('pie')); + $dolgraph->setHeight('160'); /* 160 min is required to show the 6 lines of legend */ + $dolgraph->setWidth('450'); $dolgraph->setHideXValues(true); if ($mode == 'customers') { $dolgraph->draw('idgraphcustomerinvoices'); diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index 518f6c93406..4f3308a6bf4 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -84,8 +84,6 @@ PaymentRule=Payment rule PaymentMode=Payment Type DefaultPaymentMode=Default Payment Type DefaultBankAccount=Default Bank Account -PaymentTypeDC=Debit/Credit Card -PaymentTypePP=PayPal IdPaymentMode=Payment Type (id) CodePaymentMode=Payment Type (code) LabelPaymentMode=Payment Type (label) @@ -450,6 +448,8 @@ PaymentTypeTRA=Bank draft PaymentTypeShortTRA=Draft PaymentTypeFAC=Factor PaymentTypeShortFAC=Factor +PaymentTypeDC=Debit/Credit Card +PaymentTypePP=PayPal BankDetails=Bank details BankCode=Bank code DeskCode=Branch code diff --git a/htdocs/salaries/payment_salary/card.php b/htdocs/salaries/payment_salary/card.php index d33d04c49ff..9e5a55563e4 100644 --- a/htdocs/salaries/payment_salary/card.php +++ b/htdocs/salaries/payment_salary/card.php @@ -138,7 +138,9 @@ print '';*/ print ''.$langs->trans('Date').''.dol_print_date($object->datep, 'day').''; // Mode -print ''.$langs->trans('Mode').''.$langs->trans("PaymentType".$object->type_code).''; +print ''.$langs->trans('Mode').''; +print $langs->trans("PaymentType".$object->type_code); +print ''; // Numero print ''.$langs->trans('Numero').''.$object->num_payment.''; diff --git a/htdocs/salaries/payments.php b/htdocs/salaries/payments.php index f129e6304ab..77cbae397f0 100644 --- a/htdocs/salaries/payments.php +++ b/htdocs/salaries/payments.php @@ -178,7 +178,7 @@ if (empty($reshook)) { $search_date_start = ''; $search_date_end = ''; $search_dateep_start = ''; - $search_dateep_end = ''; + $search_dateep_end = ''; $search_amount = ""; $search_account = ''; $search_fk_bank = ''; @@ -553,6 +553,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) { $totalarray['nbfield']++; } + // Ref salary print "".$salstatic->getNomUrl(1)."\n"; if (!$i) { $totalarray['nbfield']++; @@ -587,7 +588,9 @@ while ($i < ($limit ? min($num, $limit) : $num)) { } // Type - print ''.$langs->trans("PaymentTypeShort".$obj->payment_code).''; + print ''; + print $langs->trans("PaymentTypeShort".$obj->payment_code); + print ''; if (!$i) { $totalarray['nbfield']++; } diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 6a5ea5d9e6c..59c554b5b96 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -4486,7 +4486,9 @@ table.titlemodulehelp tr td img.widthpictotitle { width: 80px; } .dolgraphtitle { margin-top: 6px; margin-bottom: 4px; } .dolgraphtitlecssboxes { /* margin: 0px; */ } -.dolgraphchart canvas { width: calc(100% - 20px) !important; } +.dolgraphchart canvas { + /* width: calc(100% - 20px) !important; */ +} .legendColorBox, .legendLabel { border: none !important; } div.dolgraph div.legend, div.dolgraph div.legend div { background-color: var(--dolgraphbg) !important; } div.dolgraph div.legend table tbody tr { height: auto; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 5a419d4a39a..6496cf633a6 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -4442,7 +4442,9 @@ table.titlemodulehelp tr td img.widthpictotitle { width: 80px; } .dolgraphtitle { margin-top: 6px; margin-bottom: 4px; } .dolgraphtitlecssboxes { /* margin: 0px; */ } -.dolgraphchart canvas { width: calc(100% - 20px) !important; } +.dolgraphchart canvas { + /* width: calc(100% - 20px) !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 table tbody tr { height: auto; }