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