Skip to content

Transaction#8

Open
putricha wants to merge 5 commits intomainfrom
transaction
Open

Transaction#8
putricha wants to merge 5 commits intomainfrom
transaction

Conversation

@putricha
Copy link
Collaborator

No description provided.

@putricha
Copy link
Collaborator Author

sementara aku nge pr ini dulu, ini validation nya masih belum bener, sambil nunggu revisian dari dicha, mwehe

@putricha putricha requested a review from elianiva January 25, 2024 13:08
Comment on lines +47 to +49
foreach ($transaction->transactionDetail as $td) {
$totalPurchase += $td->getSubTotal();
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ini juga N+1, coba cari cara lain

Comment on lines +35 to +36
$items = $request->get('items');
$qty = $items[0]['qty'];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kenapa cuma ambil qty yg pertama?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants