Compare commits
2 Commits
37ac0b14cf
...
8179ad60e1
Author | SHA1 | Date | |
---|---|---|---|
8179ad60e1 | |||
e7f1ab638f |
@ -98,7 +98,7 @@ class InvoiceAdd extends Command
|
|||||||
'UnitPrice' => $key->price_base,
|
'UnitPrice' => $key->price_base,
|
||||||
'ItemRef' => ['value'=>$ref],
|
'ItemRef' => ['value'=>$ref],
|
||||||
// @todo It is assumed there is only 1 tax category
|
// @todo It is assumed there is only 1 tax category
|
||||||
'TaxCodeRef' => ['value'=>$key->taxes->first()->tax->provider_ref($to->provider)],
|
'TaxCodeRef' => ['value'=>$tcf=$key->taxes->first()->tax->provider_ref($to->provider)],
|
||||||
];
|
];
|
||||||
$line->Amount = round($os->sum('quantity')*$key->price_base,2);
|
$line->Amount = round($os->sum('quantity')*$key->price_base,2);
|
||||||
|
|
||||||
@ -118,7 +118,8 @@ class InvoiceAdd extends Command
|
|||||||
'Amount' => $x,
|
'Amount' => $x,
|
||||||
'DetailType' => 'TaxLineDetail',
|
'DetailType' => 'TaxLineDetail',
|
||||||
'TaxLineDetail' => (object)[
|
'TaxLineDetail' => (object)[
|
||||||
'TaxRateRef' => (object)['value'=>23],
|
// @todo It is assumed there is only 1 tax category
|
||||||
|
'TaxRateRef' => (object)['value'=>$to->API()->getTaxCodeQuery($tcf)->getTaxRateRef()->first()],
|
||||||
'NetAmountTaxable' => $io->subtotal,
|
'NetAmountTaxable' => $io->subtotal,
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
@ -126,8 +127,6 @@ class InvoiceAdd extends Command
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
dump($acc);
|
|
||||||
|
|
||||||
return AccountingInvoiceUpdate::dispatchSync($to,$acc);
|
return AccountingInvoiceUpdate::dispatchSync($to,$acc);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -54,7 +54,7 @@ return [
|
|||||||
|
|
||||||
'stack' => [
|
'stack' => [
|
||||||
'driver' => 'stack',
|
'driver' => 'stack',
|
||||||
'channels' => explode(',', env('LOG_STACK', 'single')),
|
'channels' => explode(',', env('LOG_STACK', 'daily')),
|
||||||
'ignore_exceptions' => false,
|
'ignore_exceptions' => false,
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -73,6 +73,14 @@ return [
|
|||||||
'replace_placeholders' => true,
|
'replace_placeholders' => true,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'webhook' => [
|
||||||
|
'driver' => 'daily',
|
||||||
|
'path' => storage_path('logs/webhook.log'),
|
||||||
|
'level' => env('LOG_LEVEL', 'debug'),
|
||||||
|
'days' => env('LOG_DAILY_DAYS', 14),
|
||||||
|
'replace_placeholders' => true,
|
||||||
|
],
|
||||||
|
|
||||||
'slack' => [
|
'slack' => [
|
||||||
'driver' => 'slack',
|
'driver' => 'slack',
|
||||||
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
'url' => env('LOG_SLACK_WEBHOOK_URL'),
|
||||||
|
Loading…
Reference in New Issue
Block a user