fix #30456 add Not Validated warning when in draft, remove pointless info (#30475)

* fix #30456 add Not Validated warning when in draft, remove pointless info

* fix Dolibarr#30456 add Not Validated warning when in draft, remove pointless info

* remove whitspace
This commit is contained in:
sonikf 2024-07-26 13:12:06 +03:00 committed by GitHub
parent 67566efb57
commit 4ffb024369
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 4 deletions

View file

@ -1236,6 +1236,10 @@ class pdf_cornas extends ModelePDFSuppliersOrders
$pdf->SetXY($posx, $posy);
$pdf->SetTextColor(0, 0, 60);
$title = $outputlangs->transnoentities("SupplierOrder")." ".$outputlangs->convToOutputCharset($object->ref);
if ($object->status == $object::STATUS_DRAFT) {
$pdf->SetTextColor(128, 0, 0);
$title .= ' - '.$outputlangs->transnoentities("NotValidated");
}
$pdf->MultiCell($w, 3, $title, '', 'R');
$posy += 1;
@ -1277,12 +1281,15 @@ class pdf_cornas extends ModelePDFSuppliersOrders
$pdf->SetXY($posx, $posy);
$pdf->SetTextColor(0, 0, 60);
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("OrderDate")." : ".dol_print_date($object->date_commande, "day", false, $outputlangs, true), '', 'R');
} else {
}
// no point in having this here this a document sent to supplier
/*} else {
$posy += 5;
$pdf->SetXY($posx, $posy);
$pdf->SetTextColor(255, 0, 0);
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("OrderToProcess"), '', 'R');
}
}*/
$pdf->SetTextColor(0, 0, 60);
$usehourmin = 'day';

View file

@ -1159,6 +1159,10 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$pdf->SetXY($posx, $posy);
$pdf->SetTextColor(0, 0, 60);
$title = $outputlangs->transnoentities("SupplierOrder")." ".$outputlangs->convToOutputCharset($object->ref);
if ($object->status == $object::STATUS_DRAFT) {
$pdf->SetTextColor(128, 0, 0);
$title .= ' - '.$outputlangs->transnoentities("NotValidated");
}
$pdf->MultiCell($w, 3, $title, '', 'R');
$posy += 1;
@ -1200,12 +1204,14 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$pdf->SetXY($posx, $posy);
$pdf->SetTextColor(0, 0, 60);
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("OrderDate")." : ".dol_print_date($object->date_commande, "day", false, $outputlangs, true), '', 'R');
} else {
}
// no point in having this here this a document sent to supplier
/*} else {
$posy += 5;
$pdf->SetXY($posx, $posy);
$pdf->SetTextColor(255, 0, 0);
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("OrderToProcess"), '', 'R');
}
}*/
$pdf->SetTextColor(0, 0, 60);
$usehourmin = 'day';