fixed excel data format
This commit is contained in:
		@@ -4,8 +4,10 @@ namespace App\Exports\Purchases;
 | 
			
		||||
 | 
			
		||||
use App\Abstracts\Export;
 | 
			
		||||
use App\Models\Banking\Transaction as Model;
 | 
			
		||||
use Maatwebsite\Excel\Concerns\WithColumnFormatting;
 | 
			
		||||
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
 | 
			
		||||
 | 
			
		||||
class Payments extends Export
 | 
			
		||||
class Payments extends Export implements WithColumnFormatting
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
@@ -45,4 +47,11 @@ class Payments extends Export
 | 
			
		||||
            'reconciled',
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function columnFormats(): array
 | 
			
		||||
    {
 | 
			
		||||
        return [
 | 
			
		||||
            'A' => NumberFormat::FORMAT_DATE_YYYYMMDD,
 | 
			
		||||
        ];
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user