Fix field required only faor cheque payment mode
This commit is contained in:
parent
912ac8e3d6
commit
2592b4cba4
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2014 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
|
||||||
@ -363,7 +363,10 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
|
|||||||
|
|
||||||
if (code == \'CHQ\' || code == \'VIR\')
|
if (code == \'CHQ\' || code == \'VIR\')
|
||||||
{
|
{
|
||||||
$(\'.fieldrequireddyn\').addClass(\'fieldrequired\');
|
if (code == \'CHQ\')
|
||||||
|
{
|
||||||
|
$(\'.fieldrequireddyn\').addClass(\'fieldrequired\');
|
||||||
|
}
|
||||||
if ($(\'#fieldchqemetteur\').val() == \'\')
|
if ($(\'#fieldchqemetteur\').val() == \'\')
|
||||||
{
|
{
|
||||||
var emetteur = ('.$facture->type.' == 2) ? \''.dol_escape_htmltag($conf->global->MAIN_INFO_SOCIETE_NOM).'\' : jQuery(\'#thirdpartylabel\').val();
|
var emetteur = ('.$facture->type.' == 2) ? \''.dol_escape_htmltag($conf->global->MAIN_INFO_SOCIETE_NOM).'\' : jQuery(\'#thirdpartylabel\').val();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user