fix: update budget condition checks in setupSaldoServizio for improved accuracy
This commit is contained in:
parent
3aed2c4a6b
commit
783dc137ea
1 changed files with 2 additions and 2 deletions
|
|
@ -461,11 +461,11 @@ export const setupSaldoServizio = async ({
|
|||
}
|
||||
saldo = await qry.where("idprezziario", "=", mpp).executeTakeFirst();
|
||||
} else if (servizio.tipologia === TipologiaPosizioneEnum.Stabile) {
|
||||
if (servizio.budget >= 700) {
|
||||
if (servizio.budget > 700) {
|
||||
saldo = await qry
|
||||
.where("idprezziario", "=", "SALDOCA700+" as PrezziarioIdprezziario)
|
||||
.executeTakeFirst();
|
||||
} else if (servizio.budget >= 500) {
|
||||
} else if (servizio.budget > 500) {
|
||||
saldo = await qry
|
||||
.where("idprezziario", "=", "SALDOCA500+" as PrezziarioIdprezziario)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue