Fix adhtype amount as default on new subscription
This commit is contained in:
parent
b1de75758f
commit
dc465d6bac
@ -963,7 +963,7 @@ if ($rowid > 0) {
|
|||||||
|
|
||||||
if ($adht->subscription) {
|
if ($adht->subscription) {
|
||||||
// Amount
|
// Amount
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="subscription" size="6" value="'.GETPOST('subscription').'"> '.$langs->trans("Currency".$conf->currency).'</td></tr>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("Amount").'</td><td><input type="text" name="subscription" size="6" value="'. price(GETPOST("subscription")>0 ? GETPOST("subscription") : $adht->amount).'"> '.$langs->trans("Currency".$conf->currency) .'</td></tr>';
|
||||||
|
|
||||||
// Label
|
// Label
|
||||||
print '<tr><td>'.$langs->trans("Label").'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user