Log vendor imports

This commit is contained in:
David Bomba 2023-07-18 11:42:36 +10:00
parent 514bbacc35
commit 40abf68bc9
3 changed files with 6 additions and 2 deletions

View File

@ -741,7 +741,6 @@ class BaseExport
$first_month_of_year = $this->company->getSetting('first_month_of_year') ?? 1; $first_month_of_year = $this->company->getSetting('first_month_of_year') ?? 1;
$fin_year_start = now()->createFromDate(now()->year, $first_month_of_year, 1); $fin_year_start = now()->createFromDate(now()->year, $first_month_of_year, 1);
$fin_year_start->subYearNoOverflow(); $fin_year_start->subYearNoOverflow();
if(now()->subYear()->lt($fin_year_start)) if(now()->subYear()->lt($fin_year_start))

View File

@ -440,6 +440,9 @@ class CheckoutComPaymentDriver extends BaseDriver
$request->query('cko-session-id') $request->query('cko-session-id')
); );
nlog("checkout3ds");
nlog($payment);
if (isset($payment['approved']) && $payment['approved']) { if (isset($payment['approved']) && $payment['approved']) {
return $this->processSuccessfulPayment($payment); return $this->processSuccessfulPayment($payment);
} else { } else {

View File

@ -45,6 +45,8 @@ class VendorRepository extends BaseRepository
{ {
$vendor->fill($data); $vendor->fill($data);
nlog($data);
$vendor->saveQuietly(); $vendor->saveQuietly();
if ($vendor->number == '' || ! $vendor->number) { if ($vendor->number == '' || ! $vendor->number) {