X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Fpayalloc.js;h=a711e603cb40daf97dcc8924cefb339c5714eabd;hb=7e6e0807990447d2977b970c3a0fd28dc9250194;hp=a1cbc09ec3334f9c8cf548a69c42c2473f42d5c5;hpb=c51f4515e92fc251aa51b7809d4514161655fa37;p=fa-stable.git diff --git a/js/payalloc.js b/js/payalloc.js index a1cbc09e..a711e603 100644 --- a/js/payalloc.js +++ b/js/payalloc.js @@ -56,12 +56,20 @@ function allocate_none(doc) { var allocations = { '.amount': function(e) { - e.onblur = function() { - blur_alloc(this); + if(e.name == 'allocated_amount' || e.name == 'bank_amount') + { + e.onblur = function() { + var dec = this.getAttribute("dec"); + price_format(this.name, get_amount(this.name), dec); }; - e.onfocus = function() { - focus_alloc(this); - }; + } else { + e.onblur = function() { + blur_alloc(this); + }; + e.onfocus = function() { + focus_alloc(this); + }; + } } }