mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:47:32 -05:00 
			
		
		
		
	Minor fixes for reports
This commit is contained in:
		
							parent
							
								
									1416e03263
								
							
						
					
					
						commit
						f470d10f96
					
				@ -40,6 +40,7 @@ class ARDetailReport extends BaseExport
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    public array $report_keys = [
 | 
					    public array $report_keys = [
 | 
				
			||||||
        'date',
 | 
					        'date',
 | 
				
			||||||
 | 
					        'due_date',
 | 
				
			||||||
        'invoice_number',
 | 
					        'invoice_number',
 | 
				
			||||||
        'status',
 | 
					        'status',
 | 
				
			||||||
        'client_name',
 | 
					        'client_name',
 | 
				
			||||||
@ -114,6 +115,7 @@ class ARDetailReport extends BaseExport
 | 
				
			|||||||
        $client = $invoice->client;
 | 
					        $client = $invoice->client;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return [
 | 
					        return [
 | 
				
			||||||
 | 
					            $this->translateDate($invoice->date, $this->company->date_format(), $this->company->locale()),
 | 
				
			||||||
            $this->translateDate($invoice->due_date, $this->company->date_format(), $this->company->locale()),
 | 
					            $this->translateDate($invoice->due_date, $this->company->date_format(), $this->company->locale()),
 | 
				
			||||||
            $invoice->number,
 | 
					            $invoice->number,
 | 
				
			||||||
            $invoice->stringStatus($invoice->status_id),
 | 
					            $invoice->stringStatus($invoice->status_id),
 | 
				
			||||||
 | 
				
			|||||||
@ -36,6 +36,7 @@ class ClientBalanceReport extends BaseExport
 | 
				
			|||||||
        'client_name',
 | 
					        'client_name',
 | 
				
			||||||
        'client_number',
 | 
					        'client_number',
 | 
				
			||||||
        'id_number',
 | 
					        'id_number',
 | 
				
			||||||
 | 
					        'invoices',
 | 
				
			||||||
        'invoice_balance',
 | 
					        'invoice_balance',
 | 
				
			||||||
        'credit_balance',
 | 
					        'credit_balance',
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
@ -68,7 +69,7 @@ class ClientBalanceReport extends BaseExport
 | 
				
			|||||||
        $this->csv->insertOne([]);
 | 
					        $this->csv->insertOne([]);
 | 
				
			||||||
        $this->csv->insertOne([]);
 | 
					        $this->csv->insertOne([]);
 | 
				
			||||||
        $this->csv->insertOne([]);
 | 
					        $this->csv->insertOne([]);
 | 
				
			||||||
        $this->csv->insertOne([ctrans('texts.customer_balance_report')]);
 | 
					        $this->csv->insertOne([ctrans('texts.client_balance_report')]);
 | 
				
			||||||
        $this->csv->insertOne([ctrans('texts.created_on'),' ',$this->translateDate(now()->format('Y-m-d'), $this->company->date_format(), $this->company->locale())]);
 | 
					        $this->csv->insertOne([ctrans('texts.created_on'),' ',$this->translateDate(now()->format('Y-m-d'), $this->company->date_format(), $this->company->locale())]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (count($this->input['report_keys']) == 0) {
 | 
					        if (count($this->input['report_keys']) == 0) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user