Why there is diff between the insert data by the api and import form file

Why there is diff between the insert data by the api
sales_invoice.insert()
frappe.db.commit()

and the import file of the same data
about the excel file


but in console i same the workflow status is

so why does not wrote instead of Not Saved