translations
This commit is contained in:
@@ -17,3 +17,5 @@ HouseNumber = House Number
|
|||||||
StreetName = Street Name
|
StreetName = Street Name
|
||||||
PostalCode = Postal Code
|
PostalCode = Postal Code
|
||||||
Country = Country
|
Country = Country
|
||||||
|
AddressID = Address ID
|
||||||
|
BusinessPartner = Business Partner
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ annotate my.Authors with {
|
|||||||
|
|
||||||
annotate my.ShippingAddresses with {
|
annotate my.ShippingAddresses with {
|
||||||
AddressID @title:'{i18n>AddressID}';
|
AddressID @title:'{i18n>AddressID}';
|
||||||
BusinessPartner @UI.hidden;
|
BusinessPartner @title:'{i18n>BusinessPartner}';
|
||||||
CityName @title:'{i18n>CityName}';
|
CityName @title:'{i18n>CityName}';
|
||||||
StreetName @title:'{i18n>StreetName}';
|
StreetName @title:'{i18n>StreetName}';
|
||||||
PostalCode @title:'{i18n>PostalCode}';
|
PostalCode @title:'{i18n>PostalCode}';
|
||||||
|
|||||||
@@ -90,13 +90,11 @@ async function _fillAddress (req) {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
if (response && response.length > 0) {
|
if (response && response.length > 0) {
|
||||||
console.log('to be inserted: ', response)
|
|
||||||
const tx2 = cds.transaction(req)
|
const tx2 = cds.transaction(req)
|
||||||
try {
|
try {
|
||||||
await tx2.run(INSERT.into(ShippingAddresses).entries(response))
|
await tx2.run(INSERT.into(ShippingAddresses).entries(response))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// already in there
|
// already in there
|
||||||
console.log(e)
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
req.error('Shipping address not found.')
|
req.error('Shipping address not found.')
|
||||||
|
|||||||
Reference in New Issue
Block a user