From 0ac549f276fa860ac54943625664d2951f14a44a Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Fri, 16 Feb 2018 17:44:30 +0530 Subject: [PATCH] cashbook issues fixed --- application/views/addnewIncomeExpense.php | 35 +++--- application/views/cashbooklisting.php | 36 ++++++- application/views/cashbookpdf.php | 14 +-- application/views/editincomeexpenses.php | 120 ++++++++++----------- application/views/includes/header.php | 2 +- application/views/income_expense_list.php | 8 +- application/views/viewIndIncomeExpense.php | 8 +- 7 files changed, 128 insertions(+), 95 deletions(-) diff --git a/application/views/addnewIncomeExpense.php b/application/views/addnewIncomeExpense.php index 5af6c133..e4684b96 100755 --- a/application/views/addnewIncomeExpense.php +++ b/application/views/addnewIncomeExpense.php @@ -145,14 +145,14 @@
- Value before GST: + Value before GST(₹):
- SGST:* + SGST(₹):* @@ -161,7 +161,7 @@
- CGST:* + CGST(₹):* @@ -171,7 +171,7 @@
- IGST:* + IGST(₹):*
@@ -181,7 +181,7 @@
- Total Amount: + Total Amount(₹):
@@ -265,12 +265,12 @@
- Value before GST:

+ Value before GST(₹):

- SGST:*

+ SGST(₹):*

@@ -279,13 +279,13 @@
- CGST:*

+ CGST(₹):*

- IGST:

+ IGST(₹):

@@ -307,7 +307,7 @@
- Amount:* + Amount(₹):*
@@ -326,7 +326,7 @@
- Total Amount: + Total Amount(₹):
@@ -369,6 +369,13 @@ $(function() { var t = []; var ex = []; var inc = []; + $('#SGST').val('0.00'); + $('#CGST').val('0.00'); + $('#IGST').val('0.00'); + $('#PaymentSGST').val('0.00'); + $('#PaymentCGST').val('0.00'); + $('#PaymentIGST').val('0.00'); + t= ; var options = ''; @@ -683,17 +690,17 @@ div.id = "divid"+counterConstant; div.className="row"; div.style.cssText = "border:1px dashed; margin-left:0px;margin-right:0px;"; div.innerHTML='
'+ - 'Account Name Select:*'+ + 'Account Name Select:'+ ''+ '
'+ '
'+ - 'Description: '+ + 'Account Description: '+ ''+ '
'+ '
'+ - 'Amount: '+ + 'Amount(₹): '+ ''+ '
'+ '
'+ diff --git a/application/views/cashbooklisting.php b/application/views/cashbooklisting.php index 7ead6e4c..6ec3e004 100755 --- a/application/views/cashbooklisting.php +++ b/application/views/cashbooklisting.php @@ -117,6 +117,22 @@ diff --git a/application/views/cashbookpdf.php b/application/views/cashbookpdf.php index 8a4d67d9..91a2ba51 100755 --- a/application/views/cashbookpdf.php +++ b/application/views/cashbookpdf.php @@ -47,19 +47,19 @@ $pic = base_url().'uploads/images/'.$company[0]->ProfilePic; name) == 'multiple'){ ?>  Tax -SGST :sgst;?> -CGST :cgst;?> -IGST :igst;?> +SGST :sgst;?> +CGST :cgst;?> +IGST :igst;?> - Multiple Payment + Payment Details - - - + + +
- Value before GST: + Value before GST(₹):
- SGST: + SGST(₹):
- CGST: + CGST(₹):
- IGST: + IGST(₹):
@@ -188,8 +188,7 @@ if(!empty($PaymentMultiple))
- Total Amount:* - + Total Amount(₹):*
@@ -277,7 +276,7 @@ if(!empty($PaymentMultiple))
- Voucher Code*

+ Voucher Code:*

@@ -287,12 +286,12 @@ if(!empty($PaymentMultiple))
- Value before GST:

+ Value before GST(₹):

- SGST:*

+ SGST(₹):*

@@ -301,13 +300,13 @@ if(!empty($PaymentMultiple))
- CGST:*

+ CGST(₹):*

- IGST:

+ IGST(₹):

@@ -324,12 +323,12 @@ if(!empty($PaymentMultiple))
- Account Description: + Account Description:*
- Amount: + Amount(₹):*
@@ -358,7 +357,7 @@ if(!empty($PaymentMultiple))
- Account Name Select:* + Account Name Select:
@@ -419,7 +418,7 @@ if(!empty($PaymentMultiple))
- Total Amount: + Total Amount(₹):
@@ -866,28 +865,27 @@ if(paydtl == ''){ var counterConstant = 1; } function add_more() { -// if($("option:selected", $("#Paymentaccode1")).val() == '-1') -// { -// alert('Select/Choose account name'); -// $('#Paymentaccode1').focus(); -// return false; -// } -// else if($('#subdescription1').val() == '') -// { -// alert("Provide Account description..!"); -// $('#subdescription1').focus(); -// return false; +if($("option:selected", $("#Paymentaccode1")).val() == '-1') +{ + alert('Select/Choose account name'); + $('#Paymentaccode1').focus(); + return false; +} +else if($('#subdescription1').val() == '') +{ + alert("Provide Account description..!"); + $('#subdescription1').focus(); + return false; -// } -// else if($('#Paymentamount1').val() == '') -// { -// alert("Provide Amount data..!"); -// $('#Paymentamount1').focus(); -// return false; - -// } -// else -// { +} +else if($('#Paymentamount1').val() == '') +{ + alert("Provide Amount data..!"); + $('#Paymentamount1').focus(); + return false; +} +else +{ // var paydtl = $('#hidepaydtl').val(); // alert(paydtl); @@ -899,7 +897,7 @@ div.id = "divid"+counterConstant; div.className="row"; div.style.cssText = "border:1px dashed; margin-left:0px;margin-right:0px;"; div.innerHTML='
'+ - 'Account Name Select:*'+ + 'Account Name Select:'+ ''+ @@ -909,7 +907,7 @@ div.innerHTML='
'+ '
'+ '
'+ - 'Amount: '+ + 'Amount(₹): '+ ''+ '
'+ '
'+ @@ -919,7 +917,7 @@ div.innerHTML='
  • - Income and Expense + Receipt and Payment
  • diff --git a/application/views/income_expense_list.php b/application/views/income_expense_list.php index 4f8b31ae..85c2ebb7 100755 --- a/application/views/income_expense_list.php +++ b/application/views/income_expense_list.php @@ -26,7 +26,7 @@
    - + @@ -85,9 +85,9 @@ - - - + + +
    Account NameAccount DescriptionAccount Amount
    NameDescriptionAmount(₹)
    Account Type DATE Account NameAmountAmount(₹) Details Action
    Account Type Account Name Sub DescriptionAmountTax value (sgst+cgst+igst)Total amountAmount(₹)Tax value(₹)(sgst+cgst+igst)Total amount(₹)
    diff --git a/application/views/viewIndIncomeExpense.php b/application/views/viewIndIncomeExpense.php index c831a088..b1aef57d 100755 --- a/application/views/viewIndIncomeExpense.php +++ b/application/views/viewIndIncomeExpense.php @@ -88,9 +88,9 @@ if(!empty($data)) - - - + + +
    Account Name   Account Description   Account Amount  Name  Description  Amount(₹)  
    -
    Total Amount
        total)){echo $data[0]->total;}?> +
    Total Amount(₹) with tax
        total)){echo $data[0]->total;}?>
    Description :
        description)){echo $data[0]->description;}?>