Doctype Bin Modified Timestamp

Does the modified field get updated in Bin Doctype on modifications?

As per the controller code in E-Commerce Integration the modified timestamp of Bin is compared with inventory_synced field to decide whether the inventory should be synced or not.

ERPNext Versions

ERPNext: v13.18.0 (version-13)
Frappe Framework: v13.18.0 (version-13)

I tried checking the modified field in database after modification in Bin (Cancellation of Sales Order>updated the Reserved and Projected Qty in Bin Doctype) but the modified field did not get updated.

Any help on this will be appreciated.

Looks like some updates to bin aren’t updating the modified timestamp.

We can change this to update modified in all cases

created issue for this: https://github.com/frappe/erpnext/issues/29744

Hi Ankush,
Thanks for the reply.
I think we need to add the following line bin.modified= frappe.utils.now() below line 179 in the above code.
I tried it on my trial instance. It worked well.

Thanks

Fixed now. Thanks for pointing this out :+1:

1 Like