Skip to content

Commit

Permalink
Merge branch '2024.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
gitlabci committed Dec 11, 2024
2 parents 9c98ff8 + 92a9504 commit 8bf6d79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/tine20/Sales/InvoiceJsonTests.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function testClearing()
$tsController->update($timesheets[0]);
self::fail('should throw Tinebase_Exception_Confirmation!');
} catch (Tinebase_Exception_Confirmation $seiace) {
self::assertEquals('The Invoice you tried to edit is cleared already, change date will rebill the invoice, do you still want to execute this action?', $seiace->getMessage());
self::assertEquals(Tinebase_Translation::getTranslation(Timetracker_Config::APP_NAME)->_('The Invoice you tried to edit is cleared already, change date will rebill the invoice, do you still want to execute this action?'), $seiace->getMessage());
}
}

Expand Down
4 changes: 2 additions & 2 deletions tine20/Sales/Controller/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ protected function _findCurrentCustomer()
foreach ($this->_currentBillingContract->relations as $relation) {
if ($relation->type == 'CUSTOMER' && $relation->related_model == 'Sales_Model_Customer') {
$this->_currentBillingCustomer = $relation->related_record;
Tinebase_Record_Expander::expandRecord($this->_currentBillingContract);
Tinebase_Record_Expander::expandRecord($this->_currentBillingCustomer);
break;
}
}
Expand Down Expand Up @@ -1146,7 +1146,7 @@ protected function _createAutoInvoicesForContract(Sales_Model_Contract $contract
}
}

$debitor = $this->_currentBillingContract->{Sales_Model_Customer::FLD_DEBITORS}->getFirstRecord();
$debitor = $this->_currentBillingCustomer->{Sales_Model_Customer::FLD_DEBITORS}->getFirstRecord();

// prepare invoice
$invoice = new Sales_Model_Invoice(array(
Expand Down

0 comments on commit 8bf6d79

Please sign in to comment.