From 78c76c2ef0db0728b81122ef02af87c21c427ab8 Mon Sep 17 00:00:00 2001 From: Sampanna Rimal Date: Mon, 22 Jul 2024 18:01:09 +0545 Subject: [PATCH] 22july --- .../application/helpers/bibhelper_helper.php | 4 +- .../views/accounts/accountheads/list.php | 6 +-- .../setup/singleentryvoucher/list.php | 2 +- account/application/views/fiscalyear/list.php | 12 +++--- .../views/inventory/items/list.php | 4 +- .../views/inventory/purchases/create.php | 35 +++++++++++++-- .../views/inventory/sales/create.php | 43 +++++++++++++++---- 7 files changed, 81 insertions(+), 25 deletions(-) diff --git a/account/application/helpers/bibhelper_helper.php b/account/application/helpers/bibhelper_helper.php index 3809a29..cb86bfa 100644 --- a/account/application/helpers/bibhelper_helper.php +++ b/account/application/helpers/bibhelper_helper.php @@ -122,10 +122,10 @@ function getTableSchema($tableName) echo ""; } -function showEditButton($url, $text = "Edit") +function showEditButton($url, $text = "Edit", $showtext="") { ?> - " class="btn btn-info btn-xs" title=""> cr_opening_balance > 0) ? myCurrency($TableRow->cr_opening_balance) : ""; ?> - - " class="btn btn-info btn-xs"> - + + " class="btn btn-info btn-xs" title="Edit"> + diff --git a/account/application/views/accounts/setup/singleentryvoucher/list.php b/account/application/views/accounts/setup/singleentryvoucher/list.php index 1e9a529..8141063 100644 --- a/account/application/views/accounts/setup/singleentryvoucher/list.php +++ b/account/application/views/accounts/setup/singleentryvoucher/list.php @@ -59,7 +59,7 @@   - vouchertype_id); ?> + vouchertype_id , "Edit", "Edit"); ?> diff --git a/account/application/views/fiscalyear/list.php b/account/application/views/fiscalyear/list.php index 63f36ce..0d2489d 100644 --- a/account/application/views/fiscalyear/list.php +++ b/account/application/views/fiscalyear/list.php @@ -7,7 +7,7 @@
- +
Create uri->segment(1) . "/" . $this->uri->segment(2) . "/list","List ".$pageTitle); ?> @@ -80,8 +80,10 @@
-
- Currently Selected Fiscal Year : session->userdata("FiscalYearID"); ?> +
+ Current Fiscal Year : + + uri->segment(1) . "/" . $this->uri->segment(2) . "/add","Create New ".$pageTitle); ?>
@@ -117,7 +119,7 @@ - uri->segment(2) . "/edit/$id"); ?>" data-fiscalyear_id="" class="editButton btn-info btn-xs"> Edit Modal + uri->segment(2) . "/edit/$id"); ?>" data-fiscalyear_id="" class="btn btn-info btn-xs"> Edit status == 0) : ?> Select Delete @@ -177,7 +179,7 @@