Merge branch '12.0_new_extend_retained_warranty' of github.com:atm-john/dolibarr into 12.0_new_extend_retained_warranty
This commit is contained in:
commit
48a9eb71ea
@ -3332,7 +3332,6 @@ if ($action == 'create')
|
|||||||
|
|
||||||
|
|
||||||
if($conf->global->INVOICE_USE_RETAINED_WARRANTY){
|
if($conf->global->INVOICE_USE_RETAINED_WARRANTY){
|
||||||
|
|
||||||
$rwStyle = 'display:none;';
|
$rwStyle = 'display:none;';
|
||||||
if(in_array(GETPOST('type', 'int'), $RetainedWarrantyInvoiceAvailableType)){
|
if(in_array(GETPOST('type', 'int'), $RetainedWarrantyInvoiceAvailableType)){
|
||||||
$rwStyle = '';
|
$rwStyle = '';
|
||||||
|
|||||||
@ -4610,7 +4610,8 @@ class Facture extends CommonInvoice
|
|||||||
* Currently used for documents generation : to know if retained warranty need to be displayed
|
* Currently used for documents generation : to know if retained warranty need to be displayed
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function displayRetainedWarranty(){
|
function displayRetainedWarranty()
|
||||||
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
// TODO : add a flag on invoices to store this conf : USE_RETAINED_WARRANTY_ONLY_FOR_SITUATION_FINAL
|
// TODO : add a flag on invoices to store this conf : USE_RETAINED_WARRANTY_ONLY_FOR_SITUATION_FINAL
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user