Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Decrease stock quantity from item sold when sales completed

Featured Replies

Good day,

I have a point of sale solution and i have also a stock module attached to the solution.

Basically the main function will process each item sold from the Point of sale screen whatever the quantity and will reduce the stock quantity on the stock layout after complete the transaction.

Also if ever i want to delete the complete sale i would like a script to re-update the stock quantity and delete the transaction.

I am unable to perform this task and it was much harder than I thought.

I have attached an example of my solution for your touch.

I would also request if it could make it simple as possible.

Thank you for your precious time and help.

 

POS.fmp12

I think that you'll find Daniel's posts on this topic very useful:

http://www.newleafdata.com/downloads-fmp.html

  • Author

It's a bit complicated!

  • Author

I finally found a solution but I don't know if It is the correct one..it is too good to be real.
Would it be possible for you to confirm if i made it in a proper way?

I have attached a sample.

Point of Sale.fmp12

Hi Kishan_Canoo,

I would modify the data structure to allow for adding stock to products and having a record of when it was adjusted.

Attached is your modified file. I added a new table called "Stock" and added a button to EDIT Stock. Click into the last row of the list to add more stock.

Tear it apart to examine it. If you have questions, please post them.

Good luck!

Point of Sale2.fmp12

  • Author

Thank you very much for your help dwdata.

Much appreciated!

 

I notice a fairly serious error in the Item table. It has an ID field, defined to auto-enter a serial number.

But this Item record ID is used as the relation key to connect it to the order and it gets overwritten when the order is built.

Thus there really is no Item record ID.

The Item record should have a field IDf_sale, which should not be defined as a serial number, and which should be related to the ID field in Sales.

Point of Sale3.fmp12

Edited by BruceR

  • Author

I have an issue regarding the calculation, actually everything is working well with the solution and the only problem may be happened if more items are added the system will get slower and slower.
If there is a way to avoid the system to become slower by using the actual method of calculation?

Point of Sale.fmp12

Point of Sale.fmp12

You don't seem to be paying attention.

Design changes were already provided by DW; and I added a small further mod.

Your solution does not contain any of the advice provided. Why are you still asking questions?

  • Author

OK BruceR.

Understood!

Thank you

  • Author

The solution provided was very helpful and already added to the Point of sales software solution and it works fine. Thank you all.

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.