mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:37:33 -05:00 
			
		
		
		
	Report 1 - Minor Update
This commit is contained in:
		
							parent
							
								
									b6c3f562f1
								
							
						
					
					
						commit
						ea03f33069
					
				@ -964,7 +964,6 @@ GlobalY=GlobalY+14; //padding from top
 | 
			
		||||
        var totalX = lineTotalRight - (doc.getStringUnitWidth(lineTotal) * doc.internal.getFontSize());
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        x=GlobalY;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -975,6 +974,36 @@ GlobalY=GlobalY+14; //padding from top
 | 
			
		||||
        length=doc.splitTextToSize(item.notes, 200).length;
 | 
			
		||||
        var h=length*FontSize;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        MaxGlobalY=760;
 | 
			
		||||
 | 
			
		||||
        if (h+GlobalY > MaxGlobalY) {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            tableTop = 40;
 | 
			
		||||
            GlobalY=tableTop;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            //var MaxLinesPerPage=70;
 | 
			
		||||
 | 
			
		||||
            doc.addPage();
 | 
			
		||||
            if (invoice.imageLogo1)
 | 
			
		||||
            {
 | 
			
		||||
                pageHeight=820;
 | 
			
		||||
                var left = headerRight ;
 | 
			
		||||
                y=pageHeight-invoice.imageLogoHeight1;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                var left = headerRight - invoice.imageLogoWidth1;
 | 
			
		||||
                doc.addImage(invoice.imageLogo1, 'JPEG', left, y, invoice.imageLogoWidth1, invoice.imageLogoHeight1);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
            if ((i%2)===0){
 | 
			
		||||
            doc.setLineWidth(0.5);
 | 
			
		||||
            doc.setDrawColor(200,200,200);
 | 
			
		||||
@ -991,7 +1020,9 @@ GlobalY=GlobalY+14; //padding from top
 | 
			
		||||
 | 
			
		||||
            doc.rect(x1, y1, w2, h2, 'FD');
 | 
			
		||||
        }
 | 
			
		||||
        x=GlobalY;
 | 
			
		||||
 | 
			
		||||
        GlobalY=GlobalY+h+tablePadding*2;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1018,10 +1049,11 @@ GlobalY=GlobalY+14; //padding from top
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        GlobalY=GlobalY+h+tablePadding*2;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 | 
			
		||||
        if (line > MaxLinesPerPage) {
 | 
			
		||||
            line = 0;
 | 
			
		||||
 | 
			
		||||
@ -1047,6 +1079,7 @@ GlobalY=GlobalY+14; //padding from top
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user