Browse Source

[Backend] Distributions : problème mise à jour des prix facturés #836

refactoring
Guillaume Bourgeois 1 year ago
parent
commit
bb3a785d36
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      backend/controllers/DistributionController.php

+ 4
- 1
backend/controllers/DistributionController.php View File

@@ -534,8 +534,11 @@ class DistributionController extends BackendController

if ($invoicePrice != $productOrder->price) {
$productOrder->invoice_price = $invoicePrice;
$productOrder->save();
}
else {
$productOrder->invoice_price = null;
}
$productOrder->save();
}
}
}

Loading…
Cancel
Save