stored procedure update in requsition form

This commit is contained in:
venbatechnologies 2017-06-08 16:52:29 +05:30
parent d18383d224
commit 628f36603e
2 changed files with 23 additions and 8 deletions

View File

@ -497,7 +497,7 @@ function Save()
var id = '<?php echo REQ_DRAFT;?>'
if(validate())
{
if(document.getElementById('Items').rows.length < 3)
if(document.getElementById('Items').rows.length < 0)
{
alert('Please Select Line item to Create Requisition');
$('#Deliverydt').focus();
@ -724,7 +724,7 @@ $('.EditClick').click(function(){
e.preventDefault();
if(validate())
{
if(document.getElementById('Items').rows.length < 3)
if(document.getElementById('Items').rows.length < 0)
{
alert('Please Select Line item to Create Requisition');
$('#Deliverydt').focus();

View File

@ -91,21 +91,36 @@ span.highlight {
<thead style="background-color:#ddf">
<tr>
<th>Requisition No</th>
<th>Requisition Type</th>
<th>Requisition Type</th>
<th>Tot No.OfLineItem </th>
<th>Po CreatedLineItem</th>
<th>Partical PoCreatedLineItem</th>
<th>NewLine Item</th>
<th>Status</th>
<th>Requisted Date</th>
<th>Action</th>
</tr>
</thead> <?php
if(!empty($ReqList))
</thead>
<?php
if(!empty($TotNoOfLine))
{
foreach($ReqList as $record)
{
foreach($TotNoOfLine as $record)
{ //print_r($record);
?>
<tr>
<td><?php echo $record->ReqNo ?></td>
<td><?php echo $record->ReqType ?></td>
<td><?php echo $record->ReqType ?></td>
<td><?php echo $record->TotalNoofLineItems ?></td>
<td><?php echo $record->PolineItems ?></td>
<td><?php echo $record->PartilallyLineItems ?></td>
<td> <?php echo $record->newLineItem ?></td>
<td><?php echo $record->StatusName ?></td>
<td><?php $Pdt = new DateTime($record->CreatedDate );
$PODate = $Pdt->format('Y-m-d');