Dynamicweb 8 Documentation
UpdateVAT(Double,Double) Method
Example 

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

Parameters

vat
The VAT. DB fields names are OrderVAT and OrderPriceVAT.
vatpercent
The VAT percent. DB field name is OrderPriceVATPercent.
Example
class MyPage : System.Web.UI.Page
{
   public void DoSave(string orderId, double vat, double vatpercent)
   {
       if (orderId.Length == 0)
           return;
       Dynamicweb.eCommerce.Orders.Order order = Dynamicweb.eCommerce.Orders.Order.Create(orderId);
       if (order.ID != null)
       {
           order.UpdateVAT(vat, vatpercent);
           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