Ks. Robak 314 Napisano 11 Stycznia 2015 Udostępnij Napisano 11 Stycznia 2015 w Eksport do EN (BETA) W transformacie do poleconych należy zmienić na <xsl:variable name="Miejscowa">N</xsl:variable> Gdyż polecone nie mają opcji miejscowych. Cytuj Link to postu
M W 5 Napisano 16 Stycznia 2015 Udostępnij Napisano 16 Stycznia 2015 w Eksport do EN (BETA) W moim przypadku to niestety nie pomogło, nadal jest ten sam błąd Cytuj Link to postu
pwknap 0 Napisano 16 Stycznia 2015 Udostępnij Napisano 16 Stycznia 2015 w Eksport do EN (BETA) U mnie pomogło pozostawienie tego pola pustego, trzeba zapisać tę linię, jak poniżej: <xsl:variable name="Miejscowa"></xsl:variable> Cytuj Link to postu
Ks. Robak 314 Napisano 16 Stycznia 2015 Udostępnij Napisano 16 Stycznia 2015 w Eksport do EN (BETA) Można jeszcze spróbować usunąć całkowicie tą linię. Cytuj Link to postu
M W 5 Napisano 17 Stycznia 2015 Udostępnij Napisano 17 Stycznia 2015 w Eksport do EN (BETA) Dzięki pwknap, usunięcie 'N' zadziałało - miło :-) Cytuj Link to postu
karamba 0 Napisano 26 Stycznia 2015 Udostępnij Napisano 26 Stycznia 2015 w Eksport do EN (BETA) Spróbuj taki: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.sello.pl/export"> <!--POCZTEX--> <!--Oznaczenie umowy na podstawie, której nadawane są przesyłki pocztowe (idUmowyMRUMC).--> <xsl:variable name="NrUmowy"></xsl:variable> <!--Oznaczenie Karty na podstawie, której nadawane są przesyłki pocztowe (idKartyMRUMR).--> <xsl:variable name="KartaUmowy"></xsl:variable> <!--Rodzaj serwisu przesyłki Pocztex-N: E – Ekspres K – Kurier--> <xsl:variable name="RodzajPrzesylki">E</xsl:variable> <!--Termin-serwis dla przesyłki: A – Miejski do 3h - do 5 km B – Miejski do 3h - do 10 km C – Miejski do 3h - do 15 km D – Miejski do 3h - powyżej 15 km E – Miejski do 4h - do 10 km F – Miejski do 4h - do 15 km G – Miejski do 4h - do 20 km H – Miejski do 4h - do 30 km J – Miejski do 4h - do 40 km M – Krajowy R – Bezpośredni do 30 kg S – Bezpośredni powyżej 30 do 100 kg X – Ekspres 24--> <xsl:variable name="Termin">X</xsl:variable> <!--Forma przekazania kwoty pobrania: P – Na wskazany adres S – Na rachunek bankowy--> <xsl:variable name="SposobPobrania">S</xsl:variable> <!--Sposób powiadomienia adresata przesyłki. Jeśli pole jest puste, to powiadomienie nie jest wysyłane. M – SMS E – E-mail--> <xsl:variable name="FormaPowiadomieniaAdresata">M</xsl:variable> <!--Opis dla danej paczki. Pole z dowolną zawartością nie przekraczającą długości 40 znaków--> <xsl:template name="Opis"> <xsl:value-of select="substring(s:Customer/s:Nick,0,15)"/> </xsl:template> <xsl:param name="Year"/> <xsl:param name="Month"/> <xsl:param name="Day"/> <xsl:param name="Hour"/> <xsl:param name="Minute"/> <xsl:param name="Second"/> <xsl:template match="s:ExportData"> <xsl:element name="Nadawca"> <xsl:attribute name="Struktura">1.6</xsl:attribute> <xsl:attribute name="Nazwa"> <xsl:value-of select="s:Company/s:Address/s:Company"/> </xsl:attribute> <xsl:attribute name="NazwaSkrocona"> <xsl:variable name="companyName" select="s:Company/s:Address/s:Company"/> <xsl:value-of select="substring($companyName,0,10)"/> </xsl:attribute> <xsl:attribute name="Ulica"> <xsl:value-of select="s:Company/s:Address/s:Street"/> </xsl:attribute> <xsl:attribute name="Dom"> <xsl:value-of select="s:Company/s:Address/s:HouseNumber"/> </xsl:attribute> <xsl:attribute name="Lokal"> <xsl:value-of select="s:Company/s:Address/s:FlatNumber"/> </xsl:attribute> <xsl:attribute name="Miejscowosc"> <xsl:value-of select="s:Company/s:Address/s:City"/> </xsl:attribute> <xsl:attribute name="Kod"> <xsl:value-of select="translate(s:Company/s:Address/s:ZipCode,'- ','')"/> </xsl:attribute> <xsl:attribute name="NIP"> <xsl:value-of select="translate(s:Company/s:Address/s:NIP,'- ','')"/> </xsl:attribute> <xsl:attribute name="Zrodlo">NADAWCA</xsl:attribute> <xsl:attribute name="Guid"> <xsl:value-of select="s:Company/s:GUID"/> </xsl:attribute> <xsl:element name="Zbior"> <xsl:attribute name="Nazwa"> <xsl:value-of select="concat(format-number($Day,'00'),'-',format-number($Month,'00'),'-',$Year,'\1')"/> </xsl:attribute> <xsl:attribute name="DataUtworzenia"> <xsl:value-of select="concat($Year,'-',format-number($Month,'00'),'-',format-number($Day,'00'),'T',format-number($Hour,'00'),':',format-number($Minute,'00'),':',format-number($Second,'00'))"/> </xsl:attribute> <xsl:attribute name="Opis">Jakis dowolny opis</xsl:attribute> <xsl:attribute name="IloscPrzesylek"> <xsl:value-of select="count(s:Package)"/> </xsl:attribute> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:apply-templates select="s:Package"/> </xsl:element> </xsl:element> </xsl:template> <xsl:template match="s:Package"> <xsl:element name="Przesylka"> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Nazwa</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Company!=''"> <xsl:value-of select="s:DeliveryAddress/s:Company"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="s:DeliveryAddress/s:Company!='' and s:DeliveryAddress/s:Name!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">NazwaII</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Ulica</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Street"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Dom</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:HouseNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Lokal</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:FlatNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Miejscowosc</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:City"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kod</xsl:attribute> <xsl:value-of select="translate(s:DeliveryAddress/s:ZipCode,'- ','')"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kraj</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Country=''">Polska</xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Country"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="$FormaPowiadomieniaAdresata!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">FormaPowiadomieniaAdresata</xsl:attribute> <xsl:value-of select="$FormaPowiadomieniaAdresata"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KontaktPowiadomieniaAdresata</xsl:attribute> <xsl:choose> <xsl:when test="$FormaPowiadomieniaAdresata='M'"> <xsl:variable name="phone" select="translate(s:DeliveryAddress/s:PhoneNumber,'- ()/','')"/> <xsl:variable name="phone2" select="format-number(substring($phone,string-length($phone)-8,9),'000000000')"/> <xsl:value-of select="$phone2"/> </xsl:when> <xsl:when test="$FormaPowiadomieniaAdresata='E'"> <xsl:value-of select="s:DeliveryAddress/s:Email"/> </xsl:when> </xsl:choose> </xsl:element> </xsl:if> <!--Atrybuty specyficzne dla przesyłki 834--> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Symbol</xsl:attribute>834</xsl:element> <xsl:if test="$NrUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Umowa</xsl:attribute> <xsl:value-of select="$NrUmowy"/> </xsl:element> </xsl:if> <xsl:if test="$KartaUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KartaUmowy</xsl:attribute> <xsl:value-of select="$KartaUmowy"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Ilosc</xsl:attribute>1</xsl:element> <xsl:if test="s:Weight"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Masa</xsl:attribute> <xsl:value-of select="round(number(s:Weight)*1000)"/> </xsl:element> </xsl:if> <xsl:if test="s:SendingNumber!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">NrNadania</xsl:attribute> <xsl:value-of select="translate(s:SendingNumber,'- ','')"/> </xsl:element> </xsl:if> <xsl:if test="$RodzajPrzesylki!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Serwis</xsl:attribute> <xsl:value-of select="$RodzajPrzesylki"/> </xsl:element> </xsl:if> <xsl:if test="$Termin!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Termin</xsl:attribute> <xsl:value-of select="$Termin"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">CzyOplacaOdbiorca</xsl:attribute>N</xsl:element> <xsl:if test="s:DeliveryMethod/s:IsPayOnDelivery=1"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uslugi</xsl:attribute>P</xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">SposobPobrania</xsl:attribute> <xsl:value-of select="$SposobPobrania"/> </xsl:element> <xsl:if test="s:Charge"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KwotaPobrania</xsl:attribute> <xsl:value-of select="round(number(s:Charge)*100)"/> </xsl:element> </xsl:if> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Wersja</xsl:attribute>1</xsl:element> <xsl:variable name="description"> <xsl:call-template name="Opis"/> </xsl:variable> <xsl:if test="$description!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uwagi</xsl:attribute> <xsl:value-of select="$description"/> </xsl:element> </xsl:if> </xsl:element> </xsl:template> </xsl:stylesheet> Zrobiłem wg tego co jest powyżej wszystko ładnie się wygenerowało, ale w EN po imporcie wyskakuje mi błąd: Produkt ("834") nie znajduje się na umowie zawartej z Poczta Polską S.A. (EN:40102) Pomoże ktoś? Cytuj Link to postu
MARCIN e-kupowanie.pl 1 013 Napisano 26 Stycznia 2015 Udostępnij Napisano 26 Stycznia 2015 w Eksport do EN (BETA) Spróbuj taki: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.sello.pl/export"> <!--POCZTEX--> <!--Oznaczenie umowy na podstawie, której nadawane są przesyłki pocztowe (idUmowyMRUMC).--> <xsl:variable name="NrUmowy"></xsl:variable> <!--Oznaczenie Karty na podstawie, której nadawane są przesyłki pocztowe (idKartyMRUMR).--> <xsl:variable name="KartaUmowy"></xsl:variable> <!--Rodzaj serwisu przesyłki Pocztex-N: E – Ekspres K – Kurier--> <xsl:variable name="RodzajPrzesylki">E</xsl:variable> <!--Termin-serwis dla przesyłki: A – Miejski do 3h - do 5 km B – Miejski do 3h - do 10 km C – Miejski do 3h - do 15 km D – Miejski do 3h - powyżej 15 km E – Miejski do 4h - do 10 km F – Miejski do 4h - do 15 km G – Miejski do 4h - do 20 km H – Miejski do 4h - do 30 km J – Miejski do 4h - do 40 km M – Krajowy R – Bezpośredni do 30 kg S – Bezpośredni powyżej 30 do 100 kg X – Ekspres 24--> <xsl:variable name="Termin">X</xsl:variable> <!--Forma przekazania kwoty pobrania: P – Na wskazany adres S – Na rachunek bankowy--> <xsl:variable name="SposobPobrania">S</xsl:variable> <!--Sposób powiadomienia adresata przesyłki. Jeśli pole jest puste, to powiadomienie nie jest wysyłane. M – SMS E – E-mail--> <xsl:variable name="FormaPowiadomieniaAdresata">M</xsl:variable> <!--Opis dla danej paczki. Pole z dowolną zawartością nie przekraczającą długości 40 znaków--> <xsl:template name="Opis"> <xsl:value-of select="substring(s:Customer/s:Nick,0,15)"/> </xsl:template> <xsl:param name="Year"/> <xsl:param name="Month"/> <xsl:param name="Day"/> <xsl:param name="Hour"/> <xsl:param name="Minute"/> <xsl:param name="Second"/> <xsl:template match="s:ExportData"> <xsl:element name="Nadawca"> <xsl:attribute name="Struktura">1.6</xsl:attribute> <xsl:attribute name="Nazwa"> <xsl:value-of select="s:Company/s:Address/s:Company"/> </xsl:attribute> <xsl:attribute name="NazwaSkrocona"> <xsl:variable name="companyName" select="s:Company/s:Address/s:Company"/> <xsl:value-of select="substring($companyName,0,10)"/> </xsl:attribute> <xsl:attribute name="Ulica"> <xsl:value-of select="s:Company/s:Address/s:Street"/> </xsl:attribute> <xsl:attribute name="Dom"> <xsl:value-of select="s:Company/s:Address/s:HouseNumber"/> </xsl:attribute> <xsl:attribute name="Lokal"> <xsl:value-of select="s:Company/s:Address/s:FlatNumber"/> </xsl:attribute> <xsl:attribute name="Miejscowosc"> <xsl:value-of select="s:Company/s:Address/s:City"/> </xsl:attribute> <xsl:attribute name="Kod"> <xsl:value-of select="translate(s:Company/s:Address/s:ZipCode,'- ','')"/> </xsl:attribute> <xsl:attribute name="NIP"> <xsl:value-of select="translate(s:Company/s:Address/s:NIP,'- ','')"/> </xsl:attribute> <xsl:attribute name="Zrodlo">NADAWCA</xsl:attribute> <xsl:attribute name="Guid"> <xsl:value-of select="s:Company/s:GUID"/> </xsl:attribute> <xsl:element name="Zbior"> <xsl:attribute name="Nazwa"> <xsl:value-of select="concat(format-number($Day,'00'),'-',format-number($Month,'00'),'-',$Year,'\1')"/> </xsl:attribute> <xsl:attribute name="DataUtworzenia"> <xsl:value-of select="concat($Year,'-',format-number($Month,'00'),'-',format-number($Day,'00'),'T',format-number($Hour,'00'),':',format-number($Minute,'00'),':',format-number($Second,'00'))"/> </xsl:attribute> <xsl:attribute name="Opis">Jakis dowolny opis</xsl:attribute> <xsl:attribute name="IloscPrzesylek"> <xsl:value-of select="count(s:Package)"/> </xsl:attribute> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:apply-templates select="s:Package"/> </xsl:element> </xsl:element> </xsl:template> <xsl:template match="s:Package"> <xsl:element name="Przesylka"> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Nazwa</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Company!=''"> <xsl:value-of select="s:DeliveryAddress/s:Company"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="s:DeliveryAddress/s:Company!='' and s:DeliveryAddress/s:Name!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">NazwaII</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Ulica</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Street"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Dom</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:HouseNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Lokal</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:FlatNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Miejscowosc</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:City"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kod</xsl:attribute> <xsl:value-of select="translate(s:DeliveryAddress/s:ZipCode,'- ','')"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kraj</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Country=''">Polska</xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Country"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="$FormaPowiadomieniaAdresata!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">FormaPowiadomieniaAdresata</xsl:attribute> <xsl:value-of select="$FormaPowiadomieniaAdresata"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KontaktPowiadomieniaAdresata</xsl:attribute> <xsl:choose> <xsl:when test="$FormaPowiadomieniaAdresata='M'"> <xsl:variable name="phone" select="translate(s:DeliveryAddress/s:PhoneNumber,'- ()/','')"/> <xsl:variable name="phone2" select="format-number(substring($phone,string-length($phone)-8,9),'000000000')"/> <xsl:value-of select="$phone2"/> </xsl:when> <xsl:when test="$FormaPowiadomieniaAdresata='E'"> <xsl:value-of select="s:DeliveryAddress/s:Email"/> </xsl:when> </xsl:choose> </xsl:element> </xsl:if> <!--Atrybuty specyficzne dla przesyłki 834--> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Symbol</xsl:attribute>834</xsl:element> <xsl:if test="$NrUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Umowa</xsl:attribute> <xsl:value-of select="$NrUmowy"/> </xsl:element> </xsl:if> <xsl:if test="$KartaUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KartaUmowy</xsl:attribute> <xsl:value-of select="$KartaUmowy"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Ilosc</xsl:attribute>1</xsl:element> <xsl:if test="s:Weight"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Masa</xsl:attribute> <xsl:value-of select="round(number(s:Weight)*1000)"/> </xsl:element> </xsl:if> <xsl:if test="s:SendingNumber!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">NrNadania</xsl:attribute> <xsl:value-of select="translate(s:SendingNumber,'- ','')"/> </xsl:element> </xsl:if> <xsl:if test="$RodzajPrzesylki!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Serwis</xsl:attribute> <xsl:value-of select="$RodzajPrzesylki"/> </xsl:element> </xsl:if> <xsl:if test="$Termin!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Termin</xsl:attribute> <xsl:value-of select="$Termin"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">CzyOplacaOdbiorca</xsl:attribute>N</xsl:element> <xsl:if test="s:DeliveryMethod/s:IsPayOnDelivery=1"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uslugi</xsl:attribute>P</xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">SposobPobrania</xsl:attribute> <xsl:value-of select="$SposobPobrania"/> </xsl:element> <xsl:if test="s:Charge"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KwotaPobrania</xsl:attribute> <xsl:value-of select="round(number(s:Charge)*100)"/> </xsl:element> </xsl:if> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Wersja</xsl:attribute>1</xsl:element> <xsl:variable name="description"> <xsl:call-template name="Opis"/> </xsl:variable> <xsl:if test="$description!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uwagi</xsl:attribute> <xsl:value-of select="$description"/> </xsl:element> </xsl:if> </xsl:element> </xsl:template> </xsl:stylesheet> Zrobiłem wg tego co jest powyżej wszystko ładnie się wygenerowało, ale w EN po imporcie wyskakuje mi błąd: Produkt ("834") nie znajduje się na umowie zawartej z Poczta Polską S.A. (EN:40102) Pomoże ktoś? A masz w umowie Pocztex Expres24 (czyli kurier Poczty)? Cytuj Link to postu
Michał Olszewski 1 Napisano 24 Marca 2015 Udostępnij Napisano 24 Marca 2015 w Eksport do EN (BETA) U mnie pomogło pozostawienie tego pola pustego, trzeba zapisać tę linię, jak poniżej: <xsl:variable name="Miejscowa"></xsl:variable> u mnie też działa. Proszę o wskazówkę jak zrobić by generować priorytet listu poleconego. W formatce 845 nie mogę takowego miejsca znaleźć i dostępna transformatka tutaj na forum generuje ekonomiczny ok już sobie poradziłem. W formatce pod koniec zmieniamy typ doręczenia Cytuj Link to postu
Michał Olszewski 1 Napisano 26 Marca 2015 Udostępnij Napisano 26 Marca 2015 w Eksport do EN (BETA) w transformatce jest wpis <!--Opis dla danej paczki. Pole z dowolną zawartością nie przekraczającą długości 40 znaków--> <xsl:template name="Opis">Paczka nr <xsl:value-of select="s:Symbol"/> wzk5</xsl:template> czy zamiast "s:Symbol" można wstawić np numer na liście z sello jeśli tak to co mam wpisać?? Cytuj Link to postu
Milena Czerniak 0 Napisano 13 Kwietnia 2015 Udostępnij Napisano 13 Kwietnia 2015 w Eksport do EN (BETA) Witam, Od niedawna zaczęłam nadawać palety za pośrednictwem Poczty Polskiej. Czy posiada ktoś transformatę dla palet? Póki co generuje mi się błąd "Produkt ("852") nie znajduje się na umowie zawartej z Poczta Polską S.A. (EN:40102)" Z góry dziękuję za pomoc. Pozdrawiam. Cytuj Link to postu
Paweł Rozwandowicz 0 Napisano 22 Maja 2015 Udostępnij Napisano 22 Maja 2015 w Eksport do EN (BETA) Witam, 1. jaki atrybut w transformacie paczki biznesowej odpowiada za odbiór w punkcie? 2. dlaczego w paczce biznesowej nie przenosi opisu ( u mnie jest to nick allegro) do przesyłki? Jeśli w wygenerowanym pliku XML zmienię "opis" na "Uwagi" wtedy importuje. Próbowałem zmienić w transformacie "opis" na "uwagi" ale wtedy wywala błąd eksportu. 3. dlaczego nie można eksportować na dysk sieciowy? dzięki za pomoc. Cytuj Link to postu
bigthomas 0 Napisano 27 Maja 2015 Udostępnij Napisano 27 Maja 2015 w Eksport do EN (BETA) Czy ktoś wie jak dodać opcję ubezpieczenia do przesyłek POCZTEX ? Wiadomo że pierwsza opcja jest darmowa ta za 5000 zł Cytuj Link to postu
Ks. Robak 314 Napisano 30 Maja 2015 Udostępnij Napisano 30 Maja 2015 w Eksport do EN (BETA) Czy ktoś wie jak dodać opcję ubezpieczenia do przesyłek POCZTEX ? Wiadomo że pierwsza opcja jest darmowa ta za 5000 zł W tym zakresie, jeżeli nikt nie ma czegoś takiego dorobionego, będziesz zmuszony pokombinować samodzielnie. Poczytaj instrukcję https://e-nadawca.poczta-polska.pl/download/iwd-o-przesy-ce-1.14.06-umowny-.pdf Generalnie ustawia się kwotę ubezpieczenia, a wariant EN wybiera sam. Zobacz jak to zrobiłem w Kurierze48 https://forum.sello.pl/index.php?topic=6309.msg43185#msg43185 Cytuj Link to postu
Ks. Robak 314 Napisano 30 Maja 2015 Udostępnij Napisano 30 Maja 2015 w Eksport do EN (BETA) Witam, 1. jaki atrybut w transformacie paczki biznesowej odpowiada za odbiór w punkcie? Z tego co kojarzę, to odbiór w punkcie był omawiany w tym wątku. Cofnij się i poszukaj. Osobiście nie korzystam z tej opcji, więc nie umiem pomóc 2. dlaczego w paczce biznesowej nie przenosi opisu ( u mnie jest to nick allegro) do przesyłki? Jeśli w wygenerowanym pliku XML zmienię "opis" na "Uwagi" wtedy importuje. Generalnie przenosi. Ale musi coś być pozmieniane w transformacie. W przypadku transformat każdy z nas robił tak naprawdę transformatę pod siebie sam. Oczywiście na podstawie tego co zamieścił Pozi i tego co zaproponowali inni w tym wątku. Niestety bez znajomości XSLT niewiele się zdziała, pokombinuj, a na pewno uda Ci się zrobić to czego oczekujesz. Próbowałem zmienić w transformacie "opis" na "uwagi" ale wtedy wywala błąd eksportu. 3. dlaczego nie można eksportować na dysk sieciowy? Da się, ale dysk sieciowy musi być zmapowany i nie może widnieć w eksploratorze z czerwonym iksem. Cytuj Link to postu
Szop1 0 Napisano 19 Czerwca 2015 Udostępnij Napisano 19 Czerwca 2015 w Eksport do EN (BETA) Witam forumowiczów! Chciałbym zmodyfikować transformatę dla Przesyłki Firmowej Poleconej oraz Przesyłki Biznesowej Kurier48 tak, żeby na etykietach był podany numer dokumentu (paragony lub FV). Czy ktoś z Was ma takie rozwiązanie? Bardzo proszę o pomoc! Pozdrawiam, M. Cytuj Link to postu
Ks. Robak 314 Napisano 25 Czerwca 2015 Udostępnij Napisano 25 Czerwca 2015 w Eksport do EN (BETA) Witam forumowiczów! Chciałbym zmodyfikować transformatę dla Przesyłki Firmowej Poleconej oraz Przesyłki Biznesowej Kurier48 tak, żeby na etykietach był podany numer dokumentu (paragony lub FV). Czy ktoś z Was ma takie rozwiązanie? Bardzo proszę o pomoc! Pozdrawiam, M. Dobra wiadomość jest taka, że da się to zrobić. Niestety nie mam gotowego rozwiązania. Musiałbyś sam pokombinować. Numer dokumentu jest zwracany w polu DoneDocNumber znajdującym się w węźle Transaction Wyeksportuj sobie dowolną paczkę jako "XML (domyślny z klientami)" aby zobaczyć strukturę XML, z której należy czerpać dane. To może pomóc https://forum.sello.pl/index.php?topic=8045.msg51439#msg51439 Cytuj Link to postu
Szop1 0 Napisano 26 Czerwca 2015 Udostępnij Napisano 26 Czerwca 2015 w Eksport do EN (BETA) Dziękuję za odpowiedź! Spróbuję się za to zabrać i zobaczymy co wyjdzie Cytuj Link to postu
Szop1 0 Napisano 17 Lipca 2015 Udostępnij Napisano 17 Lipca 2015 w Eksport do EN (BETA) Nie mogę sobie poradzić z transformatą dla przesyłki nierejestrowanej. Przy imporcie do EN poprawnie dodaje mi przesyłki polecone(845) nierejestrowanych nie dodają się wcale. Otrzymuje taki komunikat: Plik został zaimportowany ale wystąpiły w nim błędy. Dodanie przesyłki nie powiodło się (EN:03002) Dodanie przesyłki nie powiodło się (EN:03002) Mogły ktoś zajrzeć na mój kod lub podać swój poprawnie działające do tego typu wysyłki? A gdzie początek transformaty? Generalnie istotne dane znajdują się w początku transformaty. Ale wygląda na to, że robisz zbiorczą transformatę na podstawie tej gawcia więc w tym kodzie co podałeś są białe spacje. Usuń je i daj znać czy działa. Chciałbym skorzystać z tej tranformaty: https://forum.sello.pl/index.php?topic=6309.msg43069#msg43069 ale nie wiem co dokleić na górę jako brakujący "początek transformaty". Czy ktoś mógłby pomóć? Cytuj Link to postu
MARCIN e-kupowanie.pl 1 013 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) W dokumentacji do EN przesyłka firmowa polecona (845) nie ma opcji 'priorytet'. https://e-nadawca.poczta-polska.pl/download/iwd-o-przesy-ce-1.14.06-umowny-.pdf Jaki byłby sposób na przekazywanie do EN firmowej poleconej priorytetowej? czy może ktoś się przyjrzeć - może ja po prostu nie widzę i ta opcja jednak jest w dokumentacji? (jeżeli w transformacie zmieni się w 845 E na P - to przesyłka importuje się jako F, ale bez możliwości zmiany ekonomicznej na priorytet). <xsl:choose> <xsl:when test="s:DeliveryMethod/s:Priority=1">P</xsl:when> <xsl:otherwise>P</xsl:otherwise> </xsl:choose> Czyli... zostaje poprawianie ręczne w EN? Cytuj Link to postu
gawcio . 21 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) Zmodyfikuj przesyłkę firmą w taki sposób: Na początku dodaj warunek: <xsl:if test="s:DeliveryMethod/s:DeliveryName='List polecony ekonomiczny' or s:DeliveryMethod/s:DeliveryName='List polecony priorytetowy'"> Następnie zmodyfikuj kategorie aby automatycznie zmieniało: <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Kategoria</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryMethod/s:Priority=1">P</xsl:when> <xsl:otherwise>E</xsl:otherwise> </xsl:choose> </xsl:element> Przesyłka niczym innym się nie różni, tylko ową kategorią. Cytuj Link to postu
MARCIN e-kupowanie.pl 1 013 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) Zmodyfikuj przesyłkę firmą w taki sposób: Na początku dodaj warunek: <xsl:if test="s:DeliveryMethod/s:DeliveryName='List polecony ekonomiczny' or s:DeliveryMethod/s:DeliveryName='List polecony priorytetowy'"> Następnie zmodyfikuj kategorie aby automatycznie zmieniało: <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Kategoria</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryMethod/s:Priority=1">P</xsl:when> <xsl:otherwise>E</xsl:otherwise> </xsl:choose> </xsl:element> Przesyłka niczym innym się nie różni, tylko ową kategorią. Niestety, chyba nie o to chodzi. Może dlatego, że piszę o przesyłce poleconej firmowej a nie liście poleconym... Ta zmiana powoduje, że generuje się przesyłka firmowa bez określenia E czy P. Chyba życie wyprzedziło EN... Cytuj Link to postu
gawcio . 21 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) Niestety, chyba nie o to chodzi. Może dlatego, że piszę o przesyłce poleconej firmowej a nie liście poleconym... Ta zmiana powoduje, że generuje się przesyłka firmowa bez określenia E czy P. Chyba życie wyprzedziło EN... Ja również piszę o przesyłce firmowej, u mnie w Sello nazwana jest jako list co nie ma większego znaczenia. Możesz podesłać całą transformatę swojej przesyłki firmowej? Cytuj Link to postu
MARCIN e-kupowanie.pl 1 013 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) Cały kod, 845 przy końcu: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.sello.pl/export"> <xsl:variable name="NrUmowy"></xsl:variable> <xsl:variable name="KartaUmowy"></xsl:variable> <xsl:variable name="Gabaryt">XXL</xsl:variable> <xsl:variable name="Firmowa">T</xsl:variable> <xsl:variable name="Miejscowa">T</xsl:variable> <xsl:variable name="Ubezpieczona">N</xsl:variable> <xsl:variable name="Gabaryt2">A</xsl:variable> <xsl:variable name="FormaPowiadomieniaAdresata"></xsl:variable> <xsl:template name="TytulPrzelewu"> <xsl:variable name="trans" select="s:ParentTransaction/s:Name"/> <xsl:variable name="trans2" select="substring-before(substring-after(substring($trans,string-length($trans)-16),'('),')')"/> <xsl:variable name="nick" select="s:Customer/s:Nick"/> <xsl:choose> <xsl:when test="$trans2!=''"> <xsl:value-of select="substring(concat($nick,' ',$trans2),1,30)"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="substring(concat($nick,' ',$trans),1,30)"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="Opis"> <xsl:value-of select="substring(s:Customer/s:Nick,0,15)"/> </xsl:template> <xsl:template name="PniUP"> <xsl:choose> <xsl:when test="string-length(s:DeliveryAddress/s:NIP) = 6"> <xsl:value-of select="s:DeliveryAddress/s:NIP"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="''"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="Opis2"> <xsl:value-of select="substring(s:Customer/s:Nick,0,15)"/> </xsl:template> <xsl:param name="Year"/> <xsl:param name="Month"/> <xsl:param name="Day"/> <xsl:param name="Hour"/> <xsl:param name="Minute"/> <xsl:param name="Second"/> <xsl:template match="s:ExportData"> <xsl:element name="Nadawca"> <xsl:attribute name="Struktura">1.6</xsl:attribute> <xsl:attribute name="Nazwa"> <xsl:value-of select="s:Company/s:Address/s:Company"/> </xsl:attribute> <xsl:attribute name="NazwaSkrocona"> <xsl:variable name="companyName" select="s:Company/s:Address/s:Company"/> <xsl:value-of select="substring($companyName,0,10)"/> </xsl:attribute> <xsl:attribute name="Ulica"> <xsl:value-of select="s:Company/s:Address/s:Street"/> </xsl:attribute> <xsl:attribute name="Dom"> <xsl:value-of select="s:Company/s:Address/s:HouseNumber"/> </xsl:attribute> <xsl:attribute name="Lokal"> <xsl:value-of select="s:Company/s:Address/s:FlatNumber"/> </xsl:attribute> <xsl:attribute name="Miejscowosc"> <xsl:value-of select="s:Company/s:Address/s:City"/> </xsl:attribute> <xsl:attribute name="Kod"> <xsl:value-of select="translate(s:Company/s:Address/s:ZipCode,'- ','')"/> </xsl:attribute> <xsl:attribute name="NIP"> <xsl:value-of select="translate(s:Company/s:Address/s:NIP,'- ','')"/> </xsl:attribute> <xsl:attribute name="Zrodlo">NADAWCA</xsl:attribute> <xsl:attribute name="Guid"> <xsl:value-of select="s:Company/s:GUID"/> </xsl:attribute> <xsl:element name="Zbior"> <xsl:attribute name="Nazwa"> <xsl:value-of select="concat(format-number($Day,'00'),'-',format-number($Month,'00'),'-',$Year,'\1')"/> </xsl:attribute> <xsl:attribute name="DataUtworzenia"> <xsl:value-of select="concat($Year,'-',format-number($Month,'00'),'-',format-number($Day,'00'),'T',format-number($Hour,'00'),':',format-number($Minute,'00'),':',format-number($Second,'00'))"/> </xsl:attribute> <xsl:attribute name="Opis">Jakis dowolny opis</xsl:attribute> <xsl:attribute name="IloscPrzesylek"> <xsl:value-of select="count(s:Package)"/> </xsl:attribute> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:apply-templates select="s:Package"/> </xsl:element> </xsl:element> </xsl:template> <xsl:template match="s:Package"> <!--biznesowa 852--> <xsl:if test="s:DeliveryMethod/s:DeliveryName='Pocztex Kurier48' or s:DeliveryMethod/s:DeliveryName='Pocztex Kurier48 pobraniowy' or s:DeliveryMethod/s:DeliveryName='Pocztex Kurier48 - odbiór w punkcie' or s:DeliveryMethod/s:DeliveryName='Pocztex Kurier48 pobraniowy - odbiór w punkcie'"> <xsl:element name="Przesylka"> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Nazwa</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Company!=''"> <xsl:value-of select="s:DeliveryAddress/s:Company"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="s:DeliveryAddress/s:Company!='' and s:DeliveryAddress/s:Name!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">NazwaII</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Ulica</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Street"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Dom</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:HouseNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Lokal</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:FlatNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Miejscowosc</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:City"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kod</xsl:attribute> <xsl:value-of select="translate(s:DeliveryAddress/s:ZipCode,'- ','')"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kraj</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Country=''">Polska</xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Country"/> </xsl:otherwise> </xsl:choose> </xsl:element> <!--Atrybuty specyficzne dla przesyłki 852--> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Symbol</xsl:attribute>852</xsl:element> <xsl:if test="$NrUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Umowa</xsl:attribute> <xsl:value-of select="$NrUmowy"/> </xsl:element> </xsl:if> <xsl:if test="$KartaUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KartaUmowy</xsl:attribute> <xsl:value-of select="$KartaUmowy"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">SposobPobrania</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryMethod/s:IsPayOnDelivery=1">S</xsl:when> <xsl:otherwise>T</xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="s:Charge"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KwotaPobrania</xsl:attribute> <xsl:value-of select="round(number(s:Charge)*100)"/> </xsl:element> </xsl:if> <xsl:if test="s:Weight"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Masa</xsl:attribute> <xsl:value-of select="round(number(s:Weight)*1000)"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Strefa</xsl:attribute> <xsl:value-of select="$Gabaryt"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Ilosc</xsl:attribute>1</xsl:element> <xsl:if test="s:SendingNumber!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">NrNadania</xsl:attribute> <xsl:value-of select="translate(s:SendingNumber,'- ','')"/> </xsl:element> </xsl:if> <xsl:variable name="phone" select="translate(s:DeliveryAddress/s:PhoneNumber,'- ()/','')"/> <xsl:variable name="phone2" select="format-number(substring($phone,string-length($phone)-8,9),'000000000')"/> <xsl:choose> <xsl:when test="starts-with($phone2,'50') or starts-with($phone2,'51') or starts-with($phone2,'53') or starts-with($phone2,'57') or starts-with($phone2,'60') or starts-with($phone2,'66') or starts-with($phone2,'69') or starts-with($phone2,'72') or starts-with($phone2,'73') or starts-with($phone2,'78') or starts-with($phone2,'79') or starts-with($phone2,'88')"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KontaktAdresata</xsl:attribute> <xsl:value-of select="$phone2"/> </xsl:element> </xsl:when> <!--Jeśli klient poda numer komórkowy to wstawi się jego numer komórkowy--> <xsl:otherwise> <xsl:if test="string-length(s:DeliveryAddress/s:NIP) = 6"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KontaktAdresata</xsl:attribute> <xsl:value-of select="123456789"/> <!--Powyżej zamiast 123456789 wpisujemy swój numer komórki, jeśli klient poda numer stacjonarny i będzie to odbiór w punkcie to powiadomienie przyjdzie na nasz numer komórki, bo jakąś komórkę trzeba wtedy podać--> <!--Jeśli klient poda numer stacjonarny i będzie to zwykła biznesówka to wstawi się puste pole, a telefon klienta można wstawić w pole opisu przesyłki --> </xsl:element> </xsl:if> </xsl:otherwise> </xsl:choose> <xsl:variable name="title"> <xsl:call-template name="TytulPrzelewu"/> </xsl:variable> <xsl:if test="$title!='' and s:DeliveryMethod/s:IsPayOnDelivery=1"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">PrzelewTytul</xsl:attribute> <xsl:value-of select="$title"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Wersja</xsl:attribute>1</xsl:element> <xsl:variable name="description"> <xsl:call-template name="Opis"/> </xsl:variable> <xsl:if test="$description!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uwagi</xsl:attribute> <xsl:value-of select="$description"/> </xsl:element> </xsl:if> <xsl:variable name="PniUP"> <xsl:call-template name="PniUP"/> </xsl:variable> <xsl:if test="$PniUP!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">PniUP</xsl:attribute> <xsl:value-of select="$PniUP"/> </xsl:element> </xsl:if> </xsl:element> </xsl:if> <!--firmowa 845 --> <xsl:if test="s:DeliveryMethod/s:DeliveryName='Przesyłka Firmowa Polecona' or s:DeliveryMethod/s:DeliveryName='Przesyłka Firmowa Polecona Priorytetowa'"> <xsl:element name="Przesylka"> <xsl:attribute name="Guid"> <xsl:value-of select="s:GUID"/> </xsl:attribute> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Nazwa</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Company!=''"> <xsl:value-of select="s:DeliveryAddress/s:Company"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="s:DeliveryAddress/s:Company!='' and s:DeliveryAddress/s:Name!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">NazwaII</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Name"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Ulica</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:Street"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Dom</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:HouseNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Lokal</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:FlatNumber"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Miejscowosc</xsl:attribute> <xsl:value-of select="s:DeliveryAddress/s:City"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kod</xsl:attribute> <xsl:value-of select="translate(s:DeliveryAddress/s:ZipCode,'- ','')"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ">Adresat</xsl:attribute> <xsl:attribute name="Nazwa">Kraj</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryAddress/s:Country=''">Polska</xsl:when> <xsl:otherwise> <xsl:value-of select="s:DeliveryAddress/s:Country"/> </xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="$FormaPowiadomieniaAdresata!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">FormaPowiadomieniaAdresata</xsl:attribute> <xsl:value-of select="$FormaPowiadomieniaAdresata"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KontaktPowiadomieniaAdresata</xsl:attribute> <xsl:choose> <xsl:when test="$FormaPowiadomieniaAdresata='M'"> <xsl:variable name="phone" select="translate(s:DeliveryAddress/s:PhoneNumber,'- ()/','')"/> <xsl:variable name="phone2" select="format-number(substring($phone,string-length($phone)-8,9),'000000000')"/> <xsl:value-of select="$phone2"/> </xsl:when> <xsl:when test="$FormaPowiadomieniaAdresata='E'"> <xsl:value-of select="s:DeliveryAddress/s:Email"/> </xsl:when> </xsl:choose> </xsl:element> </xsl:if> <!--Atrybuty specyficzne dla przesyłki 845--> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Symbol</xsl:attribute>845</xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Firmowa</xsl:attribute> <xsl:value-of select="$Firmowa"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Miejscowa</xsl:attribute> <xsl:value-of select="$Miejscowa"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Ubezpieczona</xsl:attribute> <xsl:value-of select="$Ubezpieczona"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Kategoria</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryMethod/s:Priority=1">P</xsl:when> <xsl:otherwise>E</xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="$NrUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Umowa</xsl:attribute> <xsl:value-of select="$NrUmowy"/> </xsl:element> </xsl:if> <xsl:if test="$KartaUmowy!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">KartaUmowy</xsl:attribute> <xsl:value-of select="$KartaUmowy"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">PosteRestante</xsl:attribute> <xsl:choose> <xsl:when test="s:DeliveryMethod/s:PosteRestante=1">T</xsl:when> <xsl:otherwise>N</xsl:otherwise> </xsl:choose> </xsl:element> <xsl:if test="s:Weight"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Masa</xsl:attribute> <xsl:value-of select="round(number(s:Weight)*1000)"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Ilosc</xsl:attribute>1</xsl:element> <xsl:if test="s:SendingNumber!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">NrNadania</xsl:attribute> <xsl:value-of select="translate(s:SendingNumber,'- ','')"/> </xsl:element> </xsl:if> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">DlaOciemn</xsl:attribute>N</xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">EgzBibl</xsl:attribute>N</xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uslugi</xsl:attribute>R</xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Strefa</xsl:attribute> <xsl:value-of select="$Gabaryt2"/> </xsl:element> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Wersja</xsl:attribute>1</xsl:element> <xsl:variable name="description"> <xsl:call-template name="Opis2"/> </xsl:variable> <xsl:if test="$description!=''"> <xsl:element name="Atrybut"> <xsl:attribute name="Typ"/> <xsl:attribute name="Nazwa">Uwagi</xsl:attribute> <xsl:value-of select="$description"/> </xsl:element> </xsl:if> </xsl:element> </xsl:if> </xsl:template> </xsl:stylesheet> Cytuj Link to postu
MARCIN e-kupowanie.pl 1 013 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) PS Już wiem gdzie jest problem: w transformacie mam ustawiona 'miejscowa' a w umowie na pr mam tylko zamiejscowa - więc EN nie rozumie, że może być miejscowa / firmowa / priorytetowa. Przy zamiejscowych jest ok. Chyba muszę zrobić osobny plik do eksportu - dla firmowej, eko/prio - zamiejscowa i będzie działać. A dla firmowe eko miejscowa/zamiejscowa zostawić jak było. Cytuj Link to postu
PanBanBan Marcin 185 Napisano 20 Lipca 2015 Udostępnij Napisano 20 Lipca 2015 w Eksport do EN (BETA) PS Już wiem gdzie jest problem: w transformacie mam ustawiona 'miejscowa' a w umowie na pr mam tylko zamiejscowa - więc EN nie rozumie, że może być miejscowa / firmowa / priorytetowa. Przy zamiejscowych jest ok. Chyba muszę zrobić osobny plik do eksportu - dla firmowej, eko/prio - zamiejscowa i będzie działać. A dla firmowe eko miejscowa/zamiejscowa zostawić jak było. To firmowa priorytetowa może być tylko zamiejscowa? Jak tak to ręczne rozróżnianie na miejscowa-zamiejscowa będzie kłopotliwe. Bodajże gawcio udostępniał swoją transformatę do rozróżniania miejscowych od zamiejscowych... Cytuj Link to postu
Polecane posty
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.
Uwaga: Twój wpis zanim będzie widoczny, będzie wymagał zatwierdzenia moderatora.