Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 77f7372c

Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt

  • ID 77f7372ce9c1338e80f3922023ab7d77edf84cc5
  • Vorgänger abdd2e61
  • Nachfolger 489e85ab

Neues kivitendo Design restliche Aenderungen in templates/webpages/i*

Dateien ic/* io/* ir/* is/*

Unterschiede anzeigen:

templates/webpages/is/_payments.html
1
[%- USE LxERP %]
2
[%- USE T8 %]
3
[%- USE L %]
4
  <tr>
5
   <td>
6
    <table width="100%">
7
     <tr class="listheading">
8
[% IF is_type_credit_note %]
9
      <th colspan="6" class="listheading">[%- 'Payments' | $T8 %]</th>
10
[% ELSE %]
11
      <th colspan="6" class="listheading">[%- 'Incoming Payments' | $T8 %]</th>
12
[%- END %]
13
     </tr>
14

  
15

  
16
     <tr>
17
      <th>[%- 'Date' | $T8 %]</th>
18
      <th>[%- 'Source' | $T8 %]</th>
19
      <th>[%- 'Memo' | $T8 %]</th>
20
      <th>[%- 'Amount' | $T8 %]</th>
21
      <th></th>
22
[% IF show_exchangerate %]
23
      <th>[%- 'Exch' | $T8 %]</th>
24
[% END %]
25
      <th>[%- 'Account' | $T8 %]</th>
26
     </tr>
27

  
28

  
29
[% FOREACH i = paid_indices %]
30
  [% SET changeable    = 'changeable_'    _ i %]
31
  [% SET acc_trans_id  = 'acc_trans_id_'  _ i %]
32
  [% SET p_gldate      = 'gldate_'        _ i %]
33
  [% SET datepaid      = 'datepaid_'      _ i %]
34
  [% SET source        = 'source_'        _ i %]
35
  [% SET memo          = 'memo_'          _ i %]
36
  [% SET paid          = 'paid_'          _ i %]
37
  [% SET AR_paid       = 'AR_paid_'       _ i %]
38
  [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %]
39
     <tr style='display:none'>
40
       <td>
41
         <input type=hidden name="acc_trans_id_[% i %]" value="[% $acc_trans_id %]">
42
         <input type=hidden name="gldate_[% i %]" value="[% $p_gldate %]">
43
       </td>
44
     </tr>
45

  
46
     <tr>
47
     <td align="center">
48
     [% IF $changeable %]
49
       [% IF $datepaid %]
50
         [% L.date_tag('datepaid_'_ i, $datepaid) %]
51
       [% ELSE %]
52
         [% L.date_tag('datepaid_'_ i, today) %]
53
       [% END %]
54
     [% ELSE %]
55
       <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %]
56
     [% END %]
57
     </td>
58

  
59
     <td align=center>
60
     [% IF $changeable %]
61
       <input name="source_[% i %]" size="11" value="[% $source %]">
62
     [% ELSE %]
63
       <input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %]
64
     [% END %]
65
     </td>
66
     <td align="center">
67
     [% IF $changeable %]
68
       <input name="memo_[% i %]" size="11" value="[% $memo %]">
69
     [% ELSE %]
70
       <input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
71
     [% END %]
72
     </td>
73
     <td align="center">
74
     [% IF $changeable %]
75
       <input name="paid_[% i %]" size="11" data-validate="number" class="numeric" value="[% LxERP.format_amount($paid, 2, 1) %]">
76
     [% ELSE %]
77
       <input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
78
       [% LxERP.format_amount($paid, 2, 1) %]
79
     [% END %]
80
     </td>
81
     <td>
82
       [% IF $changeable && loop.last && paid_missing > 0 %]
83
         <input type='button' id='is_set_to_paid_missing' value='[% 'Set to paid missing' | $T8 %]'>
84
       [% END %]
85
     </td>
86

  
87
[% IF show_exchangerate %]
88
     <td align="center">
89
  [% SET forex        = 'forex_'        _ i %]
90
  [% SET exchangerate = 'exchangerate_' _ i %]
91
  [% IF $forex %]
92
        <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2) %]">
93
        [% LxERP.format_amount($forex, 2) %]
94
  [% ELSE %]
95
     [% IF $changeable %]
96
        <input name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
97
     [% ELSE %]
98
        <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
99
        [% LxERP.format_amount($exchangerate, 2, 1) %]
100
     [% END %]
101
  [% END %]
102
        <input type="hidden" name="forex_[% i %]" value="[% $forex %]">
103
     </td>
104
[% END %]
105

  
106
     <td align="center">
107
     [% IF $changeable %]
108
       <select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select>
109
     [% ELSE %]
110
       <input type="hidden" name="AR_paid_[% i %]" value="[% $AR_paid %]">[% $AR_paid %]
111
     [% END %]
112
     </td>
113

  
114
    </tr>
115
[% END # foreach %]
1
[% USE LxERP %]
2
[% USE T8 %]
3
[% USE L %]
116 4

  
5
<table class="tbl-list">
6
  <caption>
7
    [% IF is_type_credit_note %]
8
      [% 'Payments' | $T8 %]
9
    [% ELSE %]
10
      [% 'Incoming Payments' | $T8 %]
11
    [% END %]
12
  </caption>
13
  <thead>
14
  <tr>
15
    <th>[% 'Date' | $T8 %]</th>
16
    <th>[% 'Source' | $T8 %]</th>
17
    <th>[% 'Memo' | $T8 %]</th>
18
    <th>[% 'Amount' | $T8 %]</th>
19
    <th></th>
20
    [% IF show_exchangerate %]
21
    <th>[% 'Exch' | $T8 %]</th>
22
    [% END %]
23
    <th>[% 'Account' | $T8 %]</th>
24
  </tr>
25
  </thead>
26
  <tbody>
27
    [% FOREACH i = paid_indices %]
28
      [% SET changeable    = 'changeable_'    _ i %]
29
      [% SET acc_trans_id  = 'acc_trans_id_'  _ i %]
30
      [% SET p_gldate      = 'gldate_'        _ i %]
31
      [% SET datepaid      = 'datepaid_'      _ i %]
32
      [% SET source        = 'source_'        _ i %]
33
      [% SET memo          = 'memo_'          _ i %]
34
      [% SET paid          = 'paid_'          _ i %]
35
      [% SET AR_paid       = 'AR_paid_'       _ i %]
36
      [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %]
37
      <!-- PENDENT: anders lösen -->
38
      <tr style='display:none'>
39
        <td>
40
          <input type=hidden name="acc_trans_id_[% i %]" value="[% $acc_trans_id %]">
41
          <input type=hidden name="gldate_[% i %]" value="[% $p_gldate %]">
42
        </td>
43
      </tr>
44
      <tr>
45
        <td>
46
          [% IF $changeable %]
47
            [% IF $datepaid %]
48
              [% L.date_tag('datepaid_'_ i, $datepaid) %]
49
            [% ELSE %]
50
              [% L.date_tag('datepaid_'_ i, today) %]
51
            [% END %]
52
          [% ELSE %]
53
             <input type="hidden" name="datepaid_[% i %]" value="[% $datepaid %]"> [% $datepaid %]
54
          [% END %]
55
        </td>
56
        <td>
57
          [% IF $changeable %]
58
            <input type="text" name="source_[% i %]" size="11" value="[% $source %]">
59
          [% ELSE %]
60
            <input type="hidden" name="source_[% i %]" value="[% $source %]">[% $source %]
61
          [% END %]
62
        </td>
63
        <td>
64
          [% IF $changeable %]
65
            <input type="text" name="memo_[% i %]" size="11" value="[% $memo %]">
66
          [% ELSE %]
67
            <input type="hidden" name="memo_[% i %]" value="[% $memo %]">[% $memo %]
68
          [% END %]
69
        </td>
70
        <td>
71
        [% IF $changeable %]
72
          <input name="paid_[% i %]" size="11" data-validate="number" class="numeric" value="[% LxERP.format_amount($paid, 2, 1) %]">
73
        [% ELSE %]
74
          <input type="hidden" name="paid_[% i %]" value="[% LxERP.format_amount($paid, 2, 1) %]">
75
          [% LxERP.format_amount($paid, 2, 1) %]
76
        [% END %]
77
        </td>
78
        <td>
79
          [% IF $changeable && loop.last && paid_missing > 0 %]
80
            <input type="button" id="is_set_to_paid_missing" value="[% 'Set to paid missing' | $T8 %]">
81
          [% END %]
82
        </td>
83
        [% IF show_exchangerate %]
84
          <td>
85
           [% SET forex        = 'forex_'        _ i %]
86
           [% SET exchangerate = 'exchangerate_' _ i %]
87
           [% IF $forex %]
88
             <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2) %]">
89
             [% LxERP.format_amount($forex, 2) %]
90
           [% ELSE %]
91
             [% IF $changeable %]
92
               <input type="text" name="exchangerate_[% i %]" size="10" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
93
             [% ELSE %]
94
               <input type="hidden" name="exchangerate_[% i %]" value="[% LxERP.format_amount($exchangerate, 2, 1) %]">
95
               [% LxERP.format_amount($exchangerate, 2, 1) %]
96
             [% END %]
97
           [% END %]
98
         <input type="hidden" name="forex_[% i %]" value="[% $forex %]">
99
        </td>
100
        [% END %]
101
        <td>
102
          [% IF $changeable %]
103
            <select name="AR_paid_[% i %]">[% $selectAR_paid_ref %]</select>
104
          [% ELSE %]
105
            <input type="hidden" name="AR_paid_[% i %]" value="[% $AR_paid %]">[% $AR_paid %]
106
          [% END %]
107
        </td>
108
      </tr>
109
    [% END # foreach %]
110
  </tbody>
111
  <tfoot>
117 112
    <tr>
118
      <td></td>
119
      <td></td>
120
      <td align="center">[%- 'Total' | $T8 %]</td>
121
      <td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
113
      <td colspan="2"></td>
114
      <td class="right">[% 'Total' | $T8 %]</td>
115
      <td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td>
116
      <td colspan="2"></td>
122 117
    </tr>
123 118
    <tr>
124
      <td></td>
125
      <td></td>
126
      <td align="center">[%- 'Missing amount' | $T8 %]</td>
127
      <td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
128
    </tr>
129
    <tr style='display:none'>
130
     <td>
131
     <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
132
     <input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
133
     <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
134

  
135
     <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
136
    </td>
119
      <td colspan="2"></td>
120
      <td class="right">[% 'Missing amount' | $T8 %]</td>
121
      <td class="numeric">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
122
      <td colspan="2">
123
        <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
124
        <input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
125
        <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
126
        <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
127
      </td>
137 128
   </tr>
138
    </table>
129
  </tfoot>
130
</table>
139 131

  
140
    </td>
141
  </tr>
142
    <script type='text/javascript'>
143
     $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
144
    </script>
132
<script type='text/javascript'>
133
  $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
134
</script>

Auch abrufbar als: Unified diff