zaviagodev / frappe

MIT License
0 stars 1 forks source link

/app/website-item - sync checkbox inside the doctype with /item/ doctype. #58

Closed chomchuen closed 9 months ago

chomchuen commented 9 months ago

Issue Title: Synchronization of Stock-Related Checkboxes Between App Interfaces

1. Issue Description

There's a requirement to synchronize the "Maintain Stock" and "Allow Negative Stock" checkboxes between /app/item/ and /app/website-item/ in the Inventory tab. The checkboxes in /app/website-item/ should reflect the state of the corresponding checkboxes in /app/item/ and should be read-only to prevent direct modification.

2. Steps to Reproduce

  1. Navigate to /app/item/ and locate the "Maintain Stock" and "Allow Negative Stock" checkboxes in the Inventory tab.
  2. Change the state of these checkboxes (tick/untick).
  3. Navigate to /app/website-item/ go to inventory tab and observe the state of the "Master Item: Maintained Stock" and "Master Item: Allow Negative Stock" checkboxes.
  4. Confirm if the states are synchronized with /app/item/.

3. Current Behavior

4. Expected Behavior

5. Action Items

chomchuen commented 9 months ago

have problem when unchecked 'Maintain Stock'.

before

Image

after

Image

chomchuen commented 9 months ago

both option are working fine and synced with website item✅

Image Image Image