MaiXinRong %!s(int64=5) %!d(string=hai) anos
pai
achega
fbe17fe99e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/public/js/revise.js

+ 2 - 1
app/public/js/revise.js

@@ -656,7 +656,8 @@ $(document).ready(() => {
             switch (col.field) {
                 case 'code':
                     const posRange = pos.getLedgerPos(node.id);
-                    return posRange && posRange.length > 0;
+                    info.cancel = posRange && posRange.length > 0;
+                    break;
                 case 'unit_price':
                     info.cancel = (node.children && node.children.length > 0) || node.used;
                     break;