Hi All,
when trying to create purchase order using AIF the purchase order created successfully but there are two problems i want to solve
1- the purch qty in sales line remains 1 by default although i changed the value.
2- purchase type always takes the default value (journal) although the value entered is purchase order.

any help?

this is my code
var dim = new AxdEntity_InventDim_1()
{
InventSiteId = "Cairo",
InventLocationId = "Primary",
};

var purchLine = new AxdEntity_PurchLine_1()
{
ItemId = "30115",
PurchUnit = "Bag 10 Kg",
PurchQty = 20,
InventDim_1 = new AxdEntity_InventDim_1[] { dim }
};


var purchTable = new AxdEntity_PurchTable_1()
{
OrderAccount = "000001",
LanguageId = "en-us",
CurrencyCode = "EGP",
PurchName = "aaaaaaaaaaaaaaa",
PurchaseType = AxdEnum_PurchaseType.Purch,
PurchLine_1 = new AxdEntity_PurchLine_1[] { purchLine }

};

AxdPurchaseOrder purchOrder = new AxdPurchaseOrder();

purchOrder.PurchTable_1 = new AxdEntity_PurchTable_1[] { purchTable };

CallContext callContext = new CallContext
{
Company = "ccc",
Language = "en-us"
};

PurchaseOrderServiceClient client = new PurchaseOrderServiceClient();
try
{
EntityKey[] purchOrderCreatedEntity = client.create(callContext, purchOrder);
EntityKey purchOrderCreated = (EntityKey)purchOrderCreatedEntity.GetValue(0);
Console.WriteLine("The purch order created has a Purch ID of " + purchOrderCreated.KeyData[0].Value);
Console.WriteLine(purchLine.PurchQty);
Console.ReadLine();
}
catch (Exception e)
{
Console.WriteLine(e.ToString());
Console.ReadLine();
}