This commit is contained in:
@@ -5069,6 +5069,9 @@ namespace AyaNovaQBI
|
|||||||
ca.SalesPrice.SetValue((double)c.Retail);
|
ca.SalesPrice.SetValue((double)c.Retail);
|
||||||
ca.PurchaseCost.SetValue((double)c.Cost);
|
ca.PurchaseCost.SetValue((double)c.Cost);
|
||||||
|
|
||||||
|
if (QVersion > 6.0)//new v8
|
||||||
|
ca.ManufacturerPartNumber.SetValue(T(31, c.ManufacturerNumber));
|
||||||
|
|
||||||
//Set the QB item identification and edit sequence
|
//Set the QB item identification and edit sequence
|
||||||
ca.ListID.SetValue(im.IntegrationItemId);
|
ca.ListID.SetValue(im.IntegrationItemId);
|
||||||
ca.EditSequence.SetValue(sEditSequence);
|
ca.EditSequence.SetValue(sEditSequence);
|
||||||
@@ -5255,6 +5258,9 @@ namespace AyaNovaQBI
|
|||||||
ca.SalesPrice.SetValue((double)c.Retail);
|
ca.SalesPrice.SetValue((double)c.Retail);
|
||||||
ca.PurchaseCost.SetValue((double)c.Cost);
|
ca.PurchaseCost.SetValue((double)c.Cost);
|
||||||
|
|
||||||
|
if (QVersion > 6.0)//new v8
|
||||||
|
ca.ManufacturerPartNumber.SetValue(T(31, c.ManufacturerNumber));
|
||||||
|
|
||||||
|
|
||||||
if (USE_INVENTORY)
|
if (USE_INVENTORY)
|
||||||
{
|
{
|
||||||
@@ -5264,7 +5270,7 @@ namespace AyaNovaQBI
|
|||||||
var partinventories = rstocklevel.ObjectResponse["data"].ToObject<List<PartInventory>>();
|
var partinventories = rstocklevel.ObjectResponse["data"].ToObject<List<PartInventory>>();
|
||||||
|
|
||||||
ca.QuantityOnHand.SetValue((double)partinventories.Sum(z => z.Balance));
|
ca.QuantityOnHand.SetValue((double)partinventories.Sum(z => z.Balance));
|
||||||
ca.ReorderPoint.SetValue((double)partstocklevels.Sum(z=>z.MinimumQuantity));
|
ca.ReorderPoint.SetValue((double)partstocklevels.Sum(z => z.MinimumQuantity));
|
||||||
}
|
}
|
||||||
//------------------------
|
//------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user