/** * Remove one line * * @param BillLine $line * * @return BaseBill */ public function removeLine(BillLine $line) { $this->lines->removeElement($line); $this->totalHt -= $line->getUnitPrice() * $line->getQuantity() / (1 + $line->getDiscount() / 100); return $this; }