diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 0b0e3acd..776f3945 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -357,7 +357,7 @@ $routes->get('inprocess', 'Inprocess::index'); // Sales Invoice routes $routes->get('invoicedetails/ViewInvoice', 'User::ViewInvoice'); -$routes->get('getInvoiceAttachment', 'User::getInvoiceAttachment'); +$routes->get('getInvoiceAttachments', 'User::getInvoiceAttachments'); $routes->get('deleteAttachment', 'User::deleteAttachment'); $routes->post('saveAttachment', 'User::saveAttachment'); diff --git a/app/Controllers/User.php b/app/Controllers/User.php index 91bb092d..ee8c926a 100644 --- a/app/Controllers/User.php +++ b/app/Controllers/User.php @@ -1670,8 +1670,8 @@ class User extends BaseController // Sales Invoice - function getInvoiceAttachment(){ - $data['invoiceAttachment'] = $this->ipinvoice_model->getinvoiceAttachment($this->request->getGet('invoice_number')); + function getInvoiceAttachments(){ + $data['invoiceAttachment'] = $this->ipinvoice_model->getinvoiceAttachment($this->request->getGet('invoice_id')); return json_encode($data); } diff --git a/app/Views/sales_invoice.php b/app/Views/sales_invoice.php index d4435024..5b82f841 100644 --- a/app/Views/sales_invoice.php +++ b/app/Views/sales_invoice.php @@ -4,6 +4,37 @@ text-decoration: underline; color: #007bff; /* Adjust color as needed */ } + .custom-button { + display: inline-block; + padding: 6px 8px; + margin-bottom: 0; + font-size: 14px; + font-weight: normal; + line-height: 1.42857143; + text-align: center; + white-space: nowrap; + vertical-align: middle; + cursor: pointer; + background-color: #007bff; + border: 1px solid transparent; + border-radius: 4px; + color: #fff; + text-decoration: none; + width: 72px; + margin-left: -12px; + margin-top: -3px; + height: 32px; + font-size: 12px; +} + +.custom-button:hover { + color: #fff; + text-decoration: none; + /* color: #007bff !important; */ + /* background-color: white; */ + /* border: 1px solid; */ +} +
@@ -64,8 +95,8 @@ - client_name ?> - item_name ?> + client_name ?> + item_name ?> item_price ?> item_quantity, 2 ,'.', ',' ) ?> @@ -74,7 +105,7 @@ status ?> e_invoice_number; ?> - + @@ -96,24 +127,25 @@