[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1957] trunk



Revision: 1957
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1957&view=rev
Author:   einhverfr
Date:     2007-12-06 16:06:29 -0800 (Thu, 06 Dec 2007)

Log Message:
-----------
New templates added for contact search and invoice/order

Modified Paths:
--------------
    trunk/UI/payments/payments_detail.html
    trunk/scripts/vendor.pl
    trunk/sql/modules/Roles.sql

Added Paths:
-----------
    trunk/UI/Contact/search.html
    trunk/UI/orders/
    trunk/UI/orders/order.html
    trunk/vendor.pl

Added: trunk/UI/Contact/search.html
===================================================================
--- trunk/UI/Contact/search.html	                        (rev 0)
+++ trunk/UI/Contact/search.html	2007-12-07 00:06:29 UTC (rev 1957)
@@ -0,0 +1,472 @@
+<?lsmb INCLUDE 'ui-header.html' ?> 
+<?lsmb PROCESS elements.html ?> 
+<body>
+<?lsmb IF account_class == 1 -?>
+<?lsmb entity_type = 'Vendor' -?>
+<?lsmb ELSIF account_class == 2 -?>
+<?lsmb entity_type = 'Customer' -?>
+<?lsmb ELSIF account_class == 3 -?>
+<?lsmb entity_type = 'Employee' -?>
+<?lsmb ELSE -?>
+<?lsmb entity_type = 'Unsupported' -?>
+<?lsmb END -?>
+<?lsmb title = text("$entity_type Search") # ' -?>
+<form method="post" action="<?lsmb script ?>">
+<?lsmb INCLUDE input element_data = {
+	type = "hidden"
+	name = "account_class"
+	value = account_class
+} -?>
+<table width="100%">
+  <tr><th class="listtop"><?lsmb title ?></th></tr>
+  <tr><td /></tr>
+  <tr valign="top">
+    <td>
+      <table>
+        <tr valign="top">
+          <td>
+            <table>
+              <tr>
+                <th align="right"><?lsmb text('Company Name') ?></th>
+                <td><?lsmb INCLUDE input element_data={size = '32', name = 'name'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Contact') ?></th>
+                <td><?lsmb INCLUDE input element_data={size = '32', name = 'contact'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('E-mail') ?></th>
+                <td><?lsmb INCLUDE input element_data={size = '32', name = 'email'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Phone') ?></th>
+                <td><?lsmb INCLUDE input element_data={size = '20', name = 'phone'} ?></td>
+              </tr>
+              <tr>
+<?lsmb IF entity_type == 'Customer' -?>
+                <th align="right"><?lsmb text('Salesperson') ?></th>
+                <td><?lsmb INCLUDE input element_data={size = '32', name = 'employee'} ?></td>
+<?lsmb ELSIF entity_type == 'Vendor' -?>
+                <th align="right"><?lsmb text('Employee') ?></th>
+                <td><?lsmb INCLUDE input element_data={size = '32', name = 'employee'} ?></td>
+<?lsmb END -?>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Notes') ?></th>
+                <td><?lsmb INCLUDE textarea element_data={
+  rows = '3', cols = '32', name = 'notes'} ?></td>
+              </tr>
+            </table>
+          </td>
+          <td>
+            <table>
+              <tr>
+                <th align="right"><?lsmb text("${form.label} Number") ?></th>
+                <td><?lsmb INCLUDE input element_data={
+  size = '32', name = "meta_number"} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Address') ?></th>
+                <td><?lsmb INCLUDE input element_data={
+  size = '32', name = 'address'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('City') ?></th>
+                <td><?lsmb INCLUDE input element_data={
+  size = '32', name = 'city'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('State/Province') ?></th>
+                <td><?lsmb INCLUDE input element_data={
+  size = '32', name = 'state'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Zip/Postal Code') ?></th>
+                <td><?lsmb INCLUDE input element_data={
+  size = '10', name = 'zipcode'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Country') ?></th>
+                <td><?lsmb INCLUDE input element_data={
+  size = '32', name = 'country'} ?></td>
+              </tr>
+              <tr>
+                <th align="right"><?lsmb text('Startdate') ?></th>
+                <td>
+                   <?lsmb text('From'); ' '; INCLUDE input element_data={
+  size = '11', name = 'startdatefrom', class = 'date', title = user.dateformat};
+                          text('To'); ' '; INCLUDE input element_data={
+  size = '11', name = 'startdateto', class = 'date', title = user.dateformat} ?>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+  <tr>
+    <td>
+      <table>
+<?lsmb IF target == 'list_history' -?>
+        <tr>
+          <td />
+          <td>
+            <table>
+              <tr>
+                <td>
+                  <table>
+                    <tr>
+                      <td align="right">
+                         <?lsmb INCLUDE input element_data={
+    type = 'radio',
+    name = 'type',
+    value = 'invoice',
+    label = text('Invoice'),
+    checked = 'checked',
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td align="right">
+                         <?lsmb INCLUDE input element_data={
+    type = 'radio',
+    name = 'type',
+    value = 'order',
+    label = text('Order'),
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td align="right">
+                         <?lsmb INCLUDE input element_data={
+    type = 'radio',
+    name = 'type',
+    value = 'quotation',
+    label = text('Quotation'),
+    } -?>
+                      </td>
+                    </tr>
+                  </table>
+                </td>
+                <td>
+                  <table>
+                    <tr>
+                      <th><?lsmb text('From') ?></th>
+                      <td><?lsmb INCLUDE input element_data={
+  size = '11', name = 'transdatefrom', class = 'date', title = user.dateformat} -?></td>
+                      <th><?lsmb text('To') ?></th>
+                      <td><?lsmb INCLUDE input element_data={
+  size = '11', name = 'transdateto', class = 'date', title = user.dateformat} -?></td>
+                    </tr>
+                    <tr>
+                      <td />
+                      <td colspan="3">
+                        <?lsmb INCLUDE input element_data={
+    name = 'open',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Open'),
+    checked = 'checked'
+    } -?>
+                        <?lsmb INCLUDE input element_data={
+    name = 'closed',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Closed'),
+    } -?>
+                      </td>
+                    </tr>
+                  </table>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+        <tr>
+          <th align="right"><?lsmb text('Include in Report') ?></th>
+            <td>
+              <table>
+                <tr>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'history',
+      type = 'radio',
+      value = 'summary',
+      label = text('Summary'),
+      checked = 'checked',
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'history',
+      type = 'radio',
+      value = 'detail',
+      label = text('Detail'),
+      } -?>
+                  </td>
+                </tr>
+                <tr>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_partnumber',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Part Number'), # '
+      checked = 'checked',
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_description',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Description'),
+      checked = 'checked',
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_sellprice',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Sell Price'), # '
+      checked = 'checked',
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_curr',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Currency'),
+      } -?>
+                  </td>
+                </tr>
+                <tr>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_qty',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Qty'),
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_unit',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Unit'),
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_discount',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Discount'),
+      } -?>
+                  </td>
+                </tr>
+                <tr>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_deliverydate',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Delivery Date'), # '
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_projectnumber',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Project Number'), # '
+      } -?>
+                  </td>
+                  <td align="right">
+    <?lsmb INCLUDE input element_data={
+      name = 'l_serialnumber',
+      type = 'checkbox',
+      value = 'Y',
+      label = text('Serial Number'), # '
+      } -?>
+                  </td>
+                </tr>
+              </table>
+            </td>
+          </tr>
+<?lsmb ELSIF target == 'list_names' ?>
+        <tr>
+          <td />
+          <td>
+  <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'all', label = text('All'), checked = 'checked'} -?>
+  <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'active', label = text('Active')} -?>
+  <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'inactive', label = text('Inactive')} -?>
+  <?lsmb INCLUDE input element_data={name = 'status', type = 'radio', value = 'orphaned', label = text('Orphaned')} -?>
+          </td>
+        </tr>
+        <tr>
+          <td />
+          <td>
+            <table>
+              <tr>
+                <td>
+                  <table>
+                    <tr>
+                      <td align="right">
+  <?lsmb INCLUDE input element_data={
+    name = 'l_transnumber',
+    type = 'checkbox',
+    value = 'Y',
+    label = form.translabel,
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td align="right">
+  <?lsmb INCLUDE input element_data={
+    name = 'l_invnumber',
+    type = 'checkbox',
+    value = 'Y',
+    label = form.invlabel,
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td align="right">
+  <?lsmb INCLUDE input element_data={
+    name = 'l_ordnumber',
+    type = 'checkbox',
+    value = 'Y',
+    label = form.ordlabel,
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td align="right">
+  <?lsmb INCLUDE input element_data={
+    name = 'l_quonumber',
+    type = 'checkbox',
+    value = 'Y',
+    label = form.quolabel,
+    } -?>
+                      </td>
+                    </tr>
+                  </table>
+                </td>
+                <td>
+                  <table>
+                    <tr>
+                      <th><?lsmb text('From') ?></th>
+                      <td>
+  <?lsmb INCLUDE input element_data={
+    name = 'transdatefrom',
+    class = 'date'
+    size = '11',
+    title = user.dateformat,
+    } -?>
+                      </td>
+                      <th><?lsmb text('To') ?></th>
+                      <td>
+  <?lsmb INCLUDE input element_data={
+    name = 'transdateto',
+    class = 'date'
+    size = '11',
+    title = user.dateformat,
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td />
+                      <td colspan="3">
+                        <?lsmb INCLUDE input element_data={
+    name = 'open',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Open'),
+    checked = 'checked'
+    } -?>
+                        <?lsmb INCLUDE input element_data={
+    name = 'closed',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Closed'),
+    } -?>
+                      </td>
+                    </tr>
+                    <tr>
+                      <td />
+                      <td colspan="3">
+                        <?lsmb INCLUDE input element_data={
+    name = 'l_amount',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Amount'),
+    checked = 'checked'
+    } -?>
+                        <?lsmb INCLUDE input element_data={
+    name = 'l_tax',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Tax'),
+    checked = 'checked'
+    } -?>
+                        <?lsmb INCLUDE input element_data={
+    name = 'l_total',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Total'),
+    checked = 'checked'
+    } -?>
+                        <?lsmb INCLUDE input element_data={
+    name = 'l_subtotal',
+    type = 'checkbox',
+    value = 'Y',
+    label = text('Subtotal'),
+    } -?>
+                      </td>
+                    </tr>
+                  </table>
+                </td>
+              </tr>
+            </table>
+          </td>
+        </tr>
+        <tr>
+          <th align="right"><?lsmb text('Include in Report') ?></th>
+          <td>
+            <table>
+  <?lsmb FOREACH line IN form.includes -?>
+              <tr>
+    <?lsmb FOREACH item IN line -?>
+                <td align="right">
+        <?lsmb INCLUDE input element_data=item -?>
+                </td>
+    <?lsmb END -?>
+              </tr>
+  <?lsmb END -?>
+            </table>
+          </td>
+        </tr>
+<?lsmb END ?>
+      </table>
+    </td>
+  </tr>
+  <tr>
+    <td><hr size="3" noshade="noshade" /></td>
+  </tr>
+</table>
+<?lsmb INCLUDE button element_data = {
+	text = text('Search')
+	name = "action"
+	value = 'get_results'
+	class = "submit"
+	type = "submit"
+} ?>
+  </form>
+
+</body>
+</html>

Added: trunk/UI/orders/order.html
===================================================================
--- trunk/UI/orders/order.html	                        (rev 0)
+++ trunk/UI/orders/order.html	2007-12-07 00:06:29 UTC (rev 1957)
@@ -0,0 +1,322 @@
+<?lsmb INCLUDE 'ui-header.html' ?>
+<?lsmb PROCESS elements.html # Form elements helper template ?>
+
+<body id="sales-invoice-body" onload="document.forms[0].partnumber_1.focus()">
+<form method="post" action="<?lsmb script ?>">
+  
+  <?lsmb
+    FOREACH hidden_element IN form_elements.hidden_elements;
+      PROCESS input element_data=hidden_element;
+    END;
+  ?>
+
+<table class="main-table">
+  <tr id="top-bar" class="listtop">
+    <th id="top-bar-header" class="listtop" colspan="4"><label id="top-bar-label"><?lsmb title ?></label></th>
+  </tr>
+   <tr>
+    <td id="customer-info-column">
+      <table id="customer-info-table">
+        <tr id="customer-row">
+          <td id="customer-label-column" class="label-left"><?lsmb text('Customer') ?></td>
+          <td id="customer-column">
+            <?lsmb IF form_elements.customer.type == 'select';
+                PROCESS select element_data=form_elements.customer;
+            ELSE;
+                PROCESS input element_data=form_elements.customer;
+            END ?>
+          </td>
+        </tr>
+        <tr id="credit-limit-remaining-row">
+          <td>&nbsp;</td>
+          <td id="credit-limit-remaining-column">
+            <div id="credit-limit-container" class="container-inline">
+              <label id="credit-limit-label" class="label-left"><?lsmb text('Credit Limit') ?></label>
+              <?lsmb creditlimit ?>
+              <label id="remaining-label" class="label-left"><?lsmb text('Remaining') ?></label>
+              <?lsmb creditremaining ?>
+            </div>
+          </td>
+        </tr>
+        <tr id="AR-row">
+          <td id="AR-label-column" class="label-left"><?lsmb text('Record in') ?></td>
+          <td id="AR-column">
+            <?lsmb PROCESS select element_data=form_elements.AR ?>
+          </td>
+        </tr>
+        <tr id="currency-exchangerate-row">
+          <td id="currency-exchangerate-label-column" class="label-left"><?lsmb text('Currency') ?></td>
+          <td id="currency-exchangerate-column">
+            <div id="currency-exchangerate-container" class="container-inline">
+              <?lsmb PROCESS select element_data=form_elements.currency ?>
+              <?lsmb
+                IF exchangerate;
+                  '<label id="exchangerate-label" class="label-left">' _ text('Exchange Rate') _ '</label>';
+                  PROCESS input element_data=form_elements.exchangerate;
+                END;
+              ?>
+            </div>
+          </td>
+        </tr>
+        <tr id="shippingpoint-row">
+          <td id="shippingpoint-label-column" class="label-left"><?lsmb text('Shipping Point') ?></td>
+          <td id="shippingpoint-column">
+            <?lsmb PROCESS input element_data=form_elements.shippingpoint ?>
+          </td>
+        </tr>
+        <tr id="shipvia-row">
+          <td id="shipvia-label-column" class="label-left"><?lsmb text('Ship via') ?></td>
+          <td id="shipvia-column">
+            <?lsmb PROCESS input element_data=form_elements.shipvia ?>
+          </td>
+        </tr>
+      </table>
+    </td>
+    <td id="invoice-info-column">
+      <table id="invoice-info-table">
+        <tr id="invnumber-row">
+          <td id="invnumber-label-column" class="label-left"><?lsmb text('Invoice Number') ?></td>
+          <td id="invnumber-column">
+            <?lsmb PROCESS input element_data=form_elements.invnumber ?>
+          </td>
+        </tr>
+        <tr id="ordnumber-row">
+          <td id="ordnumber-label-column" class="label-left"><?lsmb text('Order Number') ?></td>
+          <td id="ordnumber-column">
+            <?lsmb PROCESS input element_data=form_elements.ordnumber ?>
+          </td>
+        </tr>
+        <tr id="transdate-row">
+          <td id="transdate-label-column" class="label-left"><?lsmb text('Invoice Date') ?></td>
+          <td id="transdate-column">
+            <?lsmb PROCESS input element_data=form_elements.transdate ?>
+          </td>
+        </tr>
+        <tr id="duedate-row">
+          <td id="duedate-label-column" class="label-left"><?lsmb text('Due Date') ?></td>
+          <td id="duedate-column">
+            <?lsmb PROCESS input element_data=form_elements.duedate ?>
+          </td>
+        </tr>
+        <tr id="ponumber-row">
+          <td id="ponumber-label-column" class="label-left"><?lsmb text('PO Number') ?></td>
+          <td id="ponumber-column">
+            <?lsmb PROCESS input element_data=form_elements.ponumber ?>
+          </td>
+        </tr>
+      </table>
+    </td>
+  </tr>
+</table>
+
+<table id="items-table" class="main-table">
+  <tr id="items-header-row" class="listheading">
+    <?lsmb FOREACH column_name IN form_elements.line_item_columns ?>
+    <th id="items-<?lsmb column_name ?>-header" class="listheading"><?lsmb form_elements.line_item_column_data.$column_name ?></th>
+    <?lsmb END ?>
+  </tr>
+  
+<?lsmb FOREACH line_item IN form_elements.line_items ?>
+  <tr class="item-row">
+    <?lsmb FOREACH column_name IN form_elements.line_item_columns ?>
+    <td class="<?lsmb column_name ?>-column">
+      <?lsmb
+        IF column_name == 'description' && line_item.description.defined('text');
+          PROCESS textarea element_data=line_item.description;
+        ELSE;
+          PROCESS input element_data=line_item.$column_name;
+        END;
+      ?>
+      <?lsmb
+        IF line_item.$column_name.defined('skunumber');
+          PROCESS label element_data=line_item.$column_name.sku;
+          line_item.$column_name.skunumber;
+        END;
+      ?>
+    </td>
+    <?lsmb END ?>
+  </tr>
+  <?lsmb IF line_item.notes.size ?>
+  <tr class="notes-row">
+    <td colspan="2" class="delvar-column">
+      <?lsmb PROCESS input element_data=line_item.delvar ?>
+    </td>
+    <td class="notes-column">
+      <?lsmb
+        IF line_item.notes.defined('text');
+          PROCESS textarea element_data=line_item.notes;
+        ELSE;
+          PROCESS input element_data=line_item.notes;
+        END;
+      ?>
+    </td>
+    <?lsmb IF line_item.serialnumber.size ?>
+    <td colspan="6" class="serialnumber-column">
+      <?lsmb PROCESS input element_data=line_item.serialnumber ?>
+    </td>
+    <?lsmb END ?>
+  </tr>
+  <?lsmb END ?>
+  <?lsmb IF line_item.projectnumber.size || line_item.partsgroup.size ?>
+  <tr class="project-row">
+    <td colspan="<?lsmb form_elements.line_item_columns.size ?>" class="project-column">
+      <?lsmb
+        IF line_item.projectnumber.size;
+          PROCESS select element_data=line_item.projectnumber;
+        END;
+      ?>
+      <?lsmb IF line_item.partsgroup.size ?>
+        <?lsmb
+          IF line_item.partsgroup.defined('options');
+            PROCESS select element_data=line_item.partsgroup;
+          ELSE;
+            PROCESS label element_data=line_item.partsgroup.label;
+            line_item.partsgroup.partsgroup;
+          END;
+        ?>
+      <?lsmb END ?>
+    </td>
+  </tr>
+  <?lsmb END ?>
+<?lsmb END ?>
+  
+  <tr>
+    <td colspan="9">
+      <hr id="items-horizontal-rule" size="1" />
+    </td>
+  </tr>
+  <?lsmb IF form_elements.on_hold ?>
+  <tr>
+    <td colspan="9">
+      <?lsmb PROCESS label element_data=form_elements.on_hold ?>
+    </td>
+  </tr>
+  <?lsmb END ?>
+  <tr id="notes-totals-row">
+    <td id="notes-column" colspan="8">
+      <table id="notes-table">
+        <tr id="notes-label-row">
+          <th id="notes-label-header" class="label-right"><?lsmb text('Notes') ?></th>
+          <th id="internal-notes-label-header" class="label-right"><?lsmb text('Internal Notes') ?></th>
+        </tr>
+        <tr id="notes-row">
+          <td id="notes-column">
+            <?lsmb PROCESS textarea element_data=form_elements.notes ?>
+          </td>
+          <td id="internal-notes-column">
+            <?lsmb PROCESS textarea element_data=form_elements.intnotes ?>
+          </td>
+        </tr>
+      </table>
+    </td>
+    <td id="totals-column">
+      <table id="totals-table">
+        <tr id="subtotal-row">
+          <th id="subtotal-label-header" class="label-left"><?lsmb text('Subtotal') ?></th>
+          <td id="subtotal"><?lsmb invsubtotal ?></td>
+        </tr>
+        <?lsmb FOREACH tax_item IN form_elements.taxes ?>
+        <tr>
+          <th class="label-left tax-item-label"><?lsmb tax_item.description ?></th>
+          <td class="tax-item-amount"><?lsmb tax_item.amount ?></td>
+        </tr>
+        <?lsmb END ?>
+        <tr id="total-row">
+          <th id="total-label-header" class="label-left"><?lsmb text('Total') ?></th>
+          <td id="total"><?lsmb invtotal ?></td>
+        </tr>
+        <?lsmb IF _element.taxincluded ?>
+        <tr>
+          <td id="taxincluded-column">
+            <?lsmb PROCESS input element_data=form_elements.taxincluded ?>
+          </td>
+          <th id="taxincluded-label-header" class="label-right"><?lsmb text('Tax Included') ?></th>
+        </tr>
+        <?lsmb END ?>
+      </table>
+    </td>
+  </tr>
+</table>
+
+<table id="payments-table" class="main-table">
+  <tr id="payments-table-header-row" class="listheading">
+    <th id="payments-table-header" colspan="5" class="listheading"><?lsmb text('Payments') ?></th>
+  </tr>
+  <tr id="payments-headers">
+    <th id="payments-date-header"><?lsmb text('Date') ?></th>
+    <th id="payments-source-header"><?lsmb text('Source') ?></th>
+    <th id="payments-memo-header"><?lsmb text('Memo') ?></th>
+    <th id="payments-amount-header"><?lsmb text('Amount') ?></th>
+    <?lsmb IF currency != defaultcurrency ?>
+    <th id="payments-exch-header"><?lsmb text('Exch') ?></th>
+    <?lsmb END ?>
+    <th id="payments-account-header"><?lsmb text('Account') ?></th>
+  </tr>
+  
+  <?lsmb FOREACH payment_item IN form_elements.payment_items ?>
+  <tr>
+    <td class="payments-datepaid">
+      <?lsmb PROCESS input element_data=payment_item.datepaid ?>
+    </td>
+    <td class="payments-source">
+      <?lsmb PROCESS input element_data=payment_item.source ?>
+    </td>
+    <td class="payments-memo">
+      <?lsmb PROCESS input element_data=payment_item.memo ?>
+    </td>
+    <td class="payments-paid">
+      <?lsmb PROCESS input element_data=payment_item.paid ?>
+    </td>
+    <?lsmb IF currency != defaultcurrency ?>
+    <td class="payments-exch">
+      <?lsmb PROCESS input element_data=payment_item.exchangerate ?>
+    </td>
+    <?lsmb ELSE ?>
+      <?lsmb PROCESS input element_data=payment_item.exchangerate ?>
+    <?lsmb END ?>
+    <td class="payments-ar-paid">
+      <?lsmb PROCESS select element_data=payment_item.AR_paid ?>
+    </td>
+  </tr>
+  <?lsmb END ?>
+</table>
+
+<hr size="3" />
+
+<div id="type-selectors-container">
+  <?lsmb
+    PROCESS select element_data=form_elements.formname;
+    IF selectlanguage.defined;
+        PROCESS select element_data=form_elements.language;
+    END;
+    PROCESS select element_data=form_elements.format;
+    PROCESS select element_data=form_elements.media ?>
+</div>
+
+<div id="group-selectors-container">
+  <label id="group-by-selectors-label" class="label"><?lsmb text('Group by') ?> -&gt;</label>
+  <?lsmb 
+                FOREACH groupby IN form_elements.groupby;
+                  PROCESS input element_data=groupby;
+                END;
+  ?>
+</div>
+
+<div id="sort-selectors-container">
+  <label id="sort-by-selectors-label" class="label"><?lsmb text('Sort by') ?> -&gt;</label>
+  <?lsmb 
+                FOREACH sortby IN form_elements.sortby;
+                  PROCESS input element_data=sortby;
+                END;
+  ?>  
+</div>
+
+<hr id="horizontal-rule" />
+
+<?lsmb FOREACH button IN form_elements.buttons ?>
+  <?lsmb PROCESS button element_data=button ?>
+<?lsmb END ?>
+
+</form>
+</body>
+</html>

Modified: trunk/UI/payments/payments_detail.html
===================================================================
--- trunk/UI/payments/payments_detail.html	2007-12-06 22:18:01 UTC (rev 1956)
+++ trunk/UI/payments/payments_detail.html	2007-12-07 00:06:29 UTC (rev 1957)
@@ -270,6 +270,12 @@
 	class = "submit"
 	name = 'action'
 	} ?>
+    <?lsmb INCLUDE button element_data = {
+	text = text('Add Payment Fees') # '
+	value = 'paycom_add_fees'
+	class = 'submit'
+	name = 'action'
+	} ?>
   </form>
  </body>
 </html>

Modified: trunk/scripts/vendor.pl
===================================================================
--- trunk/scripts/vendor.pl	2007-12-06 22:18:01 UTC (rev 1956)
+++ trunk/scripts/vendor.pl	2007-12-07 00:06:29 UTC (rev 1957)
@@ -186,6 +186,19 @@
     $template->render($vendor);
 }
 
+sub search {
+    my ($request) = @_;
+    $request->{account_class} = 1;
+    my $template = LedgerSMB::Template->new( 
+	user => $request->{_user}, 
+    	template => 'search', 
+	locale => $request->{_locale},
+	path => 'UI/Contact',
+        format => 'HTML'
+    );
+    $template->render($request);
+}    
+
 sub save_contact {
     my ($request) = @_;
     my $vendor = LedgerSMB::DBObject::Vendor->new({base => $request});

Modified: trunk/sql/modules/Roles.sql
===================================================================
--- trunk/sql/modules/Roles.sql	2007-12-06 22:18:01 UTC (rev 1956)
+++ trunk/sql/modules/Roles.sql	2007-12-07 00:06:29 UTC (rev 1957)
@@ -1385,6 +1385,6 @@
  GRANT SELECT ON parts, partsgroup TO public;
  GRANT SELECT ON language, project TO public;
 GRANT SELECT ON business, exchangerate, department, shipto, tax TO public;
-GRANT ALL ON recurring, recurringemail, recurringprint TO public; 
+GRANT ALL ON recurring, recurringemail, recurringprint, status TO public; 
 --TODO, lock recurring down more
 

Added: trunk/vendor.pl
===================================================================
--- trunk/vendor.pl	                        (rev 0)
+++ trunk/vendor.pl	2007-12-07 00:06:29 UTC (rev 1957)
@@ -0,0 +1,2 @@
+#!/usr/bin/perl
+require "lsmb-request.pl";


Property changes on: trunk/vendor.pl
___________________________________________________________________
Name: svn:executable
   + *


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.