Add an option to automatically finish an order

This commit is contained in:
Patrick Gansterer 2017-10-12 00:20:30 +02:00
parent c3927e4013
commit 564492afe4
10 changed files with 77 additions and 3 deletions

View file

@ -82,6 +82,12 @@ de:
boxfill: Kistenfüllen ab
closed_by: Abgerechnet von
created_by: Erstellt von
end_action: Endeaktion
end_actions:
auto_close: Bestellung beenden
auto_close_and_send: Bestellung beenden und an Lieferantin schicken
auto_close_and_send_min_quantity: Bestellung beenden und an Lieferantin schicken sofern die Mindestbestellmenge erreicht wurde
no_end_action: Keine automatische Aktion
ends: Endet am
name: Lieferant
note: Notiz

View file

@ -82,6 +82,12 @@ en:
boxfill: Fill boxes after
closed_by: Settled by
created_by: Created by
end_action: End action
end_actions:
auto_close: Close the order
auto_close_and_send: Close the order and send it to the supplier
auto_close_and_send_min_quantity: Close the order and send it to the supplier if the minimum quantity has been reached
no_end_action: No automatic action
ends: Ends at
name: Supplier
note: Note

View file

@ -11,3 +11,8 @@ end
every :sunday, :at => '7:14 am' do
rake "multicoops:run TASK=foodsoft:create_upcoming_periodic_tasks"
end
# Finish ended orders
every 1.minute do
rake "multicoops:run TASK=foodsoft:finish_ended_orders"
end