Just paste
Create new paste
Pastes Archive
2022-08-03 13:34:25
copy
raw
download
set_time_limit(0); $paymentsDb = new nya_paymentscorr(); $paymentsDb->where('note', 'LIKE', 'DISCOUNT:%'); $allDiscountPayments = $paymentsDb->getAll(); if (!empty($allDiscountPayments)) { foreach ($allDiscountPayments as $io => $each) { $reparation = '-' . $each['summ']; $billing->addcash($each['login'], $reparation); $paymentsDb->where('id', '=', $each['id']); $paymentsDb->delete(); } }
↑