mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tax provider checks
This commit is contained in:
parent
e97b96d9f6
commit
966f6b5ea9
@ -126,7 +126,7 @@ class ReminderJob implements ShouldQueue
|
|||||||
}
|
}
|
||||||
|
|
||||||
$reminder_template = $invoice->calculateTemplate('invoice');
|
$reminder_template = $invoice->calculateTemplate('invoice');
|
||||||
nlog("reminder template = {$reminder_template}");
|
// nlog("reminder template = {$reminder_template}");
|
||||||
$invoice->service()->touchReminder($reminder_template)->save();
|
$invoice->service()->touchReminder($reminder_template)->save();
|
||||||
$fees = $this->calcLateFee($invoice, $reminder_template);
|
$fees = $this->calcLateFee($invoice, $reminder_template);
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ class ZipTax implements TaxProviderInterface
|
|||||||
private function parseResponse($response)
|
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'];
|
return $response['results']['0'];
|
||||||
|
|
||||||
if(isset($response['rCode']) && class_exists(\Modules\Admin\Events\TaxProviderException::class))
|
if(isset($response['rCode']) && class_exists(\Modules\Admin\Events\TaxProviderException::class))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user