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...
$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");
}
}
}
}
java
New contributor
$endgroup$
put on hold as off-topic by tinstaafl, 200_success, Jamal♦ 1 hour ago
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.
add a comment |
$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");
}
}
}
}
java
New contributor
$endgroup$
put on hold as off-topic by tinstaafl, 200_success, Jamal♦ 1 hour ago
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.
add a comment |
$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");
}
}
}
}
java
New contributor
$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
java
New contributor
New contributor
New contributor
asked 2 hours ago
user193861user193861
1
1
New contributor
New contributor
put on hold as off-topic by tinstaafl, 200_success, Jamal♦ 1 hour ago
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♦ 1 hour ago
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.
add a comment |
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes