Bug 30055: Add missing include to format addresses

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Séverine Queune <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2022-02-09 16:30:23 +01:00 committed by Fridolin Somers
parent eeaac96e4e
commit 27fed377a4

View file

@ -0,0 +1,20 @@
<!-- js-patron-format-address.inc -->
<script>
(function() {
window.$format_address = function(data, options) {
let address = '';
address += (data.street_number ? data.street_number + ' ' : '' );
address += (data.address ? data.address + ' ' : '' );
address += (data.address2 ? data.address2 + ' ' : '' );
address += (data.city ? data.city + ' ' : '' );
address += (data.state ? data.state + ' ' : '' );
address += (data.postal_code ? data.postal_code + ' ' : '' );
address += (data.country ? data.country + ' ' : '' );
return address;
}
})();
</script>
<!-- / js-patron-format-address.inc -->