We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47f3041 commit c9dc296Copy full SHA for c9dc296
src/Infrastructure/Repository/ArrayDatasetRepository.php
@@ -76,8 +76,8 @@ public function countCustomerInvoices(string $customerId): int
76
$invoices = [];
77
78
foreach ($this->dataset as $row) {
79
- if ($row->customerId === $customerId && !in_array($row->invoiceDate, $invoices)) {
80
- $invoices[] = $row->invoiceDate;
+ if ($row->customerId === $customerId && !in_array($row->invoiceNo, $invoices)) {
+ $invoices[] = $row->invoiceNo;
81
}
82
83
0 commit comments