コード例 #1
0
 public void ASTInvoiceUpdateTestUsingoAuth(ServiceContext qboContextoAuth)
 {
     //Creating the Invoice for Adding
     Invoice invoice = QBOHelper.CreateASTInvoice(qboContextoAuth);
     //Adding the Invoice
     Invoice added = Helper.Add <Invoice>(qboContextoAuth, invoice);
     //Change the data of added entity
     Invoice changed = QBOHelper.UpdateASTInvoice(qboContextoAuth, added); //To override AST invoice tax using TotalTax
     //Update the returned entity data
     Invoice updated = Helper.Update <Invoice>(qboContextoAuth, changed);  //Verify the updated Invoice
 }