如何判断Quickbooks采购订单在QBFC中是否已完成/填写/关闭? 您如何判断Quickbooks采购订单是否正确 QBFC中是否已完成/填写/关闭
如果所有项目均已收到或行已手动关闭,则QuickBooks中的采购订单视为已关闭。如果所有项目均已收到,则IsFullyReceived将为true(采购订单将显示“已全部收到”戳记)。如果用户手动“关闭”未结项目,则PO将关闭,IsManuallCyclosed将为真。请记住,如果两者都是假的,这并不意味着整个采购订单是开放的,因为可能有一个针对订单的部分接收如何判断Quickbooks采购订单在QBFC中是否已完成/填写/关闭? 您如何判断Quickbooks采购订单是否正确 QBFC中是否已完成/填写/关闭,quickbooks,intuit-partner-platform,qbfc,Quickbooks,Intuit Partner Platform,Qbfc,如果所有项目均已收到或行已手动关闭,则QuickBooks中的采购订单视为已关闭。如果所有项目均已收到,则IsFullyReceived将为true(采购订单将显示“已全部收到”戳记)。如果用户手动“关闭”未结项目,则PO将关闭,IsManuallCyclosed将为真。请记住,如果两者都是假的,这并不意味着整个采购订单是开放的,因为可能有一个针对订单的部分接收 IPurchaseOrderRet poRet = poRetList.GetAt(0); if(poRet.IsFullyRecei
IPurchaseOrderRet poRet = poRetList.GetAt(0);
if(poRet.IsFullyReceived == true || poRet.IsManuallyClosed == true)
{
// The PO is 'closed'
}
else
{
// There are still some open items on the PO
for(int index=0;index<poRet.ORPurchaseOrderLineRetList.Count;index++)
{
IORPurchaseOrderLineRet poLine = poRet.ORPurchaseOrderLineRetList.GetAt(index);
if(poLine.ortype == ENORPurchaseOrderLineRet.orpolrPurchaseOrderLineRet)
{
// Check if the received quantity matches the ordered quantity
if(poLine.PurchaseOrderLineRet.Quantity.GetValue() == poLine.PurchaseOrderLineRet.ReceivedQuantity.GetValue())
{
// Line has been fully received
}
if(poLine.PurchaseOrderLineRet.IsManuallyClosed.GetValue() == true)
{
// Line has been manually closed, but could still have
// partial received quantity
}
}
else
{
// Check the GroupLineRet
}
}
}
IPurchaseOrderRet poRet=poRetList.GetAt(0);
if(poRet.IsFullyReceived==true | | poRet.ismanuallclosed==true)
{
//采购订单已“关闭”
}
其他的
{
//采购订单上仍有一些未结项目
对于(int index=0;index