Wire POS register loyalty earn and redeem through CRM.
Deploy Ladill POS / deploy (push) Has been cancelled
Deploy Ladill POS / deploy (push) Has been cancelled
Redeem at charge, earn on payment, reverse on cancel, and surface balances on the till, customer display, sales, and receipts.
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('pos_sales', function (Blueprint $table) {
|
||||
$table->unsignedInteger('loyalty_discount_minor')->default(0)->after('subtotal_minor');
|
||||
$table->unsignedInteger('loyalty_points_redeemed')->default(0)->after('loyalty_discount_minor');
|
||||
$table->unsignedInteger('loyalty_points_earned')->default(0)->after('loyalty_points_redeemed');
|
||||
$table->string('loyalty_external_ref', 80)->nullable()->after('loyalty_points_earned');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('pos_sales', function (Blueprint $table) {
|
||||
$table->dropColumn([
|
||||
'loyalty_discount_minor',
|
||||
'loyalty_points_redeemed',
|
||||
'loyalty_points_earned',
|
||||
'loyalty_external_ref',
|
||||
]);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user