Get 50% OFF QuickBooks for 3 months*

Buy now
cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 
Announcements
Work smarter and get more done with advanced tools that save you time. Discover QuickBooks Online Advanced.

Reply to message

View discussion in a popup

Replying to:
JayBlake
Level 3

Reply to message

  1. I'm applying class's to each line items not the entire invoice.
  2. I'm not going to delete and recreate invoices that have already been closed.
  3. If you want me to move our entire process to creating and adding shipping as a line items, why do you have a shipping field? It seems your giving me a work around or advising me not to use your Shipping field?
  4.  

I can see in the API that the shipping field Invoice is consider a line item but I cannot set the class even from the API:

SalesItemLineDetail shippingsItemLineDetail = new SalesItemLineDetail
{
Qty = new decimal(1.0),
ClassRef = new ReferenceType()
{
Value = ShipMethodRef
},
ItemRef = new ReferenceType()
{
Value = "SHIPPING_ITEM_ID"
}
};

Line shippingLine = new Line
{
Description = "Shipping",
Amount = shippingCost,
AmountSpecified = true,
AnyIntuitObject = shippingsItemLineDetail,
DetailType = LineDetailTypeEnum.SalesItemLineDetail,
DetailTypeSpecified = true
};

lineList.Add(shippingLine);

Need to get in touch?

Contact us