I am creating a line items and setting a tax rates , but on machine there is no tax and subtotal is showing. Here is my code that i am doing. Here is Screenshot of machine .
Here is the my source Code and also quantity is not displaying on screen.
var taxRates = [];
var tax = new clover.inventory.TaxRate();
tax.setId("5");
tax.setName("VAT");
tax.setRate(5000);
//tax.setTaxAmount(50);
tax.setIsDefault(true);
taxRates.push(tax);
var lineitem2 = new clover.order.LineItem();
lineitem2.setId("1");
lineitem2.setName("testing product");
lineitem2.setPrice(300);
lineitem2.setUnitQty(2);
lineitem2.setIsRevenue(true);
lineitem2.setTaxRates(taxRates);
var lineItemTax = new clover.order.LineItemTaxRates();
lineItemTax.setRates("1", taxRates);
lineItemTax.setRates("1234", taxRates);
lineItemTax.setRates("123", taxRates);
lineItemTax.setRates("12366", taxRates);
lineItemTax.setRates("12365", taxRates);
var order = new clover.order.Order();
order.setTitle("Hi Trent");
order.setId(1234);
order.setLineItems([lineitem2, item, item2, item3, item4]);
cloverConnector.showDisplayOrder(order);