mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	
						commit
						0de3b4a0ff
					
				@ -1,5 +1,6 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use App\Models\Company;
 | 
				
			||||||
use Illuminate\Database\Migrations\Migration;
 | 
					use Illuminate\Database\Migrations\Migration;
 | 
				
			||||||
use Illuminate\Database\Schema\Blueprint;
 | 
					use Illuminate\Database\Schema\Blueprint;
 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
@ -17,6 +18,22 @@ return new class extends Migration
 | 
				
			|||||||
            $table->unsignedInteger("max_quantity")->nullable();
 | 
					            $table->unsignedInteger("max_quantity")->nullable();
 | 
				
			||||||
            $table->string("product_image", 191)->nullable();
 | 
					            $table->string("product_image", 191)->nullable();
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        Company::query()
 | 
				
			||||||
 | 
					                ->chunk(1000, function ($companies) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                foreach($companies as $c)
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    $settings = $c->settings;
 | 
				
			||||||
 | 
					                    $settings->font_size = 16;
 | 
				
			||||||
 | 
					                    $c->settings = $settings;
 | 
				
			||||||
 | 
					                    $c->save();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
 | 
				
			|||||||
@ -11,10 +11,15 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    body, html {
 | 
					    body, html {
 | 
				
			||||||
        margin: 0;
 | 
					        margin: 0;
 | 
				
			||||||
        padding: 0;
 | 
					        padding: 0;
 | 
				
			||||||
@ -114,7 +119,7 @@
 | 
				
			|||||||
        min-width: 100%;
 | 
					        min-width: 100%;
 | 
				
			||||||
        table-layout: fixed;
 | 
					        table-layout: fixed;
 | 
				
			||||||
        overflow-wrap: break-word;
 | 
					        overflow-wrap: break-word;
 | 
				
			||||||
        margin-top: 3rem;
 | 
					        margin-top: 0rem;
 | 
				
			||||||
        margin-bottom: 0px;
 | 
					        margin-bottom: 0px;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -16,10 +16,16 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @page {
 | 
					    @page {
 | 
				
			||||||
        margin-left: $global_margin;
 | 
					        margin-left: $global_margin;
 | 
				
			||||||
        margin-right: $global_margin;
 | 
					        margin-right: $global_margin;
 | 
				
			||||||
 | 
				
			|||||||
@ -11,10 +11,15 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    html {
 | 
					    html {
 | 
				
			||||||
        margin: 0;
 | 
					        margin: 0;
 | 
				
			||||||
        padding-top: 1rem;
 | 
					        padding-top: 1rem;
 | 
				
			||||||
 | 
				
			|||||||
@ -16,10 +16,14 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @page {
 | 
					    @page {
 | 
				
			||||||
        margin-left: $global_margin;
 | 
					        margin-left: $global_margin;
 | 
				
			||||||
        margin-right: $global_margin;
 | 
					        margin-right: $global_margin;
 | 
				
			||||||
 | 
				
			|||||||
@ -16,10 +16,15 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @page {
 | 
					    @page {
 | 
				
			||||||
        margin-left: $global_margin;
 | 
					        margin-left: $global_margin;
 | 
				
			||||||
        margin-right: $global_margin;
 | 
					        margin-right: $global_margin;
 | 
				
			||||||
 | 
				
			|||||||
@ -16,10 +16,14 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @page {
 | 
					    @page {
 | 
				
			||||||
        margin: $global_margin;
 | 
					        margin: $global_margin;
 | 
				
			||||||
        size: $page_size $page_layout;
 | 
					        size: $page_size $page_layout;
 | 
				
			||||||
 | 
				
			|||||||
@ -16,10 +16,14 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @page {
 | 
					    @page {
 | 
				
			||||||
        margin: $global_margin;
 | 
					        margin: $global_margin;
 | 
				
			||||||
        size: $page_size $page_layout;
 | 
					        size: $page_size $page_layout;
 | 
				
			||||||
 | 
				
			|||||||
@ -15,10 +15,14 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "7px";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      table tr td, table tr, th {
 | 
				
			||||||
 | 
					          font-size: $font_size !important;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      body, html {
 | 
					      body, html {
 | 
				
			||||||
          margin: 0;
 | 
					          margin: 0;
 | 
				
			||||||
          padding: 0;
 | 
					          padding: 0;
 | 
				
			||||||
 | 
				
			|||||||
@ -11,10 +11,14 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    html {
 | 
					    html {
 | 
				
			||||||
        width: 210mm;
 | 
					        width: 210mm;
 | 
				
			||||||
        height: 200mm;     
 | 
					        height: 200mm;     
 | 
				
			||||||
 | 
				
			|||||||
@ -11,10 +11,14 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    html {
 | 
					    html {
 | 
				
			||||||
        width: 210mm;
 | 
					        width: 210mm;
 | 
				
			||||||
        height: 200mm;     
 | 
					        height: 200mm;     
 | 
				
			||||||
 | 
				
			|||||||
@ -15,11 +15,15 @@
 | 
				
			|||||||
        -webkit-font-smoothing: antialiased;
 | 
					        -webkit-font-smoothing: antialiased;
 | 
				
			||||||
        -moz-osx-font-smoothing: grayscale;
 | 
					        -moz-osx-font-smoothing: grayscale;
 | 
				
			||||||
        font-family: $font_name, Helvetica, sans-serif;
 | 
					        font-family: $font_name, Helvetica, sans-serif;
 | 
				
			||||||
        font-size: "$font_size";
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
        zoom: 80%;
 | 
					        zoom: 80%;
 | 
				
			||||||
        margin: 0;
 | 
					        margin: 0;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    table tr td, table tr, th {
 | 
				
			||||||
 | 
					        font-size: $font_size !important;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
    @page {
 | 
					    @page {
 | 
				
			||||||
        margin: 0;
 | 
					        margin: 0;
 | 
				
			||||||
        size: $page_size $page_layout;
 | 
					        size: $page_size $page_layout;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user