Subversion Repositories SmartDukaan

Rev

Rev 19950 | Rev 19952 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19950 Rev 19951
Line 34... Line 34...
34
    
34
    
35
from shop2020.utils.Utils import to_java_date
35
from shop2020.utils.Utils import to_java_date
36
 
36
 
37
 
37
 
38
cutoff_date = ConfigClient().get_property("warehouse_company_cutoff_date")
38
cutoff_date = ConfigClient().get_property("warehouse_company_cutoff_date")
39
cutoff_date = datetime.datetime.strptime('%Y-%m-%d', cutoff_date)
39
cutoff_date = datetime.datetime.strptime(cutoff_date,'%Y-%m-%d')
40
 
40
 
41
def to_t_transaction(transaction):
41
def to_t_transaction(transaction):
42
    t_transaction = T_Transaction()
42
    t_transaction = T_Transaction()
43
    t_transaction.id = transaction.id
43
    t_transaction.id = transaction.id
44
    t_transaction.createdOn = to_java_date(transaction.createdOn)
44
    t_transaction.createdOn = to_java_date(transaction.createdOn)