public override CustomFieldRef[] GetAddressCustomFields(LocationDTO location)
 {
     return new CustomFieldRef[]
     {
         new StringCustomFieldRef
         {
             scriptId="custrecord_l56_comuna",
             value = this.getComuna(location?.State ?? "Aisén")
         }
     };
 }
 public override CustomFieldRef[] GetAddressCustomFields(LocationDTO location)
 {
     return new CustomFieldRef[]
     {
         new StringCustomFieldRef
         {
             scriptId = "custrecord_l54_provincia",
             value = this.getProvincia(location?.State ?? "Capital Federal")
         }
     };
 }
예제 #3
0
 public abstract CustomFieldRef[] GetAddressCustomFields(LocationDTO location);
 public void TransformAddress(Address netSuiteAddress, LocationDTO location, NetSuiteApi api)
 {
     netSuiteAddress.addr1 = location.StreetName + " " + location.StreetNumber;
     netSuiteAddress.country = getCountry(api).Country;
     netSuiteAddress.countrySpecified = true;
     netSuiteAddress.customFieldList = getCountry(api).GetAddressCustomFields(location);
     netSuiteAddress.attention = null;
     netSuiteAddress.addr2 = location.AddressNotes;
 }
 public override CustomFieldRef[] GetAddressCustomFields(LocationDTO location)
 {
     return new CustomFieldRef[] {};
 }
예제 #6
0
 public void TransformAddress(Address netSuiteAddress, LocationDTO location, NetSuiteApi api)
 {
     netSuiteAddress.state = location.State;
     netSuiteAddress.country = Country._mexico;
     netSuiteAddress.countrySpecified = true;
 }