mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
working on authorize
This commit is contained in:
parent
72bbf24c69
commit
5e0bcfbc88
@ -160,19 +160,19 @@ class InvoiceSum
|
||||
{
|
||||
$this->total += $this->total_taxes;
|
||||
|
||||
if (is_numeric($this->invoice->custom_value1) && $this->invoice->custom_value1 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value1)) {
|
||||
$this->total += $this->invoice->custom_value1;
|
||||
}
|
||||
|
||||
if (is_numeric($this->invoice->custom_value2) && $this->invoice->custom_value2 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value2)) {
|
||||
$this->total += $this->invoice->custom_value2;
|
||||
}
|
||||
|
||||
if (is_numeric($this->invoice->custom_value3) && $this->invoice->custom_value3 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value3)) {
|
||||
$this->total += $this->invoice->custom_value3;
|
||||
}
|
||||
|
||||
if (is_numeric($this->invoice->custom_value4) && $this->invoice->custom_value4 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value4)) {
|
||||
$this->total += $this->invoice->custom_value4;
|
||||
}
|
||||
|
||||
|
@ -172,19 +172,19 @@ class InvoiceSumInclusive
|
||||
{
|
||||
//$this->total += $this->total_taxes;
|
||||
|
||||
if (is_numeric($this->invoice->custom_value1) && $this->invoice->custom_value1 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value1)) {
|
||||
$this->total += $this->invoice->custom_value1;
|
||||
}
|
||||
|
||||
if (is_numeric($this->invoice->custom_value2) && $this->invoice->custom_value2 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value2)) {
|
||||
$this->total += $this->invoice->custom_value2;
|
||||
}
|
||||
|
||||
if (is_numeric($this->invoice->custom_value3) && $this->invoice->custom_value3 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value3)) {
|
||||
$this->total += $this->invoice->custom_value3;
|
||||
}
|
||||
|
||||
if (is_numeric($this->invoice->custom_value4) && $this->invoice->custom_value4 > 0) {
|
||||
if (is_numeric($this->invoice->custom_value4)) {
|
||||
$this->total += $this->invoice->custom_value4;
|
||||
}
|
||||
|
||||
|
@ -76,6 +76,8 @@ class Phantom
|
||||
$phantom_url = "https://phantomjscloud.com/api/browser/v2/{$key}/?request=%7Burl:%22{$url}%22,renderType:%22pdf%22%7D";
|
||||
$pdf = CurlUtils::get($phantom_url);
|
||||
|
||||
//info($pdf);
|
||||
|
||||
Storage::makeDirectory($path, 0775);
|
||||
|
||||
$instance = Storage::disk(config('filesystems.default'))->put($file_path, $pdf);
|
||||
|
@ -60,7 +60,8 @@ return [
|
||||
|
||||
'public' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
'root' => 'storage/',
|
||||
// 'root' => storage_path('app/public'),
|
||||
'url' => env('APP_URL').'/storage',
|
||||
'visibility' => 'public',
|
||||
'permissions' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user