Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
FIX: reload $object after updating lines
current Propal object should be fetched again when its lines are all updated, in order to reflect differences in the margin table