Skip to content

Commit

Permalink
Fix update of prices from old contract
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 22, 2024
1 parent c87d7ec commit 9349f9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/master_move_instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@
}*/

$productref = '';
$forceproductref = '';
if (isset($argv[4])) {
$productref = $argv[4];
$forceproductref = $argv[4];
}
if (empty($productref)) {
// Get tmppackage
Expand Down Expand Up @@ -575,7 +577,7 @@
}
}

if (empty($productref)) {
if (empty($forceproductref)) {
print "Update price, discount and qty of the new contract lines to match the one on the source.\n";

foreach ($oldpricesperproduct as $productid => $pricesperproduct) {
Expand Down

0 comments on commit 9349f9a

Please sign in to comment.