Merge branch 'akaunting:master' into master

This commit is contained in:
merve karaman 2023-08-15 17:20:57 +03:00 committed by GitHub
commit 75d100ff22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,12 @@ class CreateDocumentItem extends Job implements HasOwner, HasSource, ShouldCreat
// New variables by tax type & tax sorting
foreach ((array) $this->request['tax_ids'] as $tax_id) {
$tax = Tax::find($tax_id);
// If tax not found, skip
if (! $tax) {
continue;
}
${$tax->type . 's'}[] = $tax;
}