439
edits
(→Overloading functions: Adding another example) |
|||
| Line 272: | Line 272: | ||
$object->remise_percent = $remise_calculee; | $object->remise_percent = $remise_calculee; | ||
// Update the price ( | // Update the price (it's not automatic when we edit remise_percent and update, we have to recompute manually the prices before calling $object->update()) | ||
global $mysoc; | global $mysoc; | ||
$localtaxes_type=getLocalTaxesFromRate($object->tva_tx,0,$mysoc); | $localtaxes_type=getLocalTaxesFromRate($object->tva_tx,0,$mysoc); | ||
edits