Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I think you are referring to 'ItemType' which is under 'Line' tag</p> <p>Ref - <a href="https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0600_object_reference/salesreceipt" rel="nofollow">https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0600_object_reference/salesreceipt</a></p> <p><strong>XML</strong></p> <pre><code>&lt;Add RequestId="ca435123492c41b891f7841cf4d0e81d" xmlns="http://www.intuit.com/sb/cdm/v2"&gt; &lt;OfferingId&gt;ipp&lt;/OfferingId&gt; &lt;ExternalRealmId&gt;65123456&lt;/ExternalRealmId&gt; &lt;SalesReceipt&gt; &lt;Header&gt; --- &lt;/Header&gt; &lt;Line&gt; &lt;Id idDomain="QB"&gt;66&lt;/Id&gt; &lt;Desc&gt;Description&lt;/Desc&gt; &lt;ItemId idDomain="QB"&gt;4&lt;/ItemId&gt; &lt;ItemName&gt;Dusting&lt;/ItemName&gt; &lt;ItemType&gt;Subtotal&lt;/ItemType&gt; &lt;UnitPrice&gt;1231&lt;/UnitPrice&gt; &lt;/Line&gt; &lt;/SalesReceipt&gt; &lt;/Add&gt; </code></pre> <p>Using Java, I had coded like this. I think, there should be some similar enums/classes in .Net too. Can you take a look at the .Net docs</p> <p>Link - <a href="http://developer-static.intuit.com/SDKDocs/QBV2Doc/IntuitDataServicesSDK/" rel="nofollow">http://developer-static.intuit.com/SDKDocs/QBV2Doc/IntuitDataServicesSDK/</a></p> <p>Instead of '<strong><em>SUBTOTAL</em></strong>', you should use '<strong>Subtotal</strong>'. In the service background, allowed values are [Assembly, Fixed Asset, Group, Inventory, Other Charge, Payment, Product, Service, Subtotal].</p> <p>You can try this use case in the ApiExplorer.</p> <p>Link - <a href="https://developer.intuit.com/apiexplorer?apiname=V2QBD#SalesReceipt" rel="nofollow">https://developer.intuit.com/apiexplorer?apiname=V2QBD#SalesReceipt</a></p> <p><strong>Java Code</strong></p> <pre><code>QBSalesReceipt entityPojo = QBObjectFactory.getQBObject(context, QBSalesReceipt.class); SalesReceiptLine receiptLine = QBObjectFactory.getQBObject(context, SalesReceiptLine.class); receiptLine.setItemType(ItemTypeEnum.SUBTOTAL); ArrayList receiptLines = new ArrayList(); receiptLines.add(receiptLine); entityPojo.setLine(receiptLines); QBSalesReceiptService service = QBServiceFactory.getService(context, QBSalesReceiptService.class); service.addSalesReceipt(context, entityPojo); </code></pre> <p>Plz let me know how it goes. </p> <p>Thanks </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload