简体   繁体   English

通过IPP指定发票类别

[英]Specifying an Invoice Class via IPP

Invoice in QB online can easily be assigned a 'class', which helps to divide up income / expenses. 可以轻松地将在线QB中的发票分配给“类别”,这有助于划分收入/支出。

These classes are likely a "ReferenceType", as Classes are pre-defined list. 这些类可能是“ ReferenceType”,因为类是预定义的列表。 I don't see any way to update this field via IPP. 我看不到通过IPP更新此字段的任何方法。 Am I missing something? 我想念什么吗? I see that you can set the ClassRef for each individual line, but isn't this something different? 我看到您可以为每行设置ClassRef,但这是否有所不同?

Any clarification is much appreciated. 任何澄清都非常感谢。 Thank you! 谢谢!

First make sure you are a Plus subscriber and have Classes enabled in your company preferences. 首先,请确保您是Plus订户,并在公司首选项中启用了Classes。

You can set a class ref on every invoice line. 您可以在每个发票行上设置类别参考。 It is basically a ReferenceType. 它基本上是一个ReferenceType。 Here is an example with a class used in an invoice. 这是发票中使用的类的示例。

<Invoice domain="QBO" sparse="false">
  <Id>89</Id>
  <SyncToken>0</SyncToken>
  <MetaData>
    <CreateTime>2014-01-23T10:40:56-08:00</CreateTime>
    <LastUpdatedTime>2014-01-23T10:40:56-08:00</LastUpdatedTime>
  </MetaData>
  <DocNumber>1001</DocNumber>
  <TxnDate>2014-01-23</TxnDate>
  <Line>
    <Id>1</Id>
    <LineNum>1</LineNum>
    <Description>sales description</Description>
    <Amount>100.00</Amount>
    <DetailType>SalesItemLineDetail</DetailType>
    <SalesItemLineDetail>
      <ItemRef name="Sales">1</ItemRef>
      <ClassRef name="class3">300500000000000000102</ClassRef>
      <UnitPrice>100</UnitPrice>
      <Qty>1</Qty>
      <TaxCodeRef>NON</TaxCodeRef>
    </SalesItemLineDetail>
  </Line>
  <Line>
    <Amount>100.00</Amount>
    <DetailType>SubTotalLineDetail</DetailType>
    <SubTotalLineDetail />
  </Line>
  <CustomerRef name="foobar">17</CustomerRef>
  <SalesTermRef>3</SalesTermRef>
  <DueDate>2014-02-22</DueDate>
  <TotalAmt>100.00</TotalAmt>
  <ApplyTaxAfterDiscount>false</ApplyTaxAfterDiscount>
  <PrintStatus>NeedToPrint</PrintStatus>
  <EmailStatus>NotSet</EmailStatus>
  <Balance>100.00</Balance>
  <Deposit>0</Deposit>
  <AllowIPNPayment>false</AllowIPNPayment>
  <AllowOnlinePayment>false</AllowOnlinePayment>
  <AllowOnlineCreditCardPayment>false</AllowOnlineCreditCardPayment>
  <AllowOnlineACHPayment>false</AllowOnlineACHPayment>
</Invoice>

ClassRef can appear at either transaction level or line level based on the Class Tracking setting of setting in Company preferences and the state the setting was in when the invoice was created. 基于“公司”偏好设置中“类别跟踪”设置以及创建发票时该设置所处的状态,ClassRef可以出现在交易级别或行级别。 The docs need to be corrected. 该文档需要更正。

Agreed there is a problem and both answers above are correct depending on what version of QBO you are hitting. 同意有问题,根据您所击打的QBO版本,以上两个答案均正确。

Looking at a Classic QBO company file, classes are at the line level and not at the invoice level. 查看经典QBO公司文件,类在行级别而不在发票级别。

But if you look at Harmony QBO company file (new format), classes are at the invoice level and not line level. 但是,如果您查看Harmony QBO公司文件(新格式),则类别在发票级别而非行级别。

I have submitted bugs to QBO and for the docs to add clarifications. 我已将错误提交给QBO,并为文档添加了说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM