Merge pull request #23297 from joseplluis/patch-12
NEW filter for Signed+Billed in proposals
This commit is contained in:
commit
5bfcc43100
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2022 Josep Lluís Amador <joseplluis@lliuretic.cat>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -132,6 +133,14 @@ class FormPropal
|
|||||||
print '</option>';
|
print '</option>';
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
//Option for Signed+Billed
|
||||||
|
if ($selected != '' && $selected == "2,4") {
|
||||||
|
print '<option value="2,4" selected>';
|
||||||
|
} else {
|
||||||
|
print '<option value="2,4">';
|
||||||
|
}
|
||||||
|
print ($langs->trans($prefix.'Signed'.($short ? 'Short' : '')).' '.$langs->trans("or").' '.$langs->trans($prefix.'Billed'.($short ? 'Short' : '')));
|
||||||
|
print '</option>';
|
||||||
print '</select>';
|
print '</select>';
|
||||||
|
|
||||||
print ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($showempty < 0 ? (string) $showempty : '-1'), $morecss);
|
print ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($showempty < 0 ? (string) $showempty : '-1'), $morecss);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user