Fix product performance grouped JSON build

This commit is contained in:
M_Kececi
2026-08-18 18:44:26 +03:00
parent 474904481f
commit 89df3d2d3d
2 changed files with 51 additions and 15 deletions
+1 -3
View File
@@ -1430,9 +1430,7 @@ func postProductionProductCostingOnMLSaveHandler(w http.ResponseWriter, r *http.
// The top header in the detail screen only includes rows marked
// "Maliyete Dahil". Persist that exact business total to the master
// record as well; excluded detail rows must not inflate the cost.
groupName := strings.ToUpper(strings.TrimSpace(r.SAciklama3))
isCMLaborGroup := strings.Contains(groupName, "CM1") || strings.Contains(groupName, "CM2")
if r.MaliyeteDahil != 1 && !isCMLaborGroup {
if r.MaliyeteDahil != 1 {
continue
}
qty := r.LMiktar