diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index c7d91a28ce56ba98f8bd2d8e3248bb00c9b3e75c..ea82a63732a21cdece826c97132f3be81798a312 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -882,7 +882,7 @@ if ($action == 'create')
 							if ($defaultqty<=0) {
 								$defaultqty=0;
 							} else {
-								$defaultqty -= min($defaultqty,$substock);
+								$defaultqty -= ($substock > 0 ? min($defaultqty,$substock) : 0);
 							}
 							$subj++;
 						}