} print '</td></tr>'; // Ref supplier print '<tr><td class="fieldrequired">' . $langs->trans("SupplierRef") . '</td><td>'; if ($rowid) { print $object->fourn_ref; } else { print '<input class="flat" name="ref_fourn" size="12" value="' . (GETPOST("ref_fourn") ? GETPOST("ref_fourn") : '') . '">'; } print '</td>'; print '</tr>'; // Availability if (!empty($conf->global->FOURN_PRODUCT_AVAILABILITY)) { $langs->load("propal"); print '<tr><td>' . $langs->trans("Availability") . '</td><td>'; $form->selectAvailabilityDelay($object->fk_availability, "oselDispo", 1); print '</td></tr>' . "\n"; } // Qty min print '<tr>'; print '<td class="fieldrequired">' . $langs->trans("QtyMin") . '</td>'; print '<td>'; $quantity = GETPOST('qty') ? GETPOST('qty') : "1"; if ($rowid) { print '<input type="hidden" name="qty" value="' . $object->fourn_qty . '">'; print $object->fourn_qty; } else { print '<input class="flat" name="qty" size="5" value="' . $quantity . '">'; } print '</td></tr>'; // Vat rate
print '<tr><td>' . $langs->trans('PaymentMode') . '</td><td colspan="2">'; $form->select_types_paiements($soc->mode_reglement_id, 'mode_reglement_id'); print '</td></tr>'; // Bank Account if (!empty($conf->global->BANK_ASK_PAYMENT_BANK_DURING_PROPOSAL) && $conf->banque->enabled) { print '<tr><td>' . $langs->trans('BankAccount') . '</td><td colspan="2">'; $form->select_comptes($fk_account, 'fk_account', 0, '', 1); print '</td></tr>'; } // What trigger creation print '<tr><td>' . $langs->trans('Source') . '</td><td>'; $form->selectInputReason('', 'demand_reason_id', "SRC_PROP", 1); print '</td></tr>'; // Delivery delay print '<tr><td>' . $langs->trans('AvailabilityPeriod') . '</td><td colspan="2">'; $form->selectAvailabilityDelay('', 'availability_id', '', 1); print '</td></tr>'; // Shipping Method if (!empty($conf->expedition->enabled)) { print '<tr><td>' . $langs->trans('SendingMethod') . '</td><td colspan="2">'; print $form->selectShippingMethod($shipping_method_id, 'shipping_method_id', '', 1); print '</td></tr>'; } // Delivery date (or manufacturing) print '<tr><td>' . $langs->trans("DeliveryDate") . '</td>'; print '<td colspan="2">'; if ($conf->global->DATE_LIVRAISON_WEEK_DELAY != "") { $tmpdte = time() + 7 * $conf->global->DATE_LIVRAISON_WEEK_DELAY * 24 * 60 * 60; $syear = date("Y", $tmpdte); $smonth = date("m", $tmpdte); $sday = date("d", $tmpdte);