mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 12:59:36 +00:00
Moved VAT include info from pricedetail to orderdetail level
That makes implementing the form easier
This commit is contained in:
parent
4740b6d19e
commit
586375d921
9 changed files with 88 additions and 125 deletions
|
|
@ -100,8 +100,6 @@ final class DTOtoEntityConverter
|
|||
$entity->setCurrency(null);
|
||||
}
|
||||
|
||||
$entity->setIncludesVat($dto->includes_tax);
|
||||
|
||||
return $entity;
|
||||
}
|
||||
|
||||
|
|
@ -118,6 +116,8 @@ final class DTOtoEntityConverter
|
|||
$entity->addPricedetail($this->convertPrice($price));
|
||||
}
|
||||
|
||||
$entity->setPricesIncludesVAT($dto->prices_include_vat);
|
||||
|
||||
return $entity;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue