diff --git a/src/QUI/ERP/Accounting/Invoice/Invoice.php b/src/QUI/ERP/Accounting/Invoice/Invoice.php index 77e88057a551ed724e368acd5da30a25b10b7128..1d8b041fb1e53113d6e7f26a7def3ad4671ac7d4 100644 --- a/src/QUI/ERP/Accounting/Invoice/Invoice.php +++ b/src/QUI/ERP/Accounting/Invoice/Invoice.php @@ -111,6 +111,7 @@ public function __construct($id, Handler $Handler) case Handler::TYPE_INVOICE_TEMPORARY: case Handler::TYPE_INVOICE_CREDIT_NOTE: case Handler::TYPE_INVOICE_REVERSAL: + case Handler::TYPE_INVOICE_CANCEL: $this->type = (int)$this->getAttribute('type'); break; } @@ -434,7 +435,7 @@ public function getShipping() */ public function getInvoiceType() { - return $this->type; + return (int)$this->type; } /** diff --git a/src/QUI/ERP/Accounting/Invoice/InvoiceView.php b/src/QUI/ERP/Accounting/Invoice/InvoiceView.php index 880f9d68fd7cd6692bfc70010e349a45d9351061..a7604a56a6a047d55c4cae12da9da8eaa4a59fbb 100644 --- a/src/QUI/ERP/Accounting/Invoice/InvoiceView.php +++ b/src/QUI/ERP/Accounting/Invoice/InvoiceView.php @@ -316,7 +316,7 @@ protected function getOutputType() break; case Handler::TYPE_INVOICE_CANCEL: - return 'Cancelled'; + return 'Canceled'; break; default: