tender est amount fix
This commit is contained in:
+6
-2
@@ -1971,15 +1971,19 @@ func (cn ContractNotice) GetTenderDeadline() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// GetBudget returns the estimated contract amount and currency
|
||||
// GetBudget returns the estimated contract amount and currency.
|
||||
// Lot-level BT-27 is preferred; procedure-level BT-27 is used when lots omit RequestedTenderTotal.
|
||||
func (cn ContractNotice) GetBudget() (amount string, currency string) {
|
||||
if cn.firstLot() != nil &&
|
||||
cn.firstLot().ProcurementProject != nil &&
|
||||
cn.firstLot().ProcurementProject.RequestedTenderTotal != nil {
|
||||
|
||||
contractAmount := cn.firstLot().ProcurementProject.RequestedTenderTotal.EstimatedOverallContractAmount
|
||||
return contractAmount.Text, contractAmount.CurrencyID
|
||||
}
|
||||
if cn.ProcurementProject != nil && cn.ProcurementProject.RequestedTenderTotal != nil {
|
||||
a := cn.ProcurementProject.RequestedTenderTotal.EstimatedOverallContractAmount
|
||||
return a.Text, a.CurrencyID
|
||||
}
|
||||
return "", ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user