Default Tax for sale.order.line

Topics: OpenErpNet Connector
Oct 8, 2014 at 8:40 AM
I try to enter sale.order.line -items to a previous created order.
Order is ok, but I've trouble to insert the tax id(s). It seems there is an other table related on OE.
ar neworderline = new OSalesOrderLine();
                   
                    neworderline.orderId = orderId;
                    neworderline.name = item.Product.Name;
                    neworderline.productUomQty = Convert.ToDouble(item.Quantity);
                    neworderline.priceunit = Convert.ToDouble(item.PriceExclTax * currRate);
                    // 1= my default tax cat, so I tried a struct int[] here but'ts not saved or visible on OE, no erros!!
                    neworderlinetax.taxId = ???
                    oeService.AddEntity<OSalesOrderLine>(neworderline);

// it doesn't save the tax category
[OpenErpMap("tax_id")]
        public int[] taxId
        {
            get;
            set;
        }