[%
PROCESS select element_data = {
id = 'eca-entity-class-id'
name = 'entity_class'
name = "entity_class"
options = eca_classes
default_values = [ec]
text_attr = 'class'
value_attr = 'id'
label = text('Class')
} %] |
[% PROCESS input element_data = {
title = text("Number"),
label = text("Number"),
type= "text",
name = "meta_number",
value = credit_act.meta_number,
size = "10"
} %] |
[% PROCESS input element_data = {
title = text("Description"),
label = text("Description"),
type= "text",
name = "description",
value = credit_act.description,
size = "20"
} %] |
[% PROCESS input element_data = {
title = text('Pay To')
label = text('Pay To')
type = "text"
size = "50"
name = "pay_to_name"
value = credit_act.pay_to_name
class = "name"
} %]
|
[% PROCESS input element_data = {
title = text('Starting Date'),
label = text('Starting Date'),
name = "startdate",
class = "date",
value = credit_act.startdate,
type = "text",
size = "12",
maxlength = "10"
} #' %]
|
[% PROCESS input element_data = {
title = text('End Date'),
label = text('End Date'),
name = "enddate",
class = "date",
value = credit_act.enddate,
type = "text",
size = "12",
maxlength = "10"
} #' %]
|
[% INCLUDE input element_data = {
name = "threshold"
value = credit_act.threshold
type = "text"
size = "20"
title = text('Threshold')
label = text('Threshold')
class = "numeric"
} %] |
[% INCLUDE input element_data = {
title = text('Credit Limit'),
label = text('Credit Limit'),
name = "creditlimit",
value = credit_act.creditlimit,
type = "text",
size = "20"
} #' %]
|
[% INCLUDE input element_data = {
title = text('Payment Terms'),
label = text('Payment Terms'),
name = "terms",
value = credit_act.terms,
type = "text",
size = "5"
} %] [% text('days') %]
|
[% INCLUDE input element_data = {
title = text('Discount'),
label = text('Discount'),
name = "discount",
value = credit_act.discount,
type = "text",
size = "3",
maxlength = 3
} %]% /
[% INCLUDE input element_data = {
name = "discount_terms",
value = credit_act.discount_terms,
type = "text",
size = "3",
maxlength = 3
} %] [% text('days') %]
|
[% INCLUDE select element_data = {
name = "discount_account_id"
default_values = [credit_act.discount_account_id]
options = discount_acc_list
title = text('Account')
label = text('Account')
text_attr = "text"
value_attr = "id"
} %]
|
[% INCLUDE select element_data = {
name = "ar_ap_account_id"
default_values = [credit_act.ar_ap_account_id]
options = ar_ap_acc_list
title = (ec == 1) ? text('AP') : text('AR')
label = (ec == 1) ? text('AP') : text('AR')
text_attr = "text"
value_attr = "id"
} %]
|
[% INCLUDE select element_data = {
name = "cash_account_id"
default_values = [credit_act.cash_account_id]
options = cash_acc_list
title = text('Payment')
label = text('Payment')
text_attr = "text"
value_attr = "id"
} %]
|
[% INCLUDE select element_data = {
name = 'curr'
options = all_currencies
text_attr = 'curr'
value_attr = 'curr'
default_values = [credit_act.curr]
title = text('Currency')
label = text('Currency')
} %]
|
[% IF business_types.size %]
[%
INCLUDE select element_data = {
name = "business_id"
options = business_types
default_values = [credit_act.business_id]
text_attr = "description"
value_attr = "id"
title = text('Business Type') #'
label = text('Business Type') #'
default_blank = 1
} %]
[% END %]
|
[% IF pricegroups.size %]
[%
INCLUDE select element_data = {
default_values = [credit_act.pricegroup_id],
name = 'pricegroup_id'
options = pricegroups
title = text('Pricegroup')
label = text('Pricegroup')
value_attr = 'id'
text_attr = 'pricegroup'
default_blank = 1
} %]
[% END %] |
[% IF taxform_list.size %]
[%
INCLUDE select element_data = {
name = "taxform_id"
options = taxform_list
default_values = [credit_act.taxform_id]
text_attr = "form_name"
value_attr = "id"
title = text('Tax Form') #'
label = text('Tax Form') #'
default_blank = 1
} %]
[% END %]
|
[%
IF NOT credit_act.language_code;
credit_act.language_code = default_language;
END;
INCLUDE select_language element_data = {
title = text("Language")
label = text("Language")
name = "language_code"
default_values = [credit_act.language_code],
default_blank = 1,
options = language_code_list
text_attr = "text"
value_attr = "code"
} %]
|