Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

add missing properties to invoice header and invoice body #32

Merged
merged 2 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 51 additions & 3 deletions src/Dto/InvoiceBodyDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class InvoiceBodyDto extends PrimitiveDto
/**
* vat of payment
*/
private ?string $vop;
private ?int $vop;

/**
* buyer register number
Expand All @@ -139,6 +139,22 @@ class InvoiceBodyDto extends PrimitiveDto
*/
private int $tsstam;

/**
* net weight
*/
private ?float $nw;

/**
* Riyal value of goods
*/
private ?int $ssrv;

/**
* Currency value of goods
*/
private ?float $sscv;


public function getSstid(): ?string
{
return $this->sstid;
Expand Down Expand Up @@ -403,12 +419,12 @@ public function setCop(?int $cop): self
return $this;
}

public function getVop(): ?string
public function getVop(): ?int
{
return $this->vop;
}

public function setVop(?string $vop): self
public function setVop(?int $vop): self
{
$this->vop = $vop;
return $this;
Expand All @@ -435,4 +451,36 @@ public function setTsstam(int $tsstam): self
$this->tsstam = $tsstam;
return $this;
}

public function getNw(): ?float
{
return $this->nw;
}

public function setNw(?float $nw): void
{
$this->nw = $nw;
}

public function getSsrv(): ?int
{
return $this->ssrv;
}

public function setSsrv(?int $ssrv): void
{
$this->ssrv = $ssrv;
}

public function getSscv(): ?float
{
return $this->sscv;
}

public function setSscv(?float $sscv): void
{
$this->sscv = $sscv;
}


}
78 changes: 75 additions & 3 deletions src/Dto/InvoiceHeaderDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,79 @@ class InvoiceHeaderDto extends PrimitiveDto
/**
* total VAT of payment
*/
private ?string $tvop;
private ?int $tvop;

/**
* Cottage number of customs declaration
*/
private ?string $cdcn;

/**
* Total net weight
*/
private ?float $tonw;

/**
* Total Riyal value of goods
*/
private ?int $torv;
/**
* Total Currency value of goods
*/

private ?int $tocv;

public function getTorv(): ?int
{
return $this->torv;
}

public function setTorv(?int $torv): void
{
$this->torv = $torv;
}

public function getTocv(): ?int
{
return $this->tocv;
}

public function setTocv(?int $tocv): void
{
$this->tocv = $tocv;
}

public function getTonw(): ?float
{
return $this->tonw;
}

public function setTonw(?float $tonw): void
{
$this->tonw = $tonw;
}

public function getCdcn(): ?string
{
return $this->cdcn;
}

public function setCdcn(?string $cdcn): void
{
$this->cdcn = $cdcn;
}

public function getCdcd(): ?string
{
return $this->cdcd;
}

public function setCdcd(?string $cdcd): void
{
$this->cdcd = $cdcd;
}

private ?string $cdcd;

/**
* tax17
Expand Down Expand Up @@ -494,12 +566,12 @@ public function setInsp(?int $insp): self
return $this;
}

public function getTvop(): ?string
public function getTvop(): ?int
{
return $this->tvop;
}

public function setTvop(?string $tvop): self
public function setTvop(?int $tvop): self
{
$this->tvop = $tvop;
return $this;
Expand Down