From 9a7d5ba64415a18d763bc3dc9cec20bef5bc6a48 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 31 Jul 2024 13:44:16 +1000 Subject: [PATCH] padding out e-invoicing - country specifics --- app/Services/EDocument/Standards/Peppol.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Services/EDocument/Standards/Peppol.php b/app/Services/EDocument/Standards/Peppol.php index 638c48c27493..61b7019c9494 100644 --- a/app/Services/EDocument/Standards/Peppol.php +++ b/app/Services/EDocument/Standards/Peppol.php @@ -714,6 +714,11 @@ $tax_amount->amount = $this->invoice->uses_inclusive_taxes ? $this->calcInclusiv return $this; } + public function getSetting(object $e_invoice, string $property_path): mixed + { + return PropertyResolver::resolve($e_invoice, $property_path); + } + public function countryLevelMutators():self { @@ -723,16 +728,10 @@ $tax_amount->amount = $this->invoice->uses_inclusive_taxes ? $this->calcInclusiv return $this; } - private function setDefaultAccountingSupplierParty(): self - { - $party = new PeppolParty - } - private function DE(): self { // accountingsupplierparty.party.contact MUST be set - Name / Telephone / Electronic Mail - if(!isset($this->p_invoice->AccountingSupplierParty->Party->Contact)) - $this->setDefaultAccountingSupplierParty(); + // this is forced by default. // ONE payment means MUST be set