small list correction
This commit is contained in:
parent
2df4cedf11
commit
da4d2dea45
@ -118,6 +118,7 @@ class Invoice extends BaseController
|
||||
'status' => $this->request->getPost('status'),
|
||||
'isactive'=> 1];
|
||||
$invoice_id = $this->request->getPost('invoice_id');
|
||||
|
||||
|
||||
if (empty($invoice_id)) {
|
||||
$data['created_by'] = (int)get_logged_user_id();
|
||||
@ -236,7 +237,7 @@ class Invoice extends BaseController
|
||||
$model->updateData('invoiceitems', $data, $update_where);
|
||||
}
|
||||
}
|
||||
|
||||
print_r($getInvoiceItemDetails);die();
|
||||
return redirect()->route('invoice_list');
|
||||
}
|
||||
public function approve_invoice($id)
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
<th>Language</th>
|
||||
<th>Year Of Release</th>
|
||||
<th>Price of the Book</th>
|
||||
<th>Description</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
@ -41,7 +40,6 @@
|
||||
<td><?php echo $row['language']; ?></td>
|
||||
<td><?php echo date('Y', strtotime($row['publication_date'])); ?></td>
|
||||
<td>₹ <span data-plugin="counterup"><?php echo $row['price']; ?></span></td>
|
||||
<td><?php echo $row['description']; ?></td>
|
||||
<td>
|
||||
<span class="<?php echo $class; ?>"><?php echo $message; ?></span>
|
||||
</td>
|
||||
|
||||
@ -15,10 +15,6 @@
|
||||
<th>Last Name</th>
|
||||
<th>Mobile Number</th>
|
||||
<th>Email</th>
|
||||
<th>Address</th>
|
||||
<th>Country</th>
|
||||
<th>State</th>
|
||||
<th>City</th>
|
||||
<th>Type</th>
|
||||
<th>Mode</th>
|
||||
<th>Action</th>
|
||||
@ -30,10 +26,6 @@
|
||||
<td><?= $value['last_name']; ?></td>
|
||||
<td><?= $value['mobile_no']; ?></td>
|
||||
<td><?= $value['email']; ?></td>
|
||||
<td><?= $value['address']; ?></td>
|
||||
<td><?= $value['country']; ?></td>
|
||||
<td><?= $value['state']; ?></td>
|
||||
<td><?= $value['city']; ?></td>
|
||||
<td><?= $value['type']; ?></td>
|
||||
<td><?= $value['mode']; ?></td>
|
||||
<td>
|
||||
|
||||
@ -231,17 +231,18 @@
|
||||
|
||||
<input type="hidden" id="hiddenInvoiceId" name="invoice_id" placeholder="hidden for invoice id"
|
||||
value="<?= isset($invoice_details['invoice_id']) ? $invoice_details['invoice_id'] : '' ?>" />
|
||||
<div class="form-group text-right m-b-0">
|
||||
<?php if (isset($invoice_details['status']) && $invoice_details['status'] !== 'Approved'): ?>
|
||||
<!-- Show the "Save as Draft" button only if the status is not "Approved" -->
|
||||
<button type="submit" class="btn btn-primary waves-effect mr-1" name="save_as_draft" id="saveDraftButton">Save as Draft</button>
|
||||
<?php endif; ?>
|
||||
<?php if (!isset($invoice_details['status']) || $invoice_details['status'] !== 'Approved'): ?>
|
||||
<!-- Show the "Save as Approved" button only if the status is not "Approved" -->
|
||||
<button type="submit" class="btn btn-primary waves-effect mr-1" name="save_as_approved" id="saveApprovedButton">Save as Approved</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" id="status" name="status" value="">
|
||||
<div class="form-group text-right m-b-0">
|
||||
<?php if (!isset($invoice_details['status']) || $invoice_details['status'] !== 'Approved'): ?>
|
||||
<!-- Show the "Save as Draft" button only if the status is not "Approved" -->
|
||||
<button type="submit" class="btn btn-primary waves-effect mr-1" name="save_as_draft" id="saveDraftButton">Save as Draft</button>
|
||||
<?php endif; ?>
|
||||
<?php if (!isset($invoice_details['status']) || $invoice_details['status'] !== 'Approved'): ?>
|
||||
<!-- Show the "Save as Approved" button only if the status is not "Approved" -->
|
||||
<button type="submit" class="btn btn-primary waves-effect mr-1" name="save_as_approved" id="saveApprovedButton">Save as Approved</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<input type="hidden" id="status" name="status" value="<?= isset($invoice_details['status']) ? $invoice_details['status'] : '' ?>">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@ -13,7 +13,6 @@
|
||||
<thead class="thead-light">
|
||||
<tr>
|
||||
<th>Scheme Name</th>
|
||||
<th>Description</th>
|
||||
<th>Price</th>
|
||||
<th>Duration</th>
|
||||
<th>Action</th>
|
||||
@ -22,7 +21,6 @@
|
||||
<?php foreach ($scheme as $value) :?>
|
||||
<tr>
|
||||
<td><?= $value['scheme_name']; ?></td>
|
||||
<td><?= $value['description']; ?></td>
|
||||
<td><?= $value['price']; ?></td>
|
||||
<td><?= $value['duration']; ?></td>
|
||||
<td>
|
||||
|
||||
@ -89,4 +89,8 @@
|
||||
</div> <!-- end card -->
|
||||
</div><!-- end col-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user