Changed SMS package so it allows separate SMS for each person contract.
This commit is contained in:
parent
fb7160eb33
commit
d2287ef963
|
|
@ -223,6 +223,8 @@ public function store(StorePackageRequest $request): RedirectResponse
|
||||||
'created_by' => optional($request->user())->id,
|
'created_by' => optional($request->user())->id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
dd($data['items']);
|
||||||
|
|
||||||
$items = collect($data['items'])
|
$items = collect($data['items'])
|
||||||
->map(function (array $row) {
|
->map(function (array $row) {
|
||||||
return new PackageItem([
|
return new PackageItem([
|
||||||
|
|
@ -457,12 +459,12 @@ public function storeFromContracts(StorePackageFromContractsRequest $request, Ph
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$key = $phone->id ? 'id:'.$phone->id : 'num:'.$phone->nu;
|
$key = $phone->id ? 'id:'.$phone->id : 'num:'.$phone->nu;
|
||||||
if ($seen->contains($key)) {
|
/*if ($seen->contains($key)) {
|
||||||
// skip duplicates across multiple contracts/persons
|
// skip duplicates across multiple contracts/persons
|
||||||
$skipped++;
|
$skipped++;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}*/
|
||||||
$seen->push($key);
|
$seen->push($key);
|
||||||
$items[] = [
|
$items[] = [
|
||||||
'number' => (string) $phone->nu,
|
'number' => (string) $phone->nu,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user