forked from DGNum/gestioCOF
Correction sélection annulation(s)
This commit is contained in:
parent
25dd34e402
commit
ac61a6e5c6
2 changed files with 4 additions and 7 deletions
|
@ -118,6 +118,8 @@ class Account(models.Model):
|
|||
perms.add('kfet.override_frozen_protection')
|
||||
new_balance = self.balance + amount
|
||||
if new_balance < 0 and amount < 0:
|
||||
print(new_balance)
|
||||
print(amount)
|
||||
# Retrieving overdraft amount limit
|
||||
if (hasattr(self, 'negative')
|
||||
and self.negative.authz_overdraft_amount is not None):
|
||||
|
|
|
@ -1028,15 +1028,10 @@ $(document).ready(function() {
|
|||
selected: function(e, ui) {
|
||||
$(ui.selected).each(function() {
|
||||
if ($(this).hasClass('opegroup'))
|
||||
$(this).siblings('.ope').addClass('ui-selected');
|
||||
var opegroup = $(this).attr('data-opegroup');
|
||||
$(this).siblings('.ope[data-opegroup='+opegroup+']').addClass('ui-selected');
|
||||
});
|
||||
},
|
||||
unselected: function(e, ui) {
|
||||
$(ui.unselected).each(function() {
|
||||
if ($(this).hasClass('opegroup'))
|
||||
$(this).siblings('.ope').removeClass('ui-selected');
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(document).on('keydown', function (e) {
|
||||
|
|
Loading…
Reference in a new issue