Skip to content

Commit

Permalink
refs #229 fix moving bill with reimbursement category
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Oct 12, 2023
1 parent d854a1b commit 4dfffab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/ProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -3592,7 +3592,7 @@ private function copyBillCategoryOver(string $projectid, array $bill, string $to
$originCategories = $this->getCategoriesOrPaymentModes($projectid);
$destinationCategories = $this->getCategoriesOrPaymentModes($toProjectId);

if ($bill['categoryid'] !== 0) {
if ($bill['categoryid'] !== 0 && $bill['categoryid'] !== Application::CAT_REIMBURSEMENT) {
$originCategory = array_filter($originCategories, static function ($val) use ($bill) {
return $val['id'] === $bill['categoryid'];
});
Expand Down

0 comments on commit 4dfffab

Please sign in to comment.