post release 1.2 fixes (#1068)
* fix release command * fix permission name in UPGRADING * added missing korean calendar translations * fixed entry.total for invoice with fixed rates
This commit is contained in:
@@ -64,7 +64,7 @@ class InvoiceItem
|
||||
*/
|
||||
private $additionalFields = [];
|
||||
|
||||
public function addAdditionalField(string $name, string $value): InvoiceItem
|
||||
public function addAdditionalField(string $name, ?string $value): InvoiceItem
|
||||
{
|
||||
$this->additionalFields[$name] = $value;
|
||||
|
||||
|
||||
@@ -183,8 +183,7 @@ trait RendererTrait
|
||||
$amount = $this->getFormattedDuration($invoiceItem->getDuration());
|
||||
$description = $invoiceItem->getDescription();
|
||||
|
||||
if (null !== $invoiceItem->getFixedRate()) {
|
||||
$rate = $invoiceItem->getFixedRate();
|
||||
if ($invoiceItem->isFixedRate()) {
|
||||
$hourlyRate = $invoiceItem->getFixedRate();
|
||||
$amount = $invoiceItem->getAmount();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user