how i can read tax rate from line level ? i want to read 1.05 that is my tax rate, i want to read this like...

How would an AI self awareness kill switch work?

Magento 2 : Call Helper Without Using __construct in Own Module

My cat mixes up the floors in my building. How can I help him?

Lick explanation

Do authors have to be politically correct in article-writing?

Am I a Rude Number?

What is a jet (unit) shown in Windows 10 calculator?

Does Windows 10's telemetry include sending *.doc files if Word crashed?

What is the most triangles you can make from a capital "H" and 3 straight lines?

Why doesn't "auto ch = unsigned char{'p'}" compile under C++ 17?

Why do neural networks need so many training examples to perform?

How do I say "Brexit" in Latin?

"Free" Hopf algebra

Strange blocking on readable secondary after reboot

We are very unlucky in my court

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

Caruana vs Carlsen game 10 (WCC) why not 18...Nxb6?

What is the lore-based reason that the Spectator has the Create Food and Water trait, instead of simply not requiring food and water?

Indirectly access environment variable

Would these multi-classing house rules cause unintended problems?

Can I write a book of my D&D game?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

How to deal with an incendiary email that was recalled

How can animals be objects of ethics without being subjects as well?



how i can read tax rate from line level ? i want to read 1.05 that is my tax rate, i want to read this like salesItemEntity.taxamount like [on hold]


How can I improve this code to display contact numbers?How can I make this primality test algorithm faster?How can I tidy up this servlet parameter check code?How can I optimize this code that finds the GCD?Read from a file and pick a random lineRead a line from console in JavaArrayList for Shop implementatinOutputting a large list to a web clientFollow-up 2: Copy File, remove spaces in specific linesReading file and writing to output file with line numbers













-2












$begingroup$


how i can read tax rate from line level ? i want to read 1.05 that is my tax rate, i want to read this like salesItemEntity.taxamount like



SalesItemEntity salesItemEntity = (SalesItemEntity)args[1];



    int intLngth = args.length;


if (intLngth == 2)
{



if (salesItemEntity.getMaterial() != null)
{
BigDecimal dclQty1 = salesItemEntity.getQuantity();
double dblSalesQty = dclQty1.doubleValue();
if (dblSalesQty == 1)
{
InputDialogInFrame frame = new InputDialogInFrame();
frame.setAlwaysOnTop(true);
double AmountWithoutVAT = Double.parseDouble(JOptionPane.showInputDialog(frame,"Item Name : " + salesItemEntity.getDescription() + System.lineSeparator() +"Available Quantity : " + System.lineSeparator() + "Price With VAT : " + salesItemEntity.getUnitGrossAmount().toString() + System.lineSeparator() + "Price Without VAT : " + salesItemEntity.getUnitNetAmount() + System.lineSeparator() + "Enter New Price Without VAT : ", ""));


if (Double.toString(AmountWithoutVAT) != "")
{
if (salesItemEntity.getNote() != "Done")
{
CDBSession dbSession1 = CDBSessionFactory.instance.createSession();
IReceiptManager rdto = new ReceiptManager(dbSession1);

double AmountWithVAT = AmountWithoutVAT * 1.05;

salesItemEntity.setUnitGrossAmount(new BigDecimal(AmountWithVAT));
salesItemEntity.setUnitPriceChanged(true);


rdto.calculate(receipt,EntityActions.Update);

if(!dbSession1.isClosed())
{
dbSession1.closeDBSession();
dbSession1.close();

dbSession1 = null;


}

}
}
salesItemEntity.setNote("Done");
}
}
}

}









share|improve this question







New contributor




user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$



put on hold as off-topic by tinstaafl, 200_success, Jamal Feb 26 at 6:25


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – tinstaafl, 200_success, Jamal

If this question can be reworded to fit the rules in the help center, please edit the question.





















    -2












    $begingroup$


    how i can read tax rate from line level ? i want to read 1.05 that is my tax rate, i want to read this like salesItemEntity.taxamount like



    SalesItemEntity salesItemEntity = (SalesItemEntity)args[1];



        int intLngth = args.length;


    if (intLngth == 2)
    {



    if (salesItemEntity.getMaterial() != null)
    {
    BigDecimal dclQty1 = salesItemEntity.getQuantity();
    double dblSalesQty = dclQty1.doubleValue();
    if (dblSalesQty == 1)
    {
    InputDialogInFrame frame = new InputDialogInFrame();
    frame.setAlwaysOnTop(true);
    double AmountWithoutVAT = Double.parseDouble(JOptionPane.showInputDialog(frame,"Item Name : " + salesItemEntity.getDescription() + System.lineSeparator() +"Available Quantity : " + System.lineSeparator() + "Price With VAT : " + salesItemEntity.getUnitGrossAmount().toString() + System.lineSeparator() + "Price Without VAT : " + salesItemEntity.getUnitNetAmount() + System.lineSeparator() + "Enter New Price Without VAT : ", ""));


    if (Double.toString(AmountWithoutVAT) != "")
    {
    if (salesItemEntity.getNote() != "Done")
    {
    CDBSession dbSession1 = CDBSessionFactory.instance.createSession();
    IReceiptManager rdto = new ReceiptManager(dbSession1);

    double AmountWithVAT = AmountWithoutVAT * 1.05;

    salesItemEntity.setUnitGrossAmount(new BigDecimal(AmountWithVAT));
    salesItemEntity.setUnitPriceChanged(true);


    rdto.calculate(receipt,EntityActions.Update);

    if(!dbSession1.isClosed())
    {
    dbSession1.closeDBSession();
    dbSession1.close();

    dbSession1 = null;


    }

    }
    }
    salesItemEntity.setNote("Done");
    }
    }
    }

    }









    share|improve this question







    New contributor




    user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$



    put on hold as off-topic by tinstaafl, 200_success, Jamal Feb 26 at 6:25


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – tinstaafl, 200_success, Jamal

    If this question can be reworded to fit the rules in the help center, please edit the question.



















      -2












      -2








      -2





      $begingroup$


      how i can read tax rate from line level ? i want to read 1.05 that is my tax rate, i want to read this like salesItemEntity.taxamount like



      SalesItemEntity salesItemEntity = (SalesItemEntity)args[1];



          int intLngth = args.length;


      if (intLngth == 2)
      {



      if (salesItemEntity.getMaterial() != null)
      {
      BigDecimal dclQty1 = salesItemEntity.getQuantity();
      double dblSalesQty = dclQty1.doubleValue();
      if (dblSalesQty == 1)
      {
      InputDialogInFrame frame = new InputDialogInFrame();
      frame.setAlwaysOnTop(true);
      double AmountWithoutVAT = Double.parseDouble(JOptionPane.showInputDialog(frame,"Item Name : " + salesItemEntity.getDescription() + System.lineSeparator() +"Available Quantity : " + System.lineSeparator() + "Price With VAT : " + salesItemEntity.getUnitGrossAmount().toString() + System.lineSeparator() + "Price Without VAT : " + salesItemEntity.getUnitNetAmount() + System.lineSeparator() + "Enter New Price Without VAT : ", ""));


      if (Double.toString(AmountWithoutVAT) != "")
      {
      if (salesItemEntity.getNote() != "Done")
      {
      CDBSession dbSession1 = CDBSessionFactory.instance.createSession();
      IReceiptManager rdto = new ReceiptManager(dbSession1);

      double AmountWithVAT = AmountWithoutVAT * 1.05;

      salesItemEntity.setUnitGrossAmount(new BigDecimal(AmountWithVAT));
      salesItemEntity.setUnitPriceChanged(true);


      rdto.calculate(receipt,EntityActions.Update);

      if(!dbSession1.isClosed())
      {
      dbSession1.closeDBSession();
      dbSession1.close();

      dbSession1 = null;


      }

      }
      }
      salesItemEntity.setNote("Done");
      }
      }
      }

      }









      share|improve this question







      New contributor




      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      how i can read tax rate from line level ? i want to read 1.05 that is my tax rate, i want to read this like salesItemEntity.taxamount like



      SalesItemEntity salesItemEntity = (SalesItemEntity)args[1];



          int intLngth = args.length;


      if (intLngth == 2)
      {



      if (salesItemEntity.getMaterial() != null)
      {
      BigDecimal dclQty1 = salesItemEntity.getQuantity();
      double dblSalesQty = dclQty1.doubleValue();
      if (dblSalesQty == 1)
      {
      InputDialogInFrame frame = new InputDialogInFrame();
      frame.setAlwaysOnTop(true);
      double AmountWithoutVAT = Double.parseDouble(JOptionPane.showInputDialog(frame,"Item Name : " + salesItemEntity.getDescription() + System.lineSeparator() +"Available Quantity : " + System.lineSeparator() + "Price With VAT : " + salesItemEntity.getUnitGrossAmount().toString() + System.lineSeparator() + "Price Without VAT : " + salesItemEntity.getUnitNetAmount() + System.lineSeparator() + "Enter New Price Without VAT : ", ""));


      if (Double.toString(AmountWithoutVAT) != "")
      {
      if (salesItemEntity.getNote() != "Done")
      {
      CDBSession dbSession1 = CDBSessionFactory.instance.createSession();
      IReceiptManager rdto = new ReceiptManager(dbSession1);

      double AmountWithVAT = AmountWithoutVAT * 1.05;

      salesItemEntity.setUnitGrossAmount(new BigDecimal(AmountWithVAT));
      salesItemEntity.setUnitPriceChanged(true);


      rdto.calculate(receipt,EntityActions.Update);

      if(!dbSession1.isClosed())
      {
      dbSession1.closeDBSession();
      dbSession1.close();

      dbSession1 = null;


      }

      }
      }
      salesItemEntity.setNote("Done");
      }
      }
      }

      }






      java






      share|improve this question







      New contributor




      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Feb 26 at 5:25









      user193861user193861

      1




      1




      New contributor




      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user193861 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      put on hold as off-topic by tinstaafl, 200_success, Jamal Feb 26 at 6:25


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – tinstaafl, 200_success, Jamal

      If this question can be reworded to fit the rules in the help center, please edit the question.







      put on hold as off-topic by tinstaafl, 200_success, Jamal Feb 26 at 6:25


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – tinstaafl, 200_success, Jamal

      If this question can be reworded to fit the rules in the help center, please edit the question.






















          0






          active

          oldest

          votes

















          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          How do i solve the “ No module named 'mlxtend' ” issue on Jupyter?

          Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...