mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 17:54:30 -04:00
padding out e-invoicing - country specifics
This commit is contained in:
parent
6fa23d8538
commit
9a7d5ba644
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user