[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[4504] trunk/UI/Contact
- Subject: SF.net SVN: ledger-smb:[4504] trunk/UI/Contact
- From: ..hidden..
- Date: Sat, 17 Mar 2012 09:39:16 +0000
Revision: 4504
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=4504&view=rev
Author: einhverfr
Date: 2012-03-17 09:39:15 +0000 (Sat, 17 Mar 2012)
Log Message:
-----------
Moving Company and Credit divs into separate templates for easier maintenance
Modified Paths:
--------------
trunk/UI/Contact/contact.html
Added Paths:
-----------
trunk/UI/Contact/divs/
trunk/UI/Contact/divs/company.html
trunk/UI/Contact/divs/credit.html
Modified: trunk/UI/Contact/contact.html
===================================================================
--- trunk/UI/Contact/contact.html 2012-03-17 09:28:24 UTC (rev 4503)
+++ trunk/UI/Contact/contact.html 2012-03-17 09:39:15 UTC (rev 4504)
@@ -69,6 +69,7 @@
ELSE;
nav_list.push({id = 'company_div', label = text('Company')},
{id = 'credit_div', label = text('Credit Accts')}); #'
+ div_list = ['company', 'credit'];
END;
IF entity_id;
nav_list.push(
@@ -90,7 +91,8 @@
<?lsmb END ?>
</ul>
<?lsmb FOREACH ITEM IN div_list;
- PROCESS ITEM;
+ INCLUDEDIV = "divs/" _ ITEM _ ".html";
+ PROCESS $INCLUDEDIV;
END
?>
</div>
@@ -266,496 +268,7 @@
</div>
</form>
</div>
-<?lsmb ELSE ?>
-<div class="container" id="company_div">
-<?lsmb SWITCH entity_class
- ?><?lsmb CASE 1 ?><?lsmb entity_classname = "Vendor"
- ?><?lsmb CASE 2 ?><?lsmb entity_classname = "Customer"
- ?><?lsmb END ?>
- <div class="listtop"><strong><?lsmb text("$operation $entity_classname") ?></strong></div>
-<form name="customer" method="post" action="<?lsmb script ?>">
-<?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "target_div"
- value = 'company_div'
- } ?>
- <?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "entity_id"
- value = entity_id
- } ?>
- <?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "id"
- value = company.id
- } ?>
-<?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "form_id"
- value = form_id
- } ?>
- <?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "account_class"
- value = account_class
- } ?>
-<div class="input_line">
-<div class="input_group1">
- <?lsmb PROCESS input element_data = {
- label = text('Control Code') #'
- type= "text"
- name = "control_code"
- value = company.control_code
- size = "20"
- } ?>
- <?lsmb IF !created_as_class;
- created_as_class = entity_class;
- END; # IF !created_as_class ?>
-</div>
-<div class="input_group2">
- <?lsmb company_entity_class = company.entity_class;
- IF !company_entity_class;
- company_entity_class = entity_class;
- END;
- PROCESS select element_data = {
- name = "created_as_class"
- options = entity_classes
- default_values = [company_entity_class]
- text_attr = 'class'
- value_attr = 'id'
- label = text('Class')
- } ?>
- <?lsmb PROCESS button element_data = {
- text = text('Generate Control Code') #'
- type = "submit"
- name = "action"
- value = "generate_control_code"
- class = "submit"
- } ?>
- <?lsmb PROCESS button element_data = {
- text = text('Retrieve')
- type = 'submit'
- name = 'action'
- value = 'get_by_cc'
- class = 'submit'
- } ?>
-</div>
-</div>
-<div class="input_line">
-<div class="input_group1">
- <?lsmb PROCESS input element_data = {
- label = text('Name')
- type= "text"
- name = "legal_name"
- value = company.legal_name
- size = "20"
- } ?>
-</div>
-<div class="input_group2">
- <?lsmb country_list.unshift({});
- company_country_id = company.country_id;
- IF !company_country_id;
- company_country_id = default_country_id;
- END;
- INCLUDE select element_data = {
- text_attr = "name"
- value_attr = "id"
- default_values = [company_country_id]
- options = country_list
- name = "country_id"
- label = text('Country')
- } ?>
-</div>
-</div>
-<div class="input_line">
-<div class="input_group1">
- <?lsmb INCLUDE input element_data = {
- label = text('Tax Number/SSN'),
- name = "tax_id",
- value = company.tax_id,
- type = "text",
- size = "19"
- } #' ?>
-</div>
-<div class="input_group2">
- <?lsmb INCLUDE input element_data = {
- label = text('SIC'),
- name = "sic_code",
- value = company.sic_code,
- type = "text",
- size = "19",
- class = 'sic'
- } ?>
-</div>
-</div>
-<div class="input_line" id="sales-tax-info">
-<div class="input_group1">
- <?lsmb INCLUDE input element_data = {
- label = text('Sales Tax ID') #'
- name = 'sales_tax_id'
- type = 'text'
- class = 'taxnumber'
- size = '19'
- value = company.sales_tax_id
- } ?>
-</div>
-<div class="input_group2">
- <?lsmb INCLUDE input element_data = {
- label = text('License Number') #'
- name = 'license_number'
- type = 'text'
- class = 'taxnumber'
- size = '19'
- value = company.license_number
- } ?>
-</div>
-</div>
-<div class="input_line">
- <hr/>
-<div class="input_group1">
- <?lsmb INCLUDE button element_data = {
- text = text('Save'),
- class="submit"
- type="submit"
- name="action"
- value="save"
- accesskey="S"
- title="Save [Alt-S]"
- } ?>
-</div>
-</div>
-</form>
-<?lsmb FOREACH n = notes ?>
-<div class="note">
-<div class="note_contents"><?lsmb n.note ?></div>
-</div>
<?lsmb END ?>
-</div>
-<?lsmb IF credit_list ?>
-<div id="credit_div" class="container">
-<div class="listtop"><strong>Accounts</strong></div>
- <table width="100%">
- <tr class="listheading">
- <th class="account_class"><?lsmb text('Type') ?></th>
- <th class="number"><?lsmb text("Number") ?></th>
- <th class="description"><?lsmb text("Description") ?></th>
- <th class="credit_limit"><?lsmb text('Credit Limit') ?></th>
- <th class="start_date"><?lsmb text('Start Date') ?></th>
- <th class="end_date"><?lsmb text('End Date') ?></th>
- </tr>
- <?lsmb FOREACH cl_item IN credit_list ?>
- <tr <?lsmb IF meta_number == cl_item.meta_number ;
- credit_act = cl_item; ?> class="active"<?lsmb END ?>>
- <td><?lsmb IF cl_item.entity_class == 1 ?><?lsmb text('Vendor') ?>
- <?lsmb ELSIF cl_item.entity_class == 2 ?><?lsmb text('Customer') ?>
- <?lsmb END ?>
- </td>
- <td><a href="<?lsmb script ?>?action=get&account_class=<?lsmb
- account_class ?>&entity_id=<?lsmb entity_id
- ?>&meta_number=<?lsmb cl_item.meta_number ?>"><?lsmb cl_item.meta_number ?></a></td>
- <td><?lsmb cl_item.description ?></td>
- <td><?lsmb cl_item.credit_limit ?></td>
- <td><?lsmb cl_item.start_date ?></td>
- <td><?lsmb cl_item.end_date ?></td>
- </tr>
- <?lsmb END ?>
- </table>
- <form id="credit_form" name="credit_form" method="post"
- action="<?lsmb script ?>">
-<?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "form_id"
- value = form_id
- } ?>
- <?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "entity_id"
- value = credit_act.entity_id
- } ?>
- <?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "id"
- value = credit_act.id
- } ?>
- <?lsmb PROCESS input element_data = {
- type = "hidden"
- name = "account_class"
- value = credit_act.entity_class
- } ?>
- <table>
- <tr class="eca_row">
- <td>
- <?lsmb PROCESS input element_data = {
- label = text("$entity_classname Number"),
- type= "text",
- name = "meta_number",
- value = credit_act.meta_number,
- size = "10"
- } # " ?></td>
- <td><?lsmb PROCESS input element_data = {
- label = text("Description"),
- type= "text",
- name = "description",
- value = credit_act.description,
- size = "20"
- } ?></td>
- </tr>
- <tr class="pay_to_row">
- <td colspan = "2">
- <?lsmb PROCESS input element_data = {
- label = text('Pay To') #'
- type = "text"
- size = "50"
- name = "pay_to_name"
- value = credit_act.pay_to_name
- class = "name"
- } ?>
- </td>
- </tr>
- <tr id="date-row">
- <td>
- <?lsmb PROCESS input element_data = {
- label = text('Starting Date'),
- name = "startdate",
- class = "date",
- value = credit_act.startdate,
- type = "text",
- size = "12",
- maxlength = "10"
- } #' ?>
- </td>
- <td>
- <?lsmb PROCESS input element_data = {
- label = text('End Date'),
- name = "enddate",
- class = "date",
- value = credit.enddate,
- type = "text",
- size = "12",
- maxlength = "10"
- } #' ?>
- </td>
- </tr>
- <tr id="credit-row">
- <td>
- <?lsmb INCLUDE input element_data = {
- label = text('Credit Limit'),
- name = "creditlimit",
- value = credit_act.creditlimit,
- type = "text",
- size = "20"
- } #' ?>
- </td>
- <td><span id="terms-span">
- <?lsmb INCLUDE input element_data = {
- label = text('Terms'),
- name = "terms",
- value = credit_act.terms,
- type = "text",
- size = "5"
- } ?> <?lsmb text('days') ?></span>
- </td>
- </tr>
- <tr id="discount-gifi-row">
- <td>
- <?lsmb INCLUDE input element_data = {
- label = text('Discount'),
- name = "discount",
- value = credit_act.discount,
- type = "text",
- size = "3",
- maxlength = 3
- } ?>% /
- <?lsmb INCLUDE input element_data = {
- name = "discount_terms",
- value = credit_act.discount_terms,
- type = "text",
- size = "3",
- maxlength = 3
- } ?> <?lsmb text('days') ?>
- </td>
- <td>
- <?lsmb INCLUDE input element_data = {
- label = text('Subcontract GIFI'),
- name = "gifi_accno",
- value = credit_act.gifi_accno,
- type = "text",
- size = "19"
- } #' ?>
- </td>
- </tr>
- <tr id="account-link-row">
- <td> <?lsmb INCLUDE select element_data = {
- name = "ar_ap_account_id"
- default_values = [credit_act.ar_ap_account_id]
- options = ar_ap_acc_list
- label = text((account_class == 1) ? 'AP' : 'AR')
- text_attr = "text"
- value_attr = "id"
- } ?>
- </td>
- <td> <?lsmb INCLUDE select element_data = {
- name = "cash_account_id"
- default_values = [credit_act.cash_account_id]
- options = cash_acc_list
- label = text('Payment')
- text_attr = "text"
- value_attr = "id"
- } ?>
- </td>
- <td> <?lsmb INCLUDE select element_data = {
- name = "discount_account_id"
- default_values = [credit_act.discount_account_id]
- options = discount_acc_list
- label = text('Discount')
- text_attr = "text"
- value_attr = "id"
- } ?>
- </td>
- </tr>
- <tr id="business-threshold-row">
- <td> <?lsmb business_types.unshift({});
- INCLUDE select element_data = {
- name = "business_id"
- options = business_types
- default_values = [credit_act.business_id]
- text_attr = "description"
- value_attr = "id"
- label = text('Business Type') #'
- } ?>
- </td>
- <td> <?lsmb INCLUDE input element_data = {
- name = "threshold"
- value = credit_act.threshold
- type = "text"
- size = "20"
- label = text('Threshold')
- class = "numeric"
- } ?>
- </tr>
-
- <tr id="taxform-threshold-row">
- <?lsmb taxform_list.unshift({}) ?>
-
- <td> <?lsmb INCLUDE select element_data = {
- name = "taxform_id"
- options = taxform_list
- default_values = [credit_act.taxform_id]
- text_attr = "form_name"
- value_attr = "id"
- label = text('Taxforms')
- } ?>
- </td>
- <td> <?lsmb INCLUDE select element_data = {
- label = text("Language")
- name = "language_code"
- default_values = [credit_act.language_code],
- options = language_code_list
- text_attr = "text"
- value_attr = "code"
- } ?>
- </td>
- <td> <?lsmb INCLUDE select element_data = {
- name = 'curr'
- options = all_currencies
- text_attr = 'text'
- value_attr = 'text'
- default_values = [credit_act.curr]
- label = text('Currency')
- } ?>
- </td>
-
- </tr>
-
- </table>
- <div class="input_container" id="tax-credit-div">
- <div class="listtop"><?lsmb text('Taxes') ?></div>
- <?lsmb FOR tx = all_taxes ?>
- <div class="inputrow" id="taxrow-<?lsmb tx.chart_id ?>">
- <span class="lable" id="txlabel-<?lsmb tx.chart_id ?>">
- <?lsmb tx.accno ?>--<?lsmb tx.description ?></span>
- <span class="input" id="txinput-<?lsmb tx.id ?>">
- <?lsmb checked = "";
- IF credit_act.tax_ids.grep(tx.id).size == 1;
- checked = "CHECKED";
- END;
- INCLUDE input element_data = {
- type = "checkbox"
- checked = checked
- name = "taxact_$tx.id"
- value = tx.id
- } ?><span></div>
- <?lsmb END # FOR tx ?>
- </div>
- <?lsmb IF credit_act.id;
- INCLUDE button element_data = {
- text = text('Save Changes'),
- class="submit"
- type="submit"
- name="action"
- value="save_credit"
- accesskey="C"
- title="Save Credit Account[Alt-C]"
- };
- END ?>
- <?lsmb INCLUDE button element_data = {
- text = text('Save New'),
- class="submit"
- type="submit"
- name="action"
- value="save_credit_new"
- title="Save Credit Account as New" #'
- } ?>
- <?lsmb INCLUDE button element_data = {
- class="submit"
- type="submit"
- name="action"
- value="add_transaction"
- accesskey="A"
- title="Transaction [Alt-A]"
- text = (entity_class == 1) ? text('AP Transaction') : text('AR Transaction')
- } ?>
- <?lsmb INCLUDE button element_data = {
- class="submit"
- type="submit"
- name="action"
- value="add_invoice"
- accesskey="I"
- title="Invoice [Alt-I]"
- text = (entity_class == 1) ? text('Vendor Invoice') : text('Customer Invoice')
- } ?>
- <?lsmb INCLUDE button element_data = {
- class="submit"
- type="submit"
- name="action"
- value="add_order"
- accesskey="O"
- title="Order [Alt-O]"
- text = (entity_class == 1) ? text('Purchase Order') : text('Sales Order')
- } ?>
- <?lsmb INCLUDE button element_data = {
- class="submit"
- type="submit"
- name="action"
- value="rfq"
- accesskey="Q"
- title="Quotation [Alt-Q]"
- text = (entity_class == 1) ? text('RFQ') : text('Quotation')
- } ?>
- <?lsmb INCLUDE button element_data = {
- class="submit"
- type="submit"
- name="action"
- value="pricelist"
- accesskey="P"
- title="Pricelist [Alt-P]"
- text = text('Pricelist')
- } ?>
-
- </form>
-</div>
-<?lsmb END ?>
-<?lsmb END ?>
<?lsmb IF entity_id and ((entity_class == 3) or (credit_id)) ?>
<div id="location_div" class="container">
<div class="listtop"><?lsmb text('Locations') ?></div>
Added: trunk/UI/Contact/divs/company.html
===================================================================
--- trunk/UI/Contact/divs/company.html (rev 0)
+++ trunk/UI/Contact/divs/company.html 2012-03-17 09:39:15 UTC (rev 4504)
@@ -0,0 +1,164 @@
+<div class="container" id="company_div">
+<?lsmb SWITCH entity_class
+ ?><?lsmb CASE 1 ?><?lsmb entity_classname = "Vendor"
+ ?><?lsmb CASE 2 ?><?lsmb entity_classname = "Customer"
+ ?><?lsmb END ?>
+ <div class="listtop"><strong><?lsmb text("$operation $entity_classname") ?></strong></div>
+<form name="customer" method="post" action="<?lsmb script ?>">
+<?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "target_div"
+ value = 'company_div'
+ } ?>
+ <?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "entity_id"
+ value = entity_id
+ } ?>
+ <?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "id"
+ value = company.id
+ } ?>
+<?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "form_id"
+ value = form_id
+ } ?>
+ <?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "account_class"
+ value = account_class
+ } ?>
+<div class="input_line">
+<div class="input_group1">
+ <?lsmb PROCESS input element_data = {
+ label = text('Control Code') #'
+ type= "text"
+ name = "control_code"
+ value = company.control_code
+ size = "20"
+ } ?>
+ <?lsmb IF !created_as_class;
+ created_as_class = entity_class;
+ END; # IF !created_as_class ?>
+</div>
+<div class="input_group2">
+ <?lsmb company_entity_class = company.entity_class;
+ IF !company_entity_class;
+ company_entity_class = entity_class;
+ END;
+ PROCESS select element_data = {
+ name = "created_as_class"
+ options = entity_classes
+ default_values = [company_entity_class]
+ text_attr = 'class'
+ value_attr = 'id'
+ label = text('Class')
+ } ?>
+ <?lsmb PROCESS button element_data = {
+ text = text('Generate Control Code') #'
+ type = "submit"
+ name = "action"
+ value = "generate_control_code"
+ class = "submit"
+ } ?>
+ <?lsmb PROCESS button element_data = {
+ text = text('Retrieve')
+ type = 'submit'
+ name = 'action'
+ value = 'get_by_cc'
+ class = 'submit'
+ } ?>
+</div>
+</div>
+<div class="input_line">
+<div class="input_group1">
+ <?lsmb PROCESS input element_data = {
+ label = text('Name')
+ type= "text"
+ name = "legal_name"
+ value = company.legal_name
+ size = "20"
+ } ?>
+</div>
+<div class="input_group2">
+ <?lsmb country_list.unshift({});
+ company_country_id = company.country_id;
+ IF !company_country_id;
+ company_country_id = default_country_id;
+ END;
+ INCLUDE select element_data = {
+ text_attr = "name"
+ value_attr = "id"
+ default_values = [company_country_id]
+ options = country_list
+ name = "country_id"
+ label = text('Country')
+ } ?>
+</div>
+</div>
+<div class="input_line">
+<div class="input_group1">
+ <?lsmb INCLUDE input element_data = {
+ label = text('Tax Number/SSN'),
+ name = "tax_id",
+ value = company.tax_id,
+ type = "text",
+ size = "19"
+ } #' ?>
+</div>
+<div class="input_group2">
+ <?lsmb INCLUDE input element_data = {
+ label = text('SIC'),
+ name = "sic_code",
+ value = company.sic_code,
+ type = "text",
+ size = "19",
+ class = 'sic'
+ } ?>
+</div>
+</div>
+<div class="input_line" id="sales-tax-info">
+<div class="input_group1">
+ <?lsmb INCLUDE input element_data = {
+ label = text('Sales Tax ID') #'
+ name = 'sales_tax_id'
+ type = 'text'
+ class = 'taxnumber'
+ size = '19'
+ value = company.sales_tax_id
+ } ?>
+</div>
+<div class="input_group2">
+ <?lsmb INCLUDE input element_data = {
+ label = text('License Number') #'
+ name = 'license_number'
+ type = 'text'
+ class = 'taxnumber'
+ size = '19'
+ value = company.license_number
+ } ?>
+</div>
+</div>
+<div class="input_line">
+ <hr/>
+<div class="input_group1">
+ <?lsmb INCLUDE button element_data = {
+ text = text('Save'),
+ class="submit"
+ type="submit"
+ name="action"
+ value="save"
+ accesskey="S"
+ title="Save [Alt-S]"
+ } ?>
+</div>
+</div>
+</form>
+<?lsmb FOREACH n = notes ?>
+<div class="note">
+<div class="note_contents"><?lsmb n.note ?></div>
+</div>
+<?lsmb END ?>
+</div>
Added: trunk/UI/Contact/divs/credit.html
===================================================================
--- trunk/UI/Contact/divs/credit.html (rev 0)
+++ trunk/UI/Contact/divs/credit.html 2012-03-17 09:39:15 UTC (rev 4504)
@@ -0,0 +1,324 @@
+<?lsmb IF credit_list ?>
+<div id="credit_div" class="container">
+<div class="listtop"><strong>Accounts</strong></div>
+ <table width="100%">
+ <tr class="listheading">
+ <th class="account_class"><?lsmb text('Type') ?></th>
+ <th class="number"><?lsmb text("Number") ?></th>
+ <th class="description"><?lsmb text("Description") ?></th>
+ <th class="credit_limit"><?lsmb text('Credit Limit') ?></th>
+ <th class="start_date"><?lsmb text('Start Date') ?></th>
+ <th class="end_date"><?lsmb text('End Date') ?></th>
+ </tr>
+ <?lsmb FOREACH cl_item IN credit_list ?>
+ <tr <?lsmb IF meta_number == cl_item.meta_number ;
+ credit_act = cl_item; ?> class="active"<?lsmb END ?>>
+ <td><?lsmb IF cl_item.entity_class == 1 ?><?lsmb text('Vendor') ?>
+ <?lsmb ELSIF cl_item.entity_class == 2 ?><?lsmb text('Customer') ?>
+ <?lsmb END ?>
+ </td>
+ <td><a href="<?lsmb script ?>?action=get&account_class=<?lsmb
+ account_class ?>&entity_id=<?lsmb entity_id
+ ?>&meta_number=<?lsmb cl_item.meta_number ?>"><?lsmb cl_item.meta_number ?></a></td>
+ <td><?lsmb cl_item.description ?></td>
+ <td><?lsmb cl_item.credit_limit ?></td>
+ <td><?lsmb cl_item.start_date ?></td>
+ <td><?lsmb cl_item.end_date ?></td>
+ </tr>
+ <?lsmb END ?>
+ </table>
+ <form id="credit_form" name="credit_form" method="post"
+ action="<?lsmb script ?>">
+<?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "form_id"
+ value = form_id
+ } ?>
+ <?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "entity_id"
+ value = credit_act.entity_id
+ } ?>
+ <?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "id"
+ value = credit_act.id
+ } ?>
+ <?lsmb PROCESS input element_data = {
+ type = "hidden"
+ name = "account_class"
+ value = credit_act.entity_class
+ } ?>
+ <table>
+ <tr class="eca_row">
+ <td>
+ <?lsmb PROCESS input element_data = {
+ label = text("$entity_classname Number"),
+ type= "text",
+ name = "meta_number",
+ value = credit_act.meta_number,
+ size = "10"
+ } # " ?></td>
+ <td><?lsmb PROCESS input element_data = {
+ label = text("Description"),
+ type= "text",
+ name = "description",
+ value = credit_act.description,
+ size = "20"
+ } ?></td>
+ </tr>
+ <tr class="pay_to_row">
+ <td colspan = "2">
+ <?lsmb PROCESS input element_data = {
+ label = text('Pay To') #'
+ type = "text"
+ size = "50"
+ name = "pay_to_name"
+ value = credit_act.pay_to_name
+ class = "name"
+ } ?>
+ </td>
+ </tr>
+ <tr id="date-row">
+ <td>
+ <?lsmb PROCESS input element_data = {
+ label = text('Starting Date'),
+ name = "startdate",
+ class = "date",
+ value = credit_act.startdate,
+ type = "text",
+ size = "12",
+ maxlength = "10"
+ } #' ?>
+ </td>
+ <td>
+ <?lsmb PROCESS input element_data = {
+ label = text('End Date'),
+ name = "enddate",
+ class = "date",
+ value = credit.enddate,
+ type = "text",
+ size = "12",
+ maxlength = "10"
+ } #' ?>
+ </td>
+ </tr>
+ <tr id="credit-row">
+ <td>
+ <?lsmb INCLUDE input element_data = {
+ label = text('Credit Limit'),
+ name = "creditlimit",
+ value = credit_act.creditlimit,
+ type = "text",
+ size = "20"
+ } #' ?>
+ </td>
+ <td><span id="terms-span">
+ <?lsmb INCLUDE input element_data = {
+ label = text('Terms'),
+ name = "terms",
+ value = credit_act.terms,
+ type = "text",
+ size = "5"
+ } ?> <?lsmb text('days') ?></span>
+ </td>
+ </tr>
+ <tr id="discount-gifi-row">
+ <td>
+ <?lsmb INCLUDE input element_data = {
+ label = text('Discount'),
+ name = "discount",
+ value = credit_act.discount,
+ type = "text",
+ size = "3",
+ maxlength = 3
+ } ?>% /
+ <?lsmb INCLUDE input element_data = {
+ name = "discount_terms",
+ value = credit_act.discount_terms,
+ type = "text",
+ size = "3",
+ maxlength = 3
+ } ?> <?lsmb text('days') ?>
+ </td>
+ <td>
+ <?lsmb INCLUDE input element_data = {
+ label = text('Subcontract GIFI'),
+ name = "gifi_accno",
+ value = credit_act.gifi_accno,
+ type = "text",
+ size = "19"
+ } #' ?>
+ </td>
+ </tr>
+ <tr id="account-link-row">
+ <td> <?lsmb INCLUDE select element_data = {
+ name = "ar_ap_account_id"
+ default_values = [credit_act.ar_ap_account_id]
+ options = ar_ap_acc_list
+ label = text((account_class == 1) ? 'AP' : 'AR')
+ text_attr = "text"
+ value_attr = "id"
+ } ?>
+ </td>
+ <td> <?lsmb INCLUDE select element_data = {
+ name = "cash_account_id"
+ default_values = [credit_act.cash_account_id]
+ options = cash_acc_list
+ label = text('Payment')
+ text_attr = "text"
+ value_attr = "id"
+ } ?>
+ </td>
+ <td> <?lsmb INCLUDE select element_data = {
+ name = "discount_account_id"
+ default_values = [credit_act.discount_account_id]
+ options = discount_acc_list
+ label = text('Discount')
+ text_attr = "text"
+ value_attr = "id"
+ } ?>
+ </td>
+ </tr>
+ <tr id="business-threshold-row">
+ <td> <?lsmb business_types.unshift({});
+ INCLUDE select element_data = {
+ name = "business_id"
+ options = business_types
+ default_values = [credit_act.business_id]
+ text_attr = "description"
+ value_attr = "id"
+ label = text('Business Type') #'
+ } ?>
+ </td>
+ <td> <?lsmb INCLUDE input element_data = {
+ name = "threshold"
+ value = credit_act.threshold
+ type = "text"
+ size = "20"
+ label = text('Threshold')
+ class = "numeric"
+ } ?>
+ </tr>
+
+ <tr id="taxform-threshold-row">
+ <?lsmb taxform_list.unshift({}) ?>
+
+ <td> <?lsmb INCLUDE select element_data = {
+ name = "taxform_id"
+ options = taxform_list
+ default_values = [credit_act.taxform_id]
+ text_attr = "form_name"
+ value_attr = "id"
+ label = text('Taxforms')
+ } ?>
+ </td>
+ <td> <?lsmb INCLUDE select element_data = {
+ label = text("Language")
+ name = "language_code"
+ default_values = [credit_act.language_code],
+ options = language_code_list
+ text_attr = "text"
+ value_attr = "code"
+ } ?>
+ </td>
+ <td> <?lsmb INCLUDE select element_data = {
+ name = 'curr'
+ options = all_currencies
+ text_attr = 'text'
+ value_attr = 'text'
+ default_values = [credit_act.curr]
+ label = text('Currency')
+ } ?>
+ </td>
+
+ </tr>
+
+ </table>
+ <div class="input_container" id="tax-credit-div">
+ <div class="listtop"><?lsmb text('Taxes') ?></div>
+ <?lsmb FOR tx = all_taxes ?>
+ <div class="inputrow" id="taxrow-<?lsmb tx.chart_id ?>">
+ <span class="lable" id="txlabel-<?lsmb tx.chart_id ?>">
+ <?lsmb tx.accno ?>--<?lsmb tx.description ?></span>
+ <span class="input" id="txinput-<?lsmb tx.id ?>">
+ <?lsmb checked = "";
+ IF credit_act.tax_ids.grep(tx.id).size == 1;
+ checked = "CHECKED";
+ END;
+ INCLUDE input element_data = {
+ type = "checkbox"
+ checked = checked
+ name = "taxact_$tx.id"
+ value = tx.id
+ } ?><span></div>
+ <?lsmb END # FOR tx ?>
+ </div>
+ <?lsmb IF credit_act.id;
+ INCLUDE button element_data = {
+ text = text('Save Changes'),
+ class="submit"
+ type="submit"
+ name="action"
+ value="save_credit"
+ accesskey="C"
+ title="Save Credit Account[Alt-C]"
+ };
+ END ?>
+ <?lsmb INCLUDE button element_data = {
+ text = text('Save New'),
+ class="submit"
+ type="submit"
+ name="action"
+ value="save_credit_new"
+ title="Save Credit Account as New" #'
+ } ?>
+ <?lsmb INCLUDE button element_data = {
+ class="submit"
+ type="submit"
+ name="action"
+ value="add_transaction"
+ accesskey="A"
+ title="Transaction [Alt-A]"
+ text = (entity_class == 1) ? text('AP Transaction') : text('AR Transaction')
+ } ?>
+ <?lsmb INCLUDE button element_data = {
+ class="submit"
+ type="submit"
+ name="action"
+ value="add_invoice"
+ accesskey="I"
+ title="Invoice [Alt-I]"
+ text = (entity_class == 1) ? text('Vendor Invoice') : text('Customer Invoice')
+ } ?>
+ <?lsmb INCLUDE button element_data = {
+ class="submit"
+ type="submit"
+ name="action"
+ value="add_order"
+ accesskey="O"
+ title="Order [Alt-O]"
+ text = (entity_class == 1) ? text('Purchase Order') : text('Sales Order')
+ } ?>
+ <?lsmb INCLUDE button element_data = {
+ class="submit"
+ type="submit"
+ name="action"
+ value="rfq"
+ accesskey="Q"
+ title="Quotation [Alt-Q]"
+ text = (entity_class == 1) ? text('RFQ') : text('Quotation')
+ } ?>
+ <?lsmb INCLUDE button element_data = {
+ class="submit"
+ type="submit"
+ name="action"
+ value="pricelist"
+ accesskey="P"
+ title="Pricelist [Alt-P]"
+ text = text('Pricelist')
+ } ?>
+
+ </form>
+</div>
+<?lsmb END ?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.