Skip to content

Commit

Permalink
Changed loading logic for Business P. address name and handover addre…
Browse files Browse the repository at this point in the history
…ss name. refs:

#5896

(cherry picked from commit c1b1e62)
  • Loading branch information
pvpurcarcosmin authored and metas-ts committed Dec 18, 2019
1 parent e94cf5a commit 317eab0
Showing 1 changed file with 9 additions and 7 deletions.
@@ -1,4 +1,6 @@
CREATE OR REPLACE VIEW edi_desadvpack_sscc_label
drop view if exists edi_desadvpack_sscc_label;

CREATE VIEW edi_desadvpack_sscc_label
(no_of_labels, SSCC, order_reference, date_shipped, GTIN, product_description, amount, weight, best_before, lot_no,
bp_address_GLN, bp_address_name1, bp_address_name2, bp_address_street, bp_address_zip_code, bp_address_city,
ho_address_GLN, ho_address_name1, ho_address_name2, ho_address_street, ho_address_zip_code, ho_address_city,
Expand All @@ -16,15 +18,15 @@ SELECT
dl_pack.bestBeforeDate AS best_before,
dl_pack.lotnumber AS lot_no,
bp_address.GLN AS bp_address_gln,
bp_address.name AS bp_address_name1,
''::text AS bp_address_name2,
bp_address_location.address1 || bp_address_location.address2 AS bp_address_street,
bp_address_location.address1 AS bp_address_name1,
bp_address_location.address2 AS bp_address_name2,
concat(bp_address_location.address1,' ', bp_address_location.address2) AS bp_address_street,
bp_address_location.postal AS bp_address_zip_code,
bp_address_location.city AS bp_address_city,
ho_address.GLN AS ho_address_gln,
ho_address.name AS ho_address_name1,
''::text AS ho_address_name2,
ho_address_location.address1 || bp_address_location.address2 AS ho_address_street,
ho_address_location.address1 AS ho_address_name1,
ho_address_location.address2 AS ho_address_name2,
concat(ho_address_location.address1,' ', ho_address_location.address2) AS ho_address_street,
ho_address_location.postal AS ho_address_zip_code,
ho_address_location.city AS ho_address_city,
t_sel.ad_pinstance_id AS p_instance_id
Expand Down

0 comments on commit 317eab0

Please sign in to comment.