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

SF.net SVN: ledger-smb:[2785] trunk/UI/taxform



Revision: 2785
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2785&view=rev
Author:   einhverfr
Date:     2009-11-06 20:39:36 +0000 (Fri, 06 Nov 2009)

Log Message:
-----------
Adding missing UI stuff

Added Paths:
-----------
    trunk/UI/taxform/details_report.html
    trunk/UI/taxform/filter.html
    trunk/UI/taxform/summary_report.html

Added: trunk/UI/taxform/details_report.html
===================================================================
--- trunk/UI/taxform/details_report.html	                        (rev 0)
+++ trunk/UI/taxform/details_report.html	2009-11-06 20:39:36 UTC (rev 2785)
@@ -0,0 +1,41 @@
+<!--
+ * Occurs from filter_screen if vendor meta_number added, or from summary report of total amount is clicked
+ * vendor.meta_number (click through to edit vendor)
+ * transaction ap.invnumber (click through to review transaction, i.e. to edit transaction screen)
+ * transaction ap.duedate
+ * sum of acc_trans reportable entries
+ * sum of invoice reportable entries
+ * total of sums above 
+-->
+<?lsmb INCLUDE 'ui-header.html' 
+       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"]
+?>
+<?lsmb PROCESS 'elements.html' ?>
+<body>
+
+<table width="100%">
+  <tr class="listtop">
+    <th>Company</th>
+    <th>Vendor Number</th>
+    <th>Invoice Number</th>
+    <th>Due Date</th>
+    <th>acc_trans Sum</th>
+    <th>invoice Sum</th>
+    <th>Total</th>
+  </tr>
+  <tr height="5"><td></td></tr>
+<?lsmb FOREACH result IN results; i = loop.count ?>
+    <tr>
+      <td><?lsmb result.legal_name ?></td>
+      <td><a href="vendor.pl?action=get&account_class=<?lsmb result.entity_class ?>&entity_id=<?lsmb result.entity_id ?>&meta_number=<?lsmb result.meta_number ?>"><?lsmb result.meta_number ?></a></td>
+      <td><a href="ap.pl?AP=&vendor=&meta_number=<?lsmb result.meta_number ?>&invnumber=<?lsmb result.invnumber ?>&ordnumber=&ponumber=&source=&description=&notes=&shipvia=&transdatefrom=&transdateto=&month=&year=&interval=0&invoice_type=1&open=Y&summary=1&title=AP+Transactions&outstanding=&sort=transdate&l_invnumber=Y&l_transdate=Y&l_name=Y&l_amount=Y&l_paid=Y&action=continue&action=continue&nextsub=transactions&path=bin"><?lsmb result.invnumber ?></a></td>
+      <td><?lsmb result.duedate ?></td>
+      <td><?lsmb result.acc_sum ?></td>
+      <td><?lsmb result.invoice_sum ?></td>
+      <td><?lsmb result.total_sum ?></td>
+    </tr>
+<?lsmb END ?>
+</table>
+
+</body>
+</html>

Added: trunk/UI/taxform/filter.html
===================================================================
--- trunk/UI/taxform/filter.html	                        (rev 0)
+++ trunk/UI/taxform/filter.html	2009-11-06 20:39:36 UTC (rev 2785)
@@ -0,0 +1,121 @@
+<!--
+* tax form select box (optional)
+* date range boxes
+* optional vendor text box 
+-->
+<?lsmb INCLUDE 'ui-header.html' 
+       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"]
+?>
+<?lsmb PROCESS 'elements.html' ?>
+<body>
+
+<form method="post" action="<?lsmb script ?>">
+<?lsmb PROCESS input element_data = {
+    type = "hidden"
+    name = "sort"
+    value = "transdate"
+} ?>
+
+<table width="100%">
+  <tr>
+    <th class="listtop"><?lsmb text('Tax Form Reports') ?></th>
+  </tr>
+  <tr height="5"></tr>
+  <tr>
+    <td>
+      <table>
+        <tr>
+	<th align="right"><?lsmb text('Form') ?></th>
+	<td colspan="3">
+        <?lsmb PROCESS select element_data = {
+               name = "tax_form_id"
+               options = forms
+               text_attr = "form_name"
+               value_attr = "id"
+        } ?>
+
+	</tr>
+	
+        <tr>
+	<th align="right"><?lsmb text('Period') ?></th>
+
+	<td>
+        <?lsmb PROCESS select element_data = {
+               name = "begin_month"
+               options = accountingmonths
+               text_attr = "text"
+               value_attr = "value"
+        } ?>
+
+        <?lsmb PROCESS select element_data = {
+               name = "begin_day"
+               options = days
+               text_attr = "text"
+               value_attr = "value"
+        } ?>
+
+	<?lsmb PROCESS select element_data = {
+               name="begin_year"
+               options = all_years
+               text_attr = "text"
+               value_attr = "value"
+        } ?>
+        </td>
+        <td>to</td>
+	<td>
+        <?lsmb PROCESS select element_data = {
+               name = "end_month"
+               options = accountingmonths
+               text_attr = "text"
+               value_attr = "value"
+        } ?>
+
+        <?lsmb PROCESS select element_data = {
+               name = "end_day"
+               options = days
+               text_attr = "text"
+               value_attr = "value"
+        } ?>
+
+	<?lsmb PROCESS select element_data = {
+               name="end_year"
+               options = all_years
+               text_attr = "text"
+               value_attr = "value"
+        } ?>
+        </td>
+      </tr>
+	<tr>
+	  <th align="right"><?lsmb text('Vendor Number') ?></th>
+	  <td colspan="3"><?lsmb INCLUDE input element_data = {
+	                  name = "meta_number"
+	                  size = '35'
+           } ?></td>
+	</tr>
+      </table>
+    </td>
+  </tr>
+  <tr>
+    <td><hr size=3 noshade></td>
+  </tr>
+</table>
+
+<?lsmb PROCESS input element_data = { 
+       type="hidden" 
+       name="login" 
+       value=login
+} ?>
+
+<br>
+<?lsmb PROCESS button element_data = {
+       text = text('Continue')
+       class="submit" 
+       type="submit" 
+       name="action" 
+       value="generate_report"
+} ?>
+</form>
+
+</body>
+</html>
+

Added: trunk/UI/taxform/summary_report.html
===================================================================
--- trunk/UI/taxform/summary_report.html	                        (rev 0)
+++ trunk/UI/taxform/summary_report.html	2009-11-06 20:39:36 UTC (rev 2785)
@@ -0,0 +1,39 @@
+<!--
+ * Occurs from filter screen if no vendor meta_number added
+ * vendor company.legal_name
+ * vendor entity_credit_account.meta_number (click through to edit vendor!)
+ * vendor entity.control_code
+ * sum of acc_trans reportable entries
+ * sum of invoice reportable entries
+ * total of sums above (click through to details report) 
+-->
+<?lsmb INCLUDE 'ui-header.html' 
+       	include_script = ["UI/ajax/scriptaculous/lib/prototype.js","UI/ajax/scriptaculous/src/scriptaculous.js?load=builder,effects,dragdrop,controls","UI/ajax/helpers.js"]
+?>
+<?lsmb PROCESS 'elements.html' ?>
+<body>
+
+<table width="100%">
+  <tr class="listtop">
+    <th>Company</th>
+    <th>Vendor Number</th>
+    <th>Control Code</th>
+    <th>acc_trans Sum</th>
+    <th>invoice Sum</th>
+    <th>Total</th>
+  </tr>
+  <tr height="5"><td></td></tr>
+<?lsmb FOREACH result IN results; i = loop.count ?>
+    <tr>
+      <td><?lsmb result.legal_name ?></td>
+      <td><a href="vendor.pl?action=get&account_class=<?lsmb result.entity_class ?>&entity_id=<?lsmb result.entity_id ?>&meta_number=<?lsmb result.meta_number ?>"><?lsmb result.meta_number ?></a></td>
+      <td><?lsmb result.control_code ?></td>
+      <td><?lsmb result.acc_sum ?></td>
+      <td><?lsmb result.invoice_sum ?></td>
+      <td><a href="taxform.pl?action=generate_report&tax_form_id=<?lsmb tax_form_id ?>&begin_day=<?lsmb begin_day ?>&begin_month=<?lsmb begin_month ?>&begin_year=<?lsmb begin_year ?>&end_day=<?lsmb end_day ?>&end_month=<?lsmb end_month ?>&end_year=<?lsmb end_year ?>&meta_number=<?lsmb result.meta_number ?>"><?lsmb result.total_sum ?></a></td>
+    </tr>
+<?lsmb END ?>
+</table>
+
+</body>
+</html>


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