commit
34993ecc34
|
|
@ -1 +1 @@
|
||||||
5.11.58
|
5.11.59
|
||||||
|
|
@ -169,9 +169,9 @@ class InvoiceItemExport extends BaseExport
|
||||||
|
|
||||||
$tmp_key = str_replace("item.", "", $key);
|
$tmp_key = str_replace("item.", "", $key);
|
||||||
|
|
||||||
if ($tmp_key == 'type_id') {
|
// if ($tmp_key == 'type_id') {
|
||||||
$tmp_key = 'type';
|
// $tmp_key = 'type';
|
||||||
}
|
// }
|
||||||
|
|
||||||
if ($tmp_key == 'tax_id') {
|
if ($tmp_key == 'tax_id') {
|
||||||
$tmp_key = 'tax_category';
|
$tmp_key = 'tax_category';
|
||||||
|
|
|
||||||
|
|
@ -155,9 +155,9 @@ class PurchaseOrderItemExport extends BaseExport
|
||||||
|
|
||||||
$tmp_key = str_replace("item.", "", $key);
|
$tmp_key = str_replace("item.", "", $key);
|
||||||
|
|
||||||
if ($tmp_key == 'type_id') {
|
// if ($tmp_key == 'type_id') {
|
||||||
$tmp_key = 'type';
|
// $tmp_key = 'type';
|
||||||
}
|
// }
|
||||||
|
|
||||||
if ($tmp_key == 'tax_id') {
|
if ($tmp_key == 'tax_id') {
|
||||||
$tmp_key = 'tax_category';
|
$tmp_key = 'tax_category';
|
||||||
|
|
|
||||||
|
|
@ -163,9 +163,9 @@ class QuoteItemExport extends BaseExport
|
||||||
|
|
||||||
$tmp_key = str_replace("item.", "", $key);
|
$tmp_key = str_replace("item.", "", $key);
|
||||||
|
|
||||||
if ($tmp_key == 'type_id') {
|
// if ($tmp_key == 'type_id') {
|
||||||
$tmp_key = 'type';
|
// $tmp_key = 'type';
|
||||||
}
|
// }
|
||||||
|
|
||||||
if ($tmp_key == 'tax_id') {
|
if ($tmp_key == 'tax_id') {
|
||||||
$tmp_key = 'tax_category';
|
$tmp_key = 'tax_category';
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,10 @@ class Peppol extends AbstractService
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Auto switch between Invoice / Credit based on the amount value */
|
/** Auto switch between Invoice / Credit based on the amount value */
|
||||||
$this->p_invoice->InvoiceTypeCode = ($this->invoice->amount >= 0) ? 380 : 381;
|
|
||||||
|
// $this->p_invoice->InvoiceTypeCode = ($this->invoice->amount >= 0) ? 380 : 381;
|
||||||
|
|
||||||
|
$this->p_invoice->InvoiceTypeCode = 380;
|
||||||
|
|
||||||
$this->p_invoice->AccountingSupplierParty = $this->getAccountingSupplierParty();
|
$this->p_invoice->AccountingSupplierParty = $this->getAccountingSupplierParty();
|
||||||
$this->p_invoice->AccountingCustomerParty = $this->getAccountingCustomerParty();
|
$this->p_invoice->AccountingCustomerParty = $this->getAccountingCustomerParty();
|
||||||
|
|
|
||||||
|
|
@ -966,7 +966,7 @@ class Email implements ShouldQueue
|
||||||
*/
|
*/
|
||||||
private function entityEmailFailed(string $message = ''): void
|
private function entityEmailFailed(string $message = ''): void
|
||||||
{
|
{
|
||||||
$class = get_class($this->email_object->entity);
|
$class = $this->email_object->entity ? get_class($this->email_object->entity) : false;
|
||||||
|
|
||||||
switch ($class) {
|
switch ($class) {
|
||||||
case Invoice::class:
|
case Invoice::class:
|
||||||
|
|
|
||||||
|
|
@ -471,6 +471,8 @@ class PdfBuilder
|
||||||
|
|
||||||
$tbody = [];
|
$tbody = [];
|
||||||
|
|
||||||
|
$this->payment_amount_total = 0;
|
||||||
|
|
||||||
foreach ($this->service->options['invoices'] as $invoice) {
|
foreach ($this->service->options['invoices'] as $invoice) {
|
||||||
foreach ($invoice->payments as $payment) {
|
foreach ($invoice->payments as $payment) {
|
||||||
if ($payment->is_deleted) {
|
if ($payment->is_deleted) {
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,8 @@ return [
|
||||||
'require_https' => env('REQUIRE_HTTPS', true),
|
'require_https' => env('REQUIRE_HTTPS', true),
|
||||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||||
'app_version' => env('APP_VERSION', '5.11.58'),
|
'app_version' => env('APP_VERSION', '5.11.59'),
|
||||||
'app_tag' => env('APP_TAG', '5.11.58'),
|
'app_tag' => env('APP_TAG', '5.11.59'),
|
||||||
'minimum_client_version' => '5.0.16',
|
'minimum_client_version' => '5.0.16',
|
||||||
'terms_version' => '1.0.1',
|
'terms_version' => '1.0.1',
|
||||||
'api_secret' => env('API_SECRET', false),
|
'api_secret' => env('API_SECRET', false),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue