This commit is contained in:
David Bomba 2024-08-01 12:19:31 +10:00
parent f4075d88ee
commit 528eef3cd8

View File

@ -188,16 +188,6 @@ class Peppol extends AbstractService
$this->countryLevelMutators(); $this->countryLevelMutators();
// $this->p_invoice->PaymentMeans = $this->getPaymentMeans();
// $payeeFinancialAccount = (new PayeeFinancialAccount())
// ->setBankId($company->settings->custom_value1)
// ->setBankName($company->settings->custom_value2);
// $paymentMeans = (new PaymentMeans())
// ->setPaymentMeansCode($invoice->custom_value1)
// ->setPayeeFinancialAccount($payeeFinancialAccount);
// $ubl_invoice->setPaymentMeans($paymentMeans);
return $this; return $this;
} }
@ -728,6 +718,26 @@ $tax_amount->amount = $this->invoice->uses_inclusive_taxes ? $this->calcInclusiv
return $this; return $this;
} }
private function setPaymentMeans(): self
{
$paymentMeans = new PaymentMeans();
// = $this->getPaymentMeans();
// $payeeFinancialAccount = (new PayeeFinancialAccount())
// ->setBankId($company->settings->custom_value1)
// ->setBankName($company->settings->custom_value2);
// $paymentMeans = (new PaymentMeans())
// ->setPaymentMeansCode($invoice->custom_value1)
// ->setPayeeFinancialAccount($payeeFinancialAccount);
// $ubl_invoice->setPaymentMeans($paymentMeans);
$this->p_invoice->PaymentMeans = $paymentMeans;
return $this;
}
private function DE(): self private function DE(): self
{ {
// accountingsupplierparty.party.contact MUST be set - Name / Telephone / Electronic Mail // accountingsupplierparty.party.contact MUST be set - Name / Telephone / Electronic Mail