Abdur-rahmaanJ / shopcube

🛒 POS & ecommerce solution for Shops. (Woo-commerce for Python) Complete with cart and wishlist.
Other
263 stars 136 forks source link

models:update pos & product #528

Closed LaDen2 closed 3 months ago

LaDen2 commented 3 months ago

Changes to pos & product model

<!--- Provide a general summary of your changes in the Title above -->

Description

<!--- Add some new fields to the pos model like total_amount,method_of_payment and also set the relationship to one to many(Transaction-->Product) so that one transaction can include many products but one product can be include in one transaction only!

Motivation and Context

<!--- Why is this change required? What problem does it solve? -->

<!--- If it fixes an open issue, please link to the issue here. -->

How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->

<!--- Include details of your testing environment, and the tests you ran to -->

<!--- see how your change affects other areas of the code, etc. -->

Screenshots (if appropriate):

Types of changes

<!--- What types of changes does your code introduce? Put anxin all the boxes that apply: -->

Checklist:

<!--- Go over all the following points, and put anxin all the boxes that apply. -->

<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

LaDen2 commented 3 months ago

Merged, error with Pip, must solve it later!