Customer Sequence Number and Virtual Work Period

I have followed this tutorial

https://kb.sambapos.com/en/2-4-14-a-how-to-add-customer-sequence-number-print/

I am not sure if this will work since using virtual work period.

Should i execute the actions before start work period?