- if (!$SysPrefs->allow_negative_stock() && ($low_stock = $_SESSION['Items']->check_qoh()))
- {
- display_error(_("This document cannot be processed because there is insufficient quantity for items marked."));
- return false;
- }
-
- if ($_SESSION['Items']->payment_terms['cash_sale'] == 0) {
-
- if (strlen($_POST['deliver_to']) <= 1) {
- display_error(_("You must enter the person or company to whom delivery should be made to."));
- set_focus('deliver_to');
- return false;
- }