Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions AvaTax.TaxModule.Data/Model/AvaCreateTransactionModel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System;
using Avalara.AvaTax.RestClient;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, using directives for System.* namespaces should be above all other using directives. So, this line should be at line 5, as it was before.

Copy link
Contributor Author

@AliveMen AliveMen Feb 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How I remember, in our code style documentation has been written that we should use PowerTools.
Powertools

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;
Expand Down Expand Up @@ -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)
Expand Down