'Fehlbetrag setzen' mit Schweizer Zahlenformat kompatibel machen
authorAndreas Rudin <andreas.rudin@revamp-it.ch>
Mon, 28 Feb 2022 00:07:13 +0000 (01:07 +0100)
committerAndreas Rudin <andreas.rudin@revamp-it.ch>
Mon, 28 Feb 2022 00:07:13 +0000 (01:07 +0100)
Im Javascript Code " statt ' verwenden, damit Betraege ueber 1000
im Schweizer Zahlenformat mit ' als Tausender-Trennzeichen
verarbeitet werden koennen.

templates/webpages/ap/form_header.html
templates/webpages/ar/form_header.html
templates/webpages/ir/_payments.html
templates/webpages/is/_payments.html

index f3aa55e..05b7a7a 100644 (file)
 <hr size="3" noshade>
 
 <script type='text/javascript'>
- $('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
+ $('#ap_set_to_paid_missing').click(function(){ $('input[id^="payment_paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
 </script>
index 755d564..1b691ab 100644 (file)
 </div>
 
 <script type='text/javascript'>
- $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
+ $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
 </script>
index 6726c8b..1110839 100644 (file)
     </td>
   </tr>
     <script type='text/javascript'>
-     $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
+     $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
     </script>
index 93a0fb8..8072df3 100644 (file)
     </td>
   </tr>
     <script type='text/javascript'>
-     $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
+     $('#is_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val("[% LxERP.format_amount(paid_missing, 2) %]") });
     </script>