Fix product performance grouped JSON build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user