Negativer Amount auch bei filter_drafts
authorMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Mon, 7 Nov 2016 07:07:59 +0000 (08:07 +0100)
committerMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Mon, 7 Nov 2016 08:44:05 +0000 (09:44 +0100)
In einer Rechnung wird beim Erzeugen aus der Vorlage der gezahlte Wert nun
richtig ausgefüllt.
Wie in create_invoice.html negative Werte frisch formatieren (commit 15b2640059)

templates/webpages/bank_transactions/filter_drafts.html

index 3f708f0..7f08d26 100644 (file)
@@ -13,7 +13,7 @@
    [% FOREACH draft = DRAFTS %]
     <tr class="listrow[% loop.count % 2 %]">
      <td>[% HTML.escape(draft.itime_as_date) %]</td>
-     <td><a href="controller.pl?action=Draft/load&id=[% HTML.url(draft.id) %]&form.amount_1=[% SELF.transaction.amount_as_number %]&form.datepaid_1=[% HTML.url(SELF.transaction.transdate_as_date) %]&form.paid_1=[% SELF.transaction.amount_as_number %]&form.callback=[% HTML.url(callback) %]">[% HTML.escape(draft.description) %]</a></td>
+     <td><a href="controller.pl?action=Draft/load&id=[% HTML.url(draft.id) %]&form.amount_1=[% LxERP.format_amount(-1 * SELF.transaction.amount, 2) %]&form.datepaid_1=[% HTML.url(SELF.transaction.transdate_as_date) %]&form.paid_1=[% LxERP.format_amount(-1 * SELF.transaction.amount, 2) %]&form.callback=[% HTML.url(callback) %]">[% HTML.escape(draft.description) %]</a></td>
      <td>[% HTML.escape(draft.employee.name) %]</td>
      <td>[% HTML.escape(draft.vendor) %]</td>
     </tr>