Usluge: zaseban modul (cenovnik usluga)

Usluga je zaseban entitet, ne artikal: svoja tabela usluge (naziv, šifra,
jedinica mere, cena, PDV, opis), repo, handleri i forma. Auto-šifra USL-001…999,
jedinica mere (usluga/sat/kom). Bez nabavne/prodajne cene, dobavljača, lagera i
marže. /usluge lista + CRUD; stari tip-filter handler uklonjen iz magacina.
This commit is contained in:
2026-06-21 23:04:56 +02:00
parent 9e73c4fb38
commit 8ac46c3ffd
13 changed files with 637 additions and 6 deletions
-5
View File
@@ -42,11 +42,6 @@ func (h *Handler) Magacin(w http.ResponseWriter, r *http.Request) {
h.magacinPrikaz(w, r, model.TipProizvod, "magacin", "Magacin", "/magacin")
}
// Usluge renderuje listu usluga (tip 'usluga')
func (h *Handler) Usluge(w http.ResponseWriter, r *http.Request) {
h.magacinPrikaz(w, r, model.TipUsluga, "usluge", "Usluge", "/usluge")
}
// Troskovi renderuje listu troškova (tip 'trosak')
func (h *Handler) Troskovi(w http.ResponseWriter, r *http.Request) {
h.magacinPrikaz(w, r, model.TipTrosak, "troskovi", "Troškovi", "/troskovi")