var miscTyp = "deliveryaddress";
var title = "Delivery to";
var company = contact$contactOrganization;
var salutation= contact$contactSalutation;
var name = contact$contactName;
var department = contact$contactDepartment;
var position = contact$contactPosition;
var street = contact$contactStreet;
var zipcode = contact$contactZipCode;
var city = contact$contactCity;
var country = contact$contactCountry;
var id = work$contactId;
var jsonDeliveryAddress = "{\"typ\": \""+miscTyp+"\",\"title\": \""+title+"\", \"company\": \""+company+"\", \"salutation\": \""+salutation+"\", \"name\": \""+name+"\", \"department\": \""+department+"\", \"position\": \""+position+"\", \"street\": \""+street+"\", \"zipcode\": \""+zipcode+"\", \"city\": \""+city+"\",\"country\": \""+country+"\",\"id\": \""+id+"\"}";
var work$ACadditemMisc = jsonDeliveryAddress;
Der typ definiert die Positionsvariante "deliveryaddress" (Lieferadresse).
Die aufgeführten Felder werden in der Positionserfassung und auf dem Beleg gezeigt.
work$ACadditemMisc belegt eine Position in Zeile eins (work$ACadditemMiscBottom würde die Position am Ende hinterlegen).
The type defines the item variant "deliveryaddress".
The fields listed are shown in the item entry and on the document.
work$ACadditemMisc occupies a position in line one (work$ACadditemMiscBottom would deposit the position at the end).
If a collective invoice is initiated, the same delivery addresses are recognized by the id and removed in the order of repetition.
var jsonS = $$F251;
if (jsonS == "" || jsonS == "null"){
jsonS = "{}";
}
var json = JSON.parse( jsonS .replace(/'/g, '"') );
var key = "sport" ;
json[key] = "American football";
$$F251 = JSON.stringify(json);