Skip to content

Commit

Permalink
Fixed error that column "amount" is ambiguous in OpenVolumeDistributi…
Browse files Browse the repository at this point in the history
…ons query
  • Loading branch information
MasterZydra committed Apr 19, 2024
1 parent 38b8250 commit 6df0486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/OpenVolumeDistributionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function execute(): void
FROM deliveryNotes
LEFT JOIN volumeDistributions ON deliveryNotes.id = volumeDistributions.deliveryNoteId
GROUP BY deliveryNotes.id
HAVING calcSum IS NULL OR calcSum != amount;';
HAVING calcSum IS NULL OR calcSum != deliveryNotes.amount;';

$dataSet = Database::unprepared($sql);

Expand Down

0 comments on commit 6df0486

Please sign in to comment.