Wire POS register loyalty earn and redeem through CRM.
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:
isaacclad
2026-07-15 15:46:28 +00:00
parent 38b7f96714
commit 468346b183
12 changed files with 680 additions and 25 deletions
@@ -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',
]);
});
}
};