Skip to content

CI4: Get Sales MVC working #3698

Closed
Closed

Description

@objecttothis

Right now there are various bugs and problems preventing the sales views from loading properly.

Activity

  1. added this to the 3.4.0 milestone on Mar 3, 2023
  2. self-assigned this
    on Mar 3, 2023
  3. self-assigned this
    on Mar 31, 2023
  4. SteveIreland commented on Mar 31, 2023

    @SteveIreland
    Collaborator

    I thought I would dive into this over the weekend and, time permitting, fix as many of the issues that I can find. Hopefully I don't cause problems for you. @objecttothis

  5. objecttothis commented on Mar 31, 2023

    @objecttothis
    MemberAuthor

    I thought I would dive into this over the weekend and, time permitting, fix as many of the issues that I can find. Hopefully I don't cause problems for you. @objecttothis

    No problem. Feel free to take ownership of any tickets that I am assigned. I'm still several weeks out from being able to dive back in due to this remodel.

  6. added a commit that references this issue on Apr 2, 2023
  7. SteveIreland commented on Apr 2, 2023

    @SteveIreland
    Collaborator

    I made changes to the register that got me to the point where I could add, change, and remove items from the sale I can also add and remove payments, and I can add and remove a customer. A lot more remains to be debugged, but I'm out of time for this weekend.

    One notable point. The new CI4 method for getting config properties will fail if the property doesn't exist. So, if for some reason the property doesn't exist, then I am creating the property and adding to the tables.sql so that the property will be added when a new database is created. For existing databases they will need to be manually added. Maybe this is an opportunity for a new CI3 to CI4 migration step?

    I also noticed that the database was changed while I was working on this, so my test didn't include that database change. I'll pick that up in the next iteration.

  8. objecttothis commented on Apr 3, 2023

    @objecttothis
    MemberAuthor

    @SteveIreland tables.sql and constraints.sql is frozen, so we can't add those there. In the CI3 version of OSPOS I believe those rows were being added to ospos_app_config on first use. I may be mistaken but we may just need to check if the row exists and lazy load if not.

  9. SteveIreland commented on Apr 3, 2023

    @SteveIreland
    Collaborator

    Yep. I forgot about that major annoyance. Thanks for reminding me.

  10. objecttothis commented on Apr 3, 2023

    @objecttothis
    MemberAuthor

    Yep. I forgot about that major annoyance. Thanks for reminding me.

    I believe thats the benefit of the save function. When working properly it does a check to see if the key exists and does an insert if no or an update if yes. The CI4 built in Model save function does this so eventually we should be able to get rid of our overridden save functions where we aren't doing something extra.

  11. added a commit that references this issue on Apr 21, 2023
  12. SteveIreland commented on Apr 21, 2023

    @SteveIreland
    Collaborator

    I added a commit that will allow a simple order (item selected, customer selected, and cash amount applied for a POS sale) to be completed.

  13. added a commit that references this issue on Apr 21, 2023
  14. added 3 commits that reference this issue on Apr 28, 2023
  15. added 3 commits that reference this issue on Oct 31, 2023
  16. added
    CodeIgniter4
    on Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

CodeIgniter4bugenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions