【问题标题】:Quickbooks Desktop: Billable status is not applicable for the specified Account typeQuickbooks Desktop:计费状态不适用于指定的帐户类型
【发布时间】:2014-03-10 04:43:17
【问题描述】:

我已尝试使用 v3 QB REST API 向 Quickbooks Desktop 提交以下请求内容

<?xml version="1.0" encoding="UTF-8"?>
<ns0:Purchase xmlns:ns0="http://schema.intuit.com/finance/v3" domain="QB">
  <ns0:TxnDate>2014-03-10</ns0:TxnDate>
  <ns0:PrivateNote>Report to QBD</ns0:PrivateNote>
    <ns0:Line>
    <ns0:Description>60000 Advertising and Promotion</ns0:Description>
    <ns0:Amount>10.00</ns0:Amount>
    <ns0:DetailType>AccountBasedExpenseLineDetail</ns0:DetailType>
    <ns0:AccountBasedExpenseLineDetail>
      <ns0:CustomerRef name="TOEIC">QB:17</ns0:CustomerRef>
      <ns0:AccountRef name="Advertising and Promotion">QB:7</ns0:AccountRef>
      <ns0:BillableStatus>NotBillable</ns0:BillableStatus>
      <ns0:TaxCodeRef>NON</ns0:TaxCodeRef>
    </ns0:AccountBasedExpenseLineDetail>
  </ns0:Line>
  <ns0:Line>
    <ns0:Description>12100 Inventory Asset</ns0:Description>
    <ns0:Amount>4.00</ns0:Amount>
    <ns0:DetailType>AccountBasedExpenseLineDetail</ns0:DetailType>
    <ns0:AccountBasedExpenseLineDetail>
      <ns0:CustomerRef name="Future Press">QB:14</ns0:CustomerRef>
      <ns0:AccountRef name="Inventory Asset">QB:31</ns0:AccountRef>
      <ns0:BillableStatus>NotBillable</ns0:BillableStatus>
      <ns0:TaxCodeRef>NON</ns0:TaxCodeRef>
    </ns0:AccountBasedExpenseLineDetail>
  </ns0:Line>
  <ns0:Line>
    <ns0:Description>50000 Cost of Goods Sold</ns0:Description>
    <ns0:Amount>5.00</ns0:Amount>
    <ns0:DetailType>AccountBasedExpenseLineDetail</ns0:DetailType>
    <ns0:AccountBasedExpenseLineDetail>
      <ns0:CustomerRef name="Pawn Shop Chronicles">QB:19</ns0:CustomerRef>
      <ns0:AccountRef name="Automobile Expense">QB:8</ns0:AccountRef>
      <ns0:BillableStatus>NotBillable</ns0:BillableStatus>
      <ns0:TaxCodeRef>NON</ns0:TaxCodeRef>
    </ns0:AccountBasedExpenseLineDetail>
  </ns0:Line>
  <ns0:AccountRef name="My Bank Account">QB:30</ns0:AccountRef>
  <ns0:PaymentType>Check</ns0:PaymentType>
  <ns0:EntityRef name="ExpenseCloud">QB:5</ns0:EntityRef>
  <ns0:TotalAmt>19.00</ns0:TotalAmt>
</ns0:Purchase>

Account=Inventory Asset(帐户类型为其他流动资产)的项目标记为 NotBillable。因为我可以使用 Java API v2 将此请求内容提交到 Quickbooks Desktop,所以效果很好。但是现在,我总是收到此错误 Operation failed with errors: Billable status is not applicable for the specified Account type.

但是,我可以在 Quickbooks 桌面应用程序中直接复制该事务而不会出错。我正在尝试解决它,但没有任何帮助,所以我猜这是 QB API 的问题。

请指教。 谢谢

【问题讨论】:

  • 如果您可以从 QBD UI 创建此条目,请使用 V3 QBD 查询该对象。这样,您可以验证响应。我将尝试使用 V3 重现此用例并确认行为。谢谢

标签: java php quickbooks intuit-partner-platform quickbooks-online


【解决方案1】:

请在此处查看文档- https://developer.intuit.com/docs/95_legacy/qbd_v3/qbd_v3_reference/030_entity_services_reference/purchase 可计费状态仅在请求中传递了 CustomerRef 并且适用于特定帐户类型时才适用:1. 费用 2. 其他费用 3. 已售商品成本

请检查您的帐户类型是否与上述相符。

【讨论】:

  • 好吧,我认为 Intuit 并没有阻止 AccountType=Other Current Asset,因为它仍在 Java API v2 中工作。但确实如此。
猜你喜欢
  • 2021-05-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-08-28
  • 2014-12-14
  • 1970-01-01
  • 2020-04-19
相关资源
最近更新 更多