diff --git a/AvaTax.TaxModule.Data/Model/AvaCreateTransactionModel.cs b/AvaTax.TaxModule.Data/Model/AvaCreateTransactionModel.cs index aef94ae..078903d 100644 --- a/AvaTax.TaxModule.Data/Model/AvaCreateTransactionModel.cs +++ b/AvaTax.TaxModule.Data/Model/AvaCreateTransactionModel.cs @@ -1,8 +1,8 @@ -using System; +using Avalara.AvaTax.RestClient; +using System; using System.Collections.Generic; using System.Linq; using System.Threading; -using Avalara.AvaTax.RestClient; using VirtoCommerce.Domain.Commerce.Model; using VirtoCommerce.Domain.Order.Model; using VirtoCommerce.Domain.Tax.Model; @@ -57,6 +57,7 @@ public virtual AvaCreateTransactionModel FromOrder(CustomerOrder order, string r type = DocumentType.SalesInvoice; currencyCode = order.Currency; companyCode = requiredCompanyCode; + commit = true; var shippingAddress = order.Addresses.FirstOrDefault(x => x.AddressType == AddressType.Shipping); if (shippingAddress != null && sourceAddress != null)