|  | @@ -117,7 +117,19 @@ const ledgerCheckUtil = {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      checkSameCode: function (ledgerTree, ledgerPos, decimal, option) {
 | 
	
		
			
				|  |  |          const error = [];
 | 
	
		
			
				|  |  | -        let xmj = ledgerTree.nodes.filter(x => { return /^((GD*)|G)?[0-9]+/.test(x.code); });
 | 
	
		
			
				|  |  | +        //let xmj = ledgerTree.nodes.filter(x => { return /^((GD*)|G)?[0-9]+/.test(x.code); });
 | 
	
		
			
				|  |  | +        let xmj = [];
 | 
	
		
			
				|  |  | +        const addXmjCheck = function (node) {
 | 
	
		
			
				|  |  | +            if (/^((GD*)|G)?[0-9]+/.test(node.code)) xmj.push(node);
 | 
	
		
			
				|  |  | +            for (const child of node.children) {
 | 
	
		
			
				|  |  | +                addXmjCheck(child);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        };
 | 
	
		
			
				|  |  | +        for (const topLevel of ledgerTree.children) {
 | 
	
		
			
				|  |  | +            if ([1, 3, 4].indexOf(topLevel.node_type) < 0) continue;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            addXmjCheck(topLevel);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          let check = null;
 | 
	
		
			
				|  |  |          while (xmj.length > 0) {
 | 
	
		
			
				|  |  |              [check, xmj] = _.partition(xmj, x => { return x.code === xmj[0].code; });
 |