Dynamicweb 8 Documentation
UpdateVAT(Double) Method
Example 

The VAT. DB fields names are OrderVAT and OrderPriceVAT.
Updates the VAT.
Syntax
'Declaration
 
Public Overloads Sub UpdateVAT( _ 
   ByVal vat As Double _ 
) 
public void UpdateVAT( 
   double vat 
)

Parameters

vat
The VAT. DB fields names are OrderVAT and OrderPriceVAT.
Example
class MyPage : System.Web.UI.Page
{
   public void DoSave(string orderId, double vat)
   {
       if (orderId.Length == 0)
           return;
       Dynamicweb.eCommerce.Orders.Order order = Dynamicweb.eCommerce.Orders.Order.Create(orderId);
       if (order.ID != null)
       {
           order.UpdateVAT(vat);
           order.Save();
       }
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Order Class
Order Members
Overload List

Send Feedback