No Copy for Paid and Write Off Amount in Sales Invoice

Ported webnotes/erpnext@f739bffedd15883a559a0f73942e4f73064c650b
set stock balance as per serial no count

Cherry Picked and Modified by @anandpdoshi

Conflicts:
	stock/doctype/stock_ledger/stock_ledger.py
	utilities/repost_stock.py
Minor fix in monthly attendance report

Cherry-picked and modified by @anandpdoshi

Conflicts:
	hr/report/monthly_attendance_sheet/monthly_attendance_sheet.py
perpetual inventory fix related to sub-contracting

Cherry-picked and modified by @anandpdoshi

Conflicts:
	accounts/doctype/purchase_invoice/purchase_invoice.py
	controllers/buying_controller.py
	controllers/stock_controller.py
Space allowed in naming series

Conflicts:
	setup/doctype/naming_series/naming_series.py
Ported v3 fixes to v4

Commit range: webnotes/erpnext@e4b72df2f4bd7272c42e90f6faec3c27aa763b82..webnotes/erpnext@85441b0180f84246259d5a0ab4e3bcbf29355efe