Merge pull request #23297 from joseplluis/patch-12

NEW filter for Signed+Billed in proposals
This commit is contained in:
Laurent Destailleur 2023-01-02 01:51:28 +01:00 committed by GitHub
commit 5bfcc43100
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
<?php
/* 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
* it under the terms of the GNU General Public License as published by
@ -132,6 +133,14 @@ class FormPropal
print '</option>';
$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 ajax_combobox($htmlname, array(), 0, 0, 'resolve', ($showempty < 0 ? (string) $showempty : '-1'), $morecss);