vitalseeds / vs-data-api

Fast API endpoints to expose vs-data actions for to run from Filemaker
MIT License
0 stars 0 forks source link

Update WC stock from new FM batch #3

Closed tombola closed 1 year ago

tombola commented 1 year ago

* Could use a card to update user in FM, might be less annoying than custom dialog.

tombola commented 1 year ago

@fredvitalseeds I am finding it difficult to trace exactly how packeting_batches and large_batches in the VS database relate, or are connected to Products and Product Variations and stock values in woocommerce.

fredvitalseeds commented 1 year ago

They don't relate, but are both related to SeedLots by lot number.

Large batches only used for large packets, they need to connect to 'variations' endpoint.

Packeting batches for small packets, they connect to 'products' endpoint

On Tue, 3 Jan 2023, 16:30 Tom Readings, @.***> wrote:

@fredvitalseeds https://github.com/fredvitalseeds I am finding it difficult to trace exactly how packeting_batches and large_batches in the VS database relate, or are connected to Products and Product Variations and stock values in woocommerce.

— Reply to this email directly, view it on GitHub https://github.com/vitalseeds/vs-data-api/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNHIY7KFBTHF3OGPT5OKXLWQRH2FANCNFSM6AAAAAATPRWRJQ . You are receiving this because you were mentioned.Message ID: @.***>

tombola commented 1 year ago

Notes on the above (from discussion).

tombola commented 1 year ago

I have stock updating on WC based on packets in new batch (VS database).

Just need to correct the 'awaiting_upload' status in FM (should be simple) and the functionality is complete.

Will need some wrapping up and testing on PCs mind.

fredvitalseeds commented 1 year ago

Legend :)

Scores:

Tom 12, filemaker 11

On Tue, 10 Jan 2023, 21:11 Tom Readings, @.***> wrote:

I have stock updating on WC based on packets in new batch (VS database).

Just need to correct the 'awaiting_upload' status in FM (should be simple) and the functionality is complete.

Will need some wrapping up and testing on PCs mind.

— Reply to this email directly, view it on GitHub https://github.com/vitalseeds/vs-data-api/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZNHIY44D33RXKWPCHOEKYDWRXGABANCNFSM6AAAAAATPRWRJQ . You are receiving this because you were mentioned.Message ID: @.***>

tombola commented 1 year ago

All working well on the office machine.