Skip to content

Add Product Image Display Support in Receiving and Sales Views #4292

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

sahand009
Copy link

This PR enhances the visual experience of OpenSourcePOS by adding product image display functionality across receiving and sales interfaces. Key changes include:

  • Add product image column in receiving and sales receipt views
  • Implement image display logic for items in cart and receipts
  • Add default "no image" placeholder for items without images
  • Update table layouts to accommodate image display
  • Maintain consistent image sizing and styling across views

Technical Details:

  • Added image column with fixed width (15%) in receiving and sales tables
  • Implemented fallback to 'no-img.png' for items without images
  • Standardized image display size (max 40px height/width)
  • Preserved existing table structure and responsive behavior

Testing:

  • Verified image display in receiving view
  • Confirmed image display in sales receipt
  • Tested fallback behavior for items without images
  • Validated responsive layout on different screen sizes

This enhancement improves product identification and verification during transactions while maintaining the system's performance and usability.

@jekkos jekkos requested review from objecttothis July 26, 2025 21:03
- Fixed black line alignment problem where total columns extended beyond borders
- Added dynamic colspan calculation to handle avatar column visibility
- Updated all colspan values from hardcoded '3' to dynamic ''
- Ensured proper alignment regardless of avatar column show/hide state
- Standardized border styling from '#000000' to 'black' for consistency
- Added Turnstile configuration options in Config.php and Login.php.
- Implemented database migration to add Turnstile keys.
@jekkos
Copy link
Member

jekkos commented Aug 1, 2025

Thanks for this PR! looks like a nice addition, I'll try to install it on dev so I can try it out.

@sahand009
Copy link
Author

Thanks for you I am trying to fix those issues

…ove jQuery UI CSS

- Fix thumbnail display by using getPicThumb endpoint in tabular helper
- Correct indentation in tabular_helper.php image variable assignment
- Add missing Exception import and fix method bracing in Items controller
- Remove jQuery UI CSS link from header as requested in review
- Ensure consistent fallback image paths using base_url()
- Update image display to use proper thumbnail generation

Addresses feedback from jekkos review comments
@jekkos
Copy link
Member

jekkos commented Aug 7, 2025

Hi it might be beter to do the PR from a separate branch. I see that unrelated updates were done in the meantime

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.

3 participants