Below is a compilation of essential commands tailored for open-source enthusiasts, primarily designed for managing invoicing tasks,
whether for immediate processing or scheduling.These commands are designed to execute a Rails console (rails c) within a Docker container named api, which is managed by Docker Compose.
Use this to simulate a dry run invoice for a future date. Ensure to specify the correct subscription external_id and the targeted invoice issuance date.
Copy
Ask AI
# In the rails Consolesubscription = Subscription.find_by(external_id: 'YOUR_SUB_EXTERNAL_ID')date = DateTime.parse('2024-10-01').to_iBillSubscriptionJob.perform_later([subscription], date)