diff --git a/web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js b/web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js
index 24efadb..ff81715 100644
--- a/web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js
+++ b/web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js
@@ -534,6 +534,8 @@
     });
   };
 
+  
+  let isConsumingCreditNote = false;
   var consumeCreditNoteAmount = function(
     keyboard,
     receipt,
@@ -544,6 +546,17 @@
     fail,
     cardId
   ) {
+
+    // Check for ongoing consumption
+  if (isConsumingCreditNote) {
+    if (fail) {
+      fail();
+    }
+    return;
+  }
+  // Set flag
+  isConsumingCreditNote = true;
     if (keyboard && OB.UTIL.isNullOrUndefined(keyboard.model)) {
       if (fail) {
         fail();
@@ -555,6 +568,8 @@
           OB.UTIL.getStackTrace('', false)
       );
       showUnexpectedError();
+      isConsumingCreditNote = false;  // Reset flag
+
       return;
     }
 
@@ -594,6 +609,8 @@
       if (fail) {
         fail();
       }
+      isConsumingCreditNote = false;  // Reset flag
+
     }
 
     function resultConsumeCreditNoteAmount(trx, amt, gftSk, gftId) {
@@ -630,6 +647,8 @@
       if (success) {
         success();
       }
+      isConsumingCreditNote = false;  // Reset flag
+
     }
     OB.UI.GiftCardUtils.service(
       'org.openbravo.retail.giftcards.ConsumeGiftCardAmount',
