LalanaChami / Pharmacy-Mangment-System

👨‍💻 :hospital: MEAN stack Pharmacy Management system.
MIT License
479 stars 217 forks source link

Total not displayed at the time of check out in PoS #204

Closed Amangnair closed 2 years ago

Amangnair commented 2 years ago

Screenshot (683)

After adding the required drugs into the bill, on clicking the check out button, it's not displaying the total amount including the (qty*price) value in the right side Check Out box; rather it displays NaN

please help w/ this problem

LalanaChami commented 2 years ago

Please debug and check weather onAddToCheckout function in BillItemComponent gets string values rather than number , if its the case parse the string values before calculating the string values.

Amangnair commented 2 years ago

Can u plse guide me in debugging or what changes should i make in below screenshot

Screenshot (685)

LalanaChami commented 2 years ago

Please check below link details about debugging https://developer.chrome.com/docs/devtools/javascript/

zakeerms commented 2 years ago

Getting NaN for many variables mentioned in the for loop

Like x,z etc please check

image