Configure the Return Condition

Normally RMA can be done for items that are of type InvtPart, NonInvtPart, Kit. We cant do a return for assembly items or other items to make it possible we can do by extending the itemKeyMappiing file

Configuration.itemKeyMapping = Configuration.itemKeyMapping || {};
_.extend(Configuration.itemKeyMapping, {
             _isReturnable: function (item) {
             var type = item.get('itemtype');
             var notReturnable = item.get("custitem_non_returnable");
             return ((type === 'InvtPart' || type === 'NonInvtPart' || type === 'Kit') && !(notReturnable));
         },
     });

Leave a comment

Your email address will not be published. Required fields are marked *