notice main title and description fix

This commit is contained in:
Mazyar
2026-05-19 16:36:09 +03:30
parent 515d118158
commit 92d4b14b33
+10 -6
View File
@@ -1825,19 +1825,23 @@ func (cn ContractNotice) GetProcedureCode() string {
return ""
}
// GetProcurementTitle returns the procurement project title
// GetProcurementTitle returns the notice-level procurement project title
func (cn ContractNotice) GetProcurementTitle() string {
if cn.firstLot() != nil &&
cn.firstLot().ProcurementProject != nil {
if cn.ProcurementProject != nil && strings.TrimSpace(cn.ProcurementProject.Name) != "" {
return cn.ProcurementProject.Name
}
if cn.firstLot() != nil && cn.firstLot().ProcurementProject != nil {
return cn.firstLot().ProcurementProject.Name
}
return ""
}
// GetProcurementDescription returns the procurement project description
// GetProcurementDescription returns the notice-level procurement project description
func (cn ContractNotice) GetProcurementDescription() string {
if cn.firstLot() != nil &&
cn.firstLot().ProcurementProject != nil {
if cn.ProcurementProject != nil && strings.TrimSpace(cn.ProcurementProject.Description) != "" {
return cn.ProcurementProject.Description
}
if cn.firstLot() != nil && cn.firstLot().ProcurementProject != nil {
return cn.firstLot().ProcurementProject.Description
}
return ""