Zmiany pomiędzy wersją 22 and wersją 23 dla UserGuide/AdvancedConfiguration/CreatingTemplates

Pokaż
Ignoruj:
Data i czas:
04/03/12 00:11:40 (12 years temu)
Autor:
JP (IP: 89.72.141.179)
Komentarz:

--

Legend:

Bez zmian
Dodane
Usunięte
Zmienione
  • UserGuide/AdvancedConfiguration/CreatingTemplates

    v22 v23  
    141141 
    142142{{{ 
    143 -- kwerenda pobiera listę produktów z dokumentu - można wykorzystać do szablonu PZ/WZ 
    144 SELECT 'Nazwa' as depnam,  'J.m.' AS unitnm, 'Ilość'::text AS quantm, 'Uwagi' AS commnt 
    145 UNION 
    146 select depnam,  
    147 replace(replace(replace(replace(replace(replace(replace(unitnm, 'PIECE', 'sztuka'), 'METER', 'metr'), 'METER2', 'mkw'), 'KILOGRAM', 'kilogram'), 'LITER', 'litr'), 'HOUR', 'godzina'), 'KM', 'kilometr') AS unitnm,  
    148 quantm::text, commnt 
    149 from fk_elements 
    150 where doc_id={CONTEXT} 
    151 ORDER BY quantm DESC 
    152143 
    153144-- kwerenda pobiera datę dokumentu który posłużył do wygenerowania aktualnego dokumentu