notice main title and description fix
This commit is contained in:
+10
-6
@@ -1825,19 +1825,23 @@ func (cn ContractNotice) GetProcedureCode() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetProcurementTitle returns the procurement project title
|
// GetProcurementTitle returns the notice-level procurement project title
|
||||||
func (cn ContractNotice) GetProcurementTitle() string {
|
func (cn ContractNotice) GetProcurementTitle() string {
|
||||||
if cn.firstLot() != nil &&
|
if cn.ProcurementProject != nil && strings.TrimSpace(cn.ProcurementProject.Name) != "" {
|
||||||
cn.firstLot().ProcurementProject != nil {
|
return cn.ProcurementProject.Name
|
||||||
|
}
|
||||||
|
if cn.firstLot() != nil && cn.firstLot().ProcurementProject != nil {
|
||||||
return cn.firstLot().ProcurementProject.Name
|
return cn.firstLot().ProcurementProject.Name
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetProcurementDescription returns the procurement project description
|
// GetProcurementDescription returns the notice-level procurement project description
|
||||||
func (cn ContractNotice) GetProcurementDescription() string {
|
func (cn ContractNotice) GetProcurementDescription() string {
|
||||||
if cn.firstLot() != nil &&
|
if cn.ProcurementProject != nil && strings.TrimSpace(cn.ProcurementProject.Description) != "" {
|
||||||
cn.firstLot().ProcurementProject != nil {
|
return cn.ProcurementProject.Description
|
||||||
|
}
|
||||||
|
if cn.firstLot() != nil && cn.firstLot().ProcurementProject != nil {
|
||||||
return cn.firstLot().ProcurementProject.Description
|
return cn.firstLot().ProcurementProject.Description
|
||||||
}
|
}
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user