Email quick sale receipts and send them again from the sales list
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* The optional address a quick sale's PDF receipt is emailed to (stored
|
||||
* encrypted), and when sending last succeeded or failed.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('quick_sales', function (Blueprint $table) {
|
||||
$table->text('receipt_email')->nullable()->after('credits_quick_sale_id');
|
||||
$table->timestamp('receipt_sent_at')->nullable()->after('receipt_email');
|
||||
$table->timestamp('receipt_send_failed_at')->nullable()->after('receipt_sent_at');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('quick_sales', function (Blueprint $table) {
|
||||
$table->dropColumn(['receipt_email', 'receipt_sent_at', 'receipt_send_failed_at']);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user