fix: cast array slice index integer while splitting serial_nos array (#30468) (#30496)

(cherry picked from commit 3f3717952c94af428c3d4c919aceb6b8cbae7679)

Co-authored-by: Anoop <anoop@earthianslive.com>
This commit is contained in:
mergify[bot] 2022-03-30 17:00:28 +05:30 committed by GitHub
parent b9d37152ba
commit 89a9afab94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1327,7 +1327,7 @@ def get_serial_nos_for_job_card(row, wo_doc):
used_serial_nos.extend(get_serial_nos(d.serial_no))
serial_nos = sorted(list(set(serial_nos) - set(used_serial_nos)))
row.serial_no = "\n".join(serial_nos[0 : row.job_card_qty])
row.serial_no = "\n".join(serial_nos[0 : cint(row.job_card_qty)])
def validate_operation_data(row):