{"sha":"3c20931da44ea14ac90574bc10726bfb680c800f","node_id":"C_kwDOLgQlp9oAKDNjMjA5MzFkYTQ0ZWExNGFjOTA1NzRiYzEwNzI2YmZiNjgwYzgwMGY","commit":{"author":{"name":"Sigurd Nes","email":"sigurdne@users.noreply.github.com","date":"2026-04-16T08:45:52Z"},"committer":{"name":"GitHub","email":"noreply@github.com","date":"2026-04-16T08:45:52Z"},"message":"Merge pull request #974 from PorticoEstate/Version-3_0-branch","tree":{"sha":"fc20d3a1e5f99c4a01c1f863bbddf6993877e3be","url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/git/trees/fc20d3a1e5f99c4a01c1f863bbddf6993877e3be"},"url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/git/commits/3c20931da44ea14ac90574bc10726bfb680c800f","comment_count":0,"verification":{"verified":true,"reason":"valid","signature":"-----BEGIN PGP SIGNATURE-----\n\nwsFcBAABCAAQBQJp4KHACRC1aQ7uu5UhlAAAveoQADtVMgvdZWtxul+vs1QkKxXz\n8m5MtrcQiQv5JyRmb73/jF8/B0c4Lh6DXMOjS9AGSNiNUH1qbuNxiRSa2bkLPCQb\nP8XAxcOgyvW9LrcUsYD7NcqzyGEuC/J6hCpErM5TJs6+ZvL+vpz2bl03NklvNXst\nuqQo9ue/idfpiCnAZnTCEBUq2mF2Y+CbswcH2E03AEuMIsxylXcsklm2bMwOxCl8\nGOXJnIPwwMIhMue9ZzrnCwPfXydYV0FSTSdOqZNbu3LLZ4KTko/mF5O6zstzCfTI\n4+mKQjdf93C+J4sGTldhXGSmqhE6h0nSXvaQHHe2SOeZh8KL79bMeQBx3f22JHD/\nNU/xsnSd2ozjpn4xfFizSQbhE0xTw2wVBONTyaE55sLkbHTBC6rUP6lTkvRbgrap\nrUPRhYdAwUfjsCP64QgQ8zdOgrDV+noogon8L3jZypClKnkZ1AXAwAE1EHRPcvaw\nzG6l8Rjdy4f6TdhqLEjOoU1RHib/0VbaDeJlHXmLSMF59NZmXjrHJl5iglzMnfed\nUXqp3ZGio5oWPX5epOiVOz7KTvZbEd4Dh+iIlSEbJJ9n3j0i7NrGREOYGZLXp6jv\nOgs2/FKpOwakuW0adv1OFZw6slkiPV4F/xH9/Fjllq3+BbIqSRD25elm6eOklcAW\n50Ndqy2i80ruDog6bdcV\n=CCsZ\n-----END PGP SIGNATURE-----\n","payload":"tree fc20d3a1e5f99c4a01c1f863bbddf6993877e3be\nparent cdd213b2c7fb18d09c632d3d4d2554c39b9b87c4\nparent 608848d6e1d263ea6e88814463a0b9f2cd003318\nauthor Sigurd Nes <sigurdne@users.noreply.github.com> 1776329152 +0200\ncommitter GitHub <noreply@github.com> 1776329152 +0200\n\nMerge pull request #974 from PorticoEstate/Version-3_0-branch","verified_at":"2026-04-16T08:45:53Z"}},"url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/commits/3c20931da44ea14ac90574bc10726bfb680c800f","html_url":"https://github.com/PorticoEstate/PorticoEstate-v2/commit/3c20931da44ea14ac90574bc10726bfb680c800f","comments_url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/commits/3c20931da44ea14ac90574bc10726bfb680c800f/comments","author":{"login":"sigurdne","id":12719970,"node_id":"MDQ6VXNlcjEyNzE5OTcw","avatar_url":"https://avatars.githubusercontent.com/u/12719970?v=4","gravatar_id":"","url":"https://api.github.com/users/sigurdne","html_url":"https://github.com/sigurdne","followers_url":"https://api.github.com/users/sigurdne/followers","following_url":"https://api.github.com/users/sigurdne/following{/other_user}","gists_url":"https://api.github.com/users/sigurdne/gists{/gist_id}","starred_url":"https://api.github.com/users/sigurdne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigurdne/subscriptions","organizations_url":"https://api.github.com/users/sigurdne/orgs","repos_url":"https://api.github.com/users/sigurdne/repos","events_url":"https://api.github.com/users/sigurdne/events{/privacy}","received_events_url":"https://api.github.com/users/sigurdne/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"web-flow","id":19864447,"node_id":"MDQ6VXNlcjE5ODY0NDQ3","avatar_url":"https://avatars.githubusercontent.com/u/19864447?v=4","gravatar_id":"","url":"https://api.github.com/users/web-flow","html_url":"https://github.com/web-flow","followers_url":"https://api.github.com/users/web-flow/followers","following_url":"https://api.github.com/users/web-flow/following{/other_user}","gists_url":"https://api.github.com/users/web-flow/gists{/gist_id}","starred_url":"https://api.github.com/users/web-flow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/web-flow/subscriptions","organizations_url":"https://api.github.com/users/web-flow/orgs","repos_url":"https://api.github.com/users/web-flow/repos","events_url":"https://api.github.com/users/web-flow/events{/privacy}","received_events_url":"https://api.github.com/users/web-flow/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"cdd213b2c7fb18d09c632d3d4d2554c39b9b87c4","url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/commits/cdd213b2c7fb18d09c632d3d4d2554c39b9b87c4","html_url":"https://github.com/PorticoEstate/PorticoEstate-v2/commit/cdd213b2c7fb18d09c632d3d4d2554c39b9b87c4"},{"sha":"608848d6e1d263ea6e88814463a0b9f2cd003318","url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/commits/608848d6e1d263ea6e88814463a0b9f2cd003318","html_url":"https://github.com/PorticoEstate/PorticoEstate-v2/commit/608848d6e1d263ea6e88814463a0b9f2cd003318"}],"stats":{"total":15,"additions":11,"deletions":4},"files":[{"sha":"33e90ced8d4d7e0ab4e658a05a7bec5d15fddf9e","filename":"src/modules/booking/inc/class.socompleted_reservation_export.inc.php","status":"modified","additions":11,"deletions":4,"changes":15,"blob_url":"https://github.com/PorticoEstate/PorticoEstate-v2/blob/3c20931da44ea14ac90574bc10726bfb680c800f/src%2Fmodules%2Fbooking%2Finc%2Fclass.socompleted_reservation_export.inc.php","raw_url":"https://github.com/PorticoEstate/PorticoEstate-v2/raw/3c20931da44ea14ac90574bc10726bfb680c800f/src%2Fmodules%2Fbooking%2Finc%2Fclass.socompleted_reservation_export.inc.php","contents_url":"https://api.github.com/repos/PorticoEstate/PorticoEstate-v2/contents/src%2Fmodules%2Fbooking%2Finc%2Fclass.socompleted_reservation_export.inc.php?ref=3c20931da44ea14ac90574bc10726bfb680c800f","patch":"@@ -2518,13 +2518,17 @@ public function format_agresso(array &$reservations, array $account_codes, $sequ\n \t\t\t\tif ($type == 'internal')\n \t\t\t\t{\n \t\t\t\t\t$header['tekst4'] = str_pad(substr($this->config_data['organization_value'], 0, 12), 12, ' ');\n+\t\t\t\t\t//referansenr/customer_number\n+\t\t\t\t\t$ext_ord_ref = !empty($customer_number) ? $customer_number : $contact_name;\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\t$header['tekst4'] = str_pad(substr($this->get_customer_identifier_value_for($reservation), 0, 12), 12, ' ');\n+\t\t\t\t\t//kontaktperson\n+\t\t\t\t\t$ext_ord_ref = !empty($contact_name) ? $contact_name : $customer_number;\n \t\t\t\t}\n-\t\t\t\t//referansenr/customer_number\n-\t\t\t\t$header['ext_ord_ref'] = str_pad(substr(iconv(\"utf-8\", \"ISO-8859-1//TRANSLIT\", $contact_name), 0, 15), 15, ' ');\n+\n+\t\t\t\t$header['ext_ord_ref'] = str_pad(substr(iconv(\"utf-8\", \"ISO-8859-1//TRANSLIT\", $ext_ord_ref), 0, 15), 15, ' ');\n \n \t\t\t\t/**\n \t\t\t\t * Skille mellom hoved-organisasjonen og betalende underliggende organisasjon\n@@ -3333,13 +3337,16 @@ public function format_agresso_55(array &$reservations, array $account_codes, $s\n \t\t\tif ($type == 'internal')\n \t\t\t{\n \t\t\t\t$header['tekst4'] = str_pad(substr($this->config_data['organization_value'], 0, 100), 100, ' ');\n+\t\t\t\t//referansenr/customer_number\n+\t\t\t\t$ext_ord_ref = !empty($customer_number) ? $customer_number : $contact_name;\t\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\t$header['tekst4'] = str_pad(substr($this->get_customer_identifier_value_for($reservation), 0, 100), 100, ' ');\n+\t\t\t\t//kontaktperson\n+\t\t\t\t$ext_ord_ref = !empty($contact_name) ? $contact_name : $customer_number;\n \t\t\t}\n-\t\t\t//referansenr/customer_number\n-\t\t\t$header['ext_ord_ref'] = str_pad(substr(iconv(\"utf-8\", \"ISO-8859-1//TRANSLIT\", $contact_name), 0, 100), 100, ' ');\n+\t\t\t$header['ext_ord_ref'] = str_pad(substr(iconv(\"utf-8\", \"ISO-8859-1//TRANSLIT\", $ext_ord_ref), 0, 100), 100, ' ');\n \n \t\t\t/**\n \t\t\t * Skille mellom hoved-organisasjonen og betalende underliggende organisasjon"}]}