Skip to content

Commit 489ab9e

Browse files
Toplu işlemler için summary methodu eklendi.
1 parent 017c2db commit 489ab9e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Invoice.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,23 @@ public function mapWithEnglishKeys($data)
231231
$this->zReportNumber = isset($data["zReportNumber"]) ? $data["zReportNumber"] : "";
232232
$this->okcSerialNumber = isset($data["okcSerialNumber"]) ? $data["okcSerialNumber"] : "";
233233
}
234+
235+
/**
236+
* Get summary fields
237+
*
238+
* @return array
239+
*/
240+
public function getSummary()
241+
{
242+
return [
243+
"belgeNumarasi" => $this->documentNumber,
244+
"aliciVknTckn" => $this->taxOrIdentityNumber,
245+
"aliciUnvanAdSoyad" => $this->invoiceAcceptorTitle,
246+
"belgeTarihi" => $this->date,
247+
"belgeTuru" => "FATURA",
248+
"ettn" => $this->uuid
249+
];
250+
}
234251

235252

236253
/**

0 commit comments

Comments
 (0)