|
|
|
|
@ -100,12 +100,7 @@ has_field 'add_vat' => (
|
|
|
|
|
default => 0,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
has_field 'invoice_email_template' => (
|
|
|
|
|
type => '+NGCP::Panel::Field::EmailTemplate',
|
|
|
|
|
label => 'Invoice Email Template',
|
|
|
|
|
do_label => 1,
|
|
|
|
|
required => 0,
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
has_field 'save' => (
|
|
|
|
|
type => 'Submit',
|
|
|
|
|
@ -131,7 +126,7 @@ sub update_fields {
|
|
|
|
|
my $c = $self->ctx;
|
|
|
|
|
return unless $c;
|
|
|
|
|
|
|
|
|
|
foreach my $field(qw/subscriber_email_template passreset_email_template invoice_email_template/) {
|
|
|
|
|
foreach my $field(qw/subscriber_email_template passreset_email_template/) {
|
|
|
|
|
my $email = $self->field($field);
|
|
|
|
|
if($email && $c->stash->{contract}) {
|
|
|
|
|
$email->field('id')->ajax_src(
|
|
|
|
|
|