Feat: ajout de la table mouvement caisse pour permettre les transaction du senior commis dans la caisse #268

Open
dnova wants to merge 11 commits from caisse_mouvements into main
Member

Closes #176
Closes #177

Closes #176 Closes #177
@ -7,6 +7,22 @@ SELECT
c.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, (
Member

a voir si on peut le chop up le query en fonction comme helpers pour simplifier le code

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 = $1
AND archived_at IS NULL
ORDER BY created_at DESC;
Member

manque limit et offset pour pagination, je pense les autres parties du caisse aussi manque ca

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,
Member

CRITICAL MISTAKE!!! Les fields sont toujours en anglais

CRITICAL MISTAKE!!! Les fields sont toujours en anglais
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin caisse_mouvements:caisse_mouvements
git switch caisse_mouvements

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.

git switch main
git merge --no-ff caisse_mouvements
git switch caisse_mouvements
git rebase main
git switch main
git merge --ff-only caisse_mouvements
git switch caisse_mouvements
git rebase main
git switch main
git merge --no-ff caisse_mouvements
git switch main
git merge --squash caisse_mouvements
git switch main
git merge --ff-only caisse_mouvements
git switch main
git merge caisse_mouvements
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
bottin/cms!268
No description provided.