java – how can I read the tax rate of the line level? i want to read 1.05 which is my tax rate, i want to read this as salesItemEntity.taxamount like

How can I read the rate of imposition of the line level? i want to read 1.05 which is my tax rate, i want to read this as 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 () + "Quantity Available:" + 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 ()! = "Completed")
{
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 (received, EntityActions.Update);

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

dbSession1 = null;


}

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

}