fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13858]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13858]
Date: Tue, 08 Sep 2015 00:12:07 +0000

Revision: 13858
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13858
Author:   nelson224
Date:     2015-09-08 00:12:05 +0000 (Tue, 08 Sep 2015)
Log Message:
-----------


Added Paths:
-----------
    branches/dev-syncromind/rental/js/rental/billing.add.js

Copied: branches/dev-syncromind/rental/js/rental/billing.add.js (from rev 
13857, branches/dev-syncromind/rental/js/rental/billing.index.js)
===================================================================
--- branches/dev-syncromind/rental/js/rental/billing.add.js                     
        (rev 0)
+++ branches/dev-syncromind/rental/js/rental/billing.add.js     2015-09-08 
00:12:05 UTC (rev 13858)
@@ -0,0 +1,67 @@
+formatCheckOverride = function(key, oData) 
+{
+       return "<input type=\"checkbox\"  class=\"mychecks_override\"  
name=\"override_start_date[]\" value=\""+oData['id']+"\"/> " + 
oData['billing_start_date'];
+};
+
+formatCheckBill2 = function(key, oData) 
+{
+       return "<input type=\"checkbox\"  class=\"mychecks_bill2\"  
name=\"contract[]\" value=\""+oData['id']+"\"/>";
+};
+
+function formatterPrice (key, oData) 
+{
+       var amount = $.number( oData[key], decimalPlaces, decimalSeparator, 
thousandsSeparator ) + ' ' + currency_suffix;
+       return amount;
+}
+       
+function formatterArea (key, oData) 
+{
+       var amount = $.number( oData[key], decimalPlaces, decimalSeparator, 
thousandsSeparator ) + ' ' + area_suffix;
+       return amount;
+}
+
+var overrideAll = 0;
+checkOverride = function() 
+{
+       $(".mychecks_override").each(function()
+       {
+               if (overrideAll === 0)
+               {
+                       $(this).prop("checked", true);
+               }
+               else {
+                       $(this).prop("checked", false);
+               }
+       });
+       
+       if (overrideAll === 0)
+       {
+               overrideAll = 1;
+       }
+       else {
+               overrideAll = 0;
+       }
+};
+
+var bill2All = 0;
+checkBill2 = function() 
+{              
+       $(".mychecks_bill2").each(function()
+       {
+               if (bill2All === 0)
+               {
+                       $(this).prop("checked", true);
+               }
+               else {
+                       $(this).prop("checked", false);
+               }
+       });
+       
+       if (bill2All === 0)
+       {
+               bill2All = 1;
+       }
+       else {
+               bill2All = 0;
+       }
+};
\ No newline at end of file




reply via email to

[Prev in Thread] Current Thread [Next in Thread]