Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use bank account owner name (if set) instead of company #31326

Open
wants to merge 1 commit into
base: 20.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion htdocs/core/class/commoninvoice.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,11 @@
if ($this->fk_account > 0) {
$bankAccount->fetch($this->fk_account);
$lines[] = $bankAccount->bic; //BIC (required)
$lines[] = $mysoc->name; //Name (required)
if ($bankAccount->owner_name) {
$lines[] = $bankAccount->owner_name; //Owner of bank account, if present (required)

Check failure on line 1684 in htdocs/core/class/commoninvoice.class.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
} else {
$lines[] = $mysoc->name; //Use company name instead (required)

Check failure on line 1686 in htdocs/core/class/commoninvoice.class.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 1687 in htdocs/core/class/commoninvoice.class.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Tabs must be used to indent lines; spaces are not allowed

Check failure on line 1687 in htdocs/core/class/commoninvoice.class.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Line indented incorrectly; expected 3 tabs, found 4

Check failure on line 1687 in htdocs/core/class/commoninvoice.class.php

View workflow job for this annotation

GitHub Actions / pre-commit / pre-commit

Closing brace indented incorrectly; expected 12 spaces, found 16
$lines[] = $bankAccount->iban; //IBAN (required)
} else {
$lines[] = ""; //BIC (required)
Expand Down
Loading