mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Merge branch 'affiliate-program' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/development
This commit is contained in:
@@ -49,7 +49,11 @@ class TracksAffiliateOrder
|
||||
// We'll use a KeyValuePair to track which bookings have been counted
|
||||
$kvpKey = 'affiliate_order_tracked_' . $affiliate->id;
|
||||
|
||||
if ($booking->hasAttribute($kvpKey)) {
|
||||
$existingKvp = $booking->attributesKVP()
|
||||
->where('key', $kvpKey)
|
||||
->exists();
|
||||
|
||||
if ($existingKvp) {
|
||||
return $affiliate; // Already counted
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user