diff --git a/web/org.openbravo.retail.posterminal/js/model/order.js b/web/org.openbravo.retail.posterminal/js/model/order.js
--- a/web/org.openbravo.retail.posterminal/js/model/order.js
+++ b/web/org.openbravo.retail.posterminal/js/model/order.js
@@ -1757,6 +1756,9 @@
     rejectQuotation: function (rejectReasonId, scope, callback) {
       var process = new OB.DS.Process('org.openbravo.retail.posterminal.QuotationsReject');
       OB.UTIL.showLoading(true);
+      if (OB.MobileApp.model.receipt.id === null || OB.MobileApp.model.receipt.id === undefined || OB.MobileApp.model.receipt.id === 'undefined') {
+        OB.error('The Id of the order is null');
+      }
       process.exec({
         orderid: OB.MobileApp.model.receipt.id,
         rejectReasonId: rejectReasonId
