Fixes for tax provider checks

This commit is contained in:
David Bomba 2023-06-26 11:02:09 +10:00
parent e97b96d9f6
commit 966f6b5ea9
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class ReminderJob implements ShouldQueue
}
$reminder_template = $invoice->calculateTemplate('invoice');
nlog("reminder template = {$reminder_template}");
// nlog("reminder template = {$reminder_template}");
$invoice->service()->touchReminder($reminder_template)->save();
$fees = $this->calcLateFee($invoice, $reminder_template);

View File

@ -69,7 +69,7 @@ class ZipTax implements TaxProviderInterface
private function parseResponse($response)
{
if(isset($response['rCode']) && $response['rCode'] == 100)
if(isset($response['rCode']) && $response['rCode'] == 100 && isset($response['results']['0']))
return $response['results']['0'];
if(isset($response['rCode']) && class_exists(\Modules\Admin\Events\TaxProviderException::class))