Changeset 396a48e in rattail


Ignore:
Timestamp:
02/26/19 17:59:40 (8 weeks ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
67d801e
Parents:
7bfed95
Message:

Add mark_complete() and mark_incomplete() methods for batch handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail/batch/handlers.py

    r7bfed95 r396a48e  
    427427        """
    428428
     429    def mark_complete(self, batch, progress=None):
     430        batch.complete = True
     431
     432    def mark_incomplete(self, batch, progress=None):
     433        batch.complete = False
     434
    429435    def why_not_execute(self, batch):
    430436        """
Note: See TracChangeset for help on using the changeset viewer.