Exemplo n.º 1
0
def site_order_key_is_same(action, before, after):
    compare(before.pending.site_order_key, after.pending.site_order_key)
Exemplo n.º 2
0
def exchange_order_id_is_same(action, before, after):
    compare(before.pending.exchange_order_id, after.pending.exchange_order_id)
Exemplo n.º 3
0
def exchange_order_id_has_changed(action, before, after):
    compare(before.pending.exchange_order_id,
            after.pending.exchange_order_id,
            op=operator.ne)
Exemplo n.º 4
0
def exchange_credentials_is_populated(action, before, after):
    compare(after.pending.exchange_credentials, get_hostinfo_member_user_id(),
            operator.eq)
Exemplo n.º 5
0
def date_processed_is_not_zero(action, before, after):

    date_processed_after = after.pending.date_processed
    compare(date_processed_after.day, 0, op=operator.ne)
Exemplo n.º 6
0
def limit_prc_for_mtl_is_not_ttinvalid(action, before, after):
    compare(after.pending.limit_prc,
            cppclient.TT_INVALID_PRICE,
            op=operator.ne)