QuickBooks API忽略TrackQtyOnHand字段?

时间:2015-07-19 14:05:54

标签: php quickbooks-online

我正在尝试使用QuickBooks PHP SDK添加库存项目。我指定了TrackQtyOnHand,即起始库存和库存开始日期,但这些字段似乎被忽略了?

非常感谢任何帮助!

谢谢!

以下是请求:

    IPPItem Object
(
    [Name] => Product Name
    [Description] => ProductDesc
    [Active] => 1
    [SubItem] => 
    [ParentRef] => 
    [Level] => 
    [FullyQualifiedName] => 
    [Taxable] => 1
    [SalesTaxIncluded] => 
    [PercentBased] => 
    [UnitPrice] => 17.54386
    [RatePercent] => 
    [Type] => Inventory
    [PaymentMethodRef] => 
    [UOMSetRef] => 
    [IncomeAccountRef] => IPPReferenceType Object
        (
            [name] => Sales of Product Income
            [type] => Account
            [value] => 80
        )

    [PurchaseDesc] => 
    [PurchaseTaxIncluded] => 
    [PurchaseCost] => 4.24000
    [ExpenseAccountRef] => IPPReferenceType Object
        (
            [name] => Cost of sales
            [type] => Account
            [value] => 81
        )

    [COGSAccountRef] => 
    [AssetAccountRef] => IPPReferenceType Object
        (
            [name] => Inventory Asset
            [type] => Account
            [value] => 82
        )

    [PrefVendorRef] => 
    [AvgCost] => 
    [TrackQtyOnHand] => 1
    [QtyOnHand] => 10
    [QtyOnPurchaseOrder] => 
    [QtyOnSalesOrder] => 
    [ReorderPoint] => 
    [ManPartNum] => 
    [DepositToAccountRef] => 
    [SalesTaxCodeRef] => 
    [PurchaseTaxCodeRef] => 
    [InvStartDate] => 2015-03-01
    [BuildPoint] => 
    [PrintGroupedItems] => 
    [SpecialItem] => 
    [SpecialItemType] => 
    [ItemGroupDetail] => 
    [ItemAssemblyDetail] => 
    [ItemEx] => 
    [Id] => 
    [SyncToken] => 
    [MetaData] => 
    [CustomField] => 
    [AttachableRef] => 
    [domain] => 
    [status] => 
    [sparse] => 
)

回复:

    IPPItem Object
(
    [Name] => Product Name
    [Description] => ProductDesc
    [Active] => true
    [SubItem] => 
    [ParentRef] => 
    [Level] => 
    [FullyQualifiedName] => Product Name
    [Taxable] => false
    [SalesTaxIncluded] => false
    [PercentBased] => 
    [UnitPrice] => 17.54386
    [RatePercent] => 
    [Type] => Service
    [PaymentMethodRef] => 
    [UOMSetRef] => 
    [IncomeAccountRef] => 80
    [PurchaseDesc] => 
    [PurchaseTaxIncluded] => false
    [PurchaseCost] => 4.24
    [ExpenseAccountRef] => 81
    [COGSAccountRef] => 
    [AssetAccountRef] => 
    [PrefVendorRef] => 
    [AvgCost] => 
    [TrackQtyOnHand] => false
    [QtyOnHand] => 
    [QtyOnPurchaseOrder] => 
    [QtyOnSalesOrder] => 
    [ReorderPoint] => 
    [ManPartNum] => 
    [DepositToAccountRef] => 
    [SalesTaxCodeRef] => 
    [PurchaseTaxCodeRef] => 
    [InvStartDate] => 
    [BuildPoint] => 
    [PrintGroupedItems] => 
    [SpecialItem] => 
    [SpecialItemType] => 
    [ItemGroupDetail] => 
    [ItemAssemblyDetail] => 
    [ItemEx] => 
    [Id] => 15
    [SyncToken] => 0
    [MetaData] => IPPModificationMetaData Object
        (
            [CreatedByRef] => 
            [CreateTime] => 2015-07-19T07:02:57-07:00
            [LastModifiedByRef] => 
            [LastUpdatedTime] => 2015-07-19T07:02:57-07:00
            [LastChangedInQB] => 
            [Synchronized] => 
        )

    [CustomField] => 
    [AttachableRef] => 
    [domain] => 
    [status] => 
    [sparse] => 
)

1 个答案:

答案 0 :(得分:0)

您是否在公司设置 - >销售标签中启用了手头数量?