diff --git a/DeliveryDetails.php b/DeliveryDetails.php index 792fa939c..630dc6f3b 100644 --- a/DeliveryDetails.php +++ b/DeliveryDetails.php @@ -503,7 +503,7 @@ VALUES ('" . $WONo . "', '" . $_SESSION['DefaultFactoryLocation'] . "', '" . Date('Y-m-d') . "', - '" . Date('Y-m-d'). "')", + '" . FormatDateForSQL($StockItem->ItemDue) . "')", $ErrMsg, $DbgMsg, true);