Email digital receipts, add promo settings, and apply tips at charge.
Deploy Ladill POS / deploy (push) Successful in 31s

Send real receipt emails from the customer display and sale page, store
branch promo content for the idle screen, and fold selected tips into totals.
This commit is contained in:
isaacclad
2026-07-15 16:10:20 +00:00
parent 468346b183
commit 600aedb59d
20 changed files with 675 additions and 19 deletions
+22
View File
@@ -24,6 +24,9 @@ class PosLocation extends Model
'receipt_logo_path',
'printer_paper_mm',
'printer_auto_print',
'customer_promo_headline',
'customer_promo_body',
'customer_promo_image_path',
];
protected function casts(): array
@@ -49,6 +52,25 @@ class PosLocation extends Model
return Storage::disk('public')->url($this->receipt_logo_path);
}
public function customerPromoImageUrl(): ?string
{
if ($this->customer_promo_image_path) {
return Storage::disk('public')->url($this->customer_promo_image_path);
}
return $this->receiptLogoUrl();
}
/** Default idle-screen promo for the customer-facing display. */
public function customerPromo(): array
{
return [
'headline' => $this->customer_promo_headline ?: $this->name,
'body' => $this->customer_promo_body ?: 'Thank you for shopping with us.',
'image_url' => $this->customerPromoImageUrl(),
];
}
public function products(): HasMany
{
return $this->hasMany(PosProduct::class, 'location_id');