Feat: ajout de la table mouvement caisse pour permettre les transaction du senior commis dans la caisse #268
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
Important
invalid
MVP
nice to have
optional
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bottin/cms!268
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "caisse_mouvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #176
Closes #177
@ -7,6 +7,22 @@ SELECTc.created_at,COALESCE(c.total_received, COALESCE(SUM(a.amount_received), 0)) AS total_received,COALESCE(c.total_returned, COALESCE(SUM(a.change_returned), 0)) AS total_returned,COALESCE(c.total_depot, (a voir si on peut le chop up le query en fonction comme helpers pour simplifier le code
@ -0,0 +10,4 @@FROM "caisse_mouvement"WHERE caisse_id = $1AND archived_at IS NULLORDER BY created_at DESC;manque limit et offset pour pagination, je pense les autres parties du caisse aussi manque ca
@ -36,6 +36,8 @@ CREATE TABLE IF NOT EXISTS "caisse" (rolls_2 INTEGER NOT NULL DEFAULT 0,total_received FLOAT DEFAULT NULL,total_returned FLOAT DEFAULT NULL,total_depot FLOAT DEFAULT NULL,CRITICAL MISTAKE!!! Les fields sont toujours en anglais
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.