Untitled

mail@pastecode.io avatar
unknown
python
7 months ago
315 B
2
Indexable
Never
from rh.gfp.models import *

inss_13 = FolhaEvento.objects.filter(reference_year=2023,reference_month=13,evento__numero='91002',folha__tipo_folha__titulo__in = ['COMPLEMENTAR'])

for inss in inss_13:
	print inss
	patronal = inss.patronal
	update = FolhaEvento.objects.filter(pk=inss.id).update(patronal=-patronal)

Leave a Comment