trans_params = ""
trans_params = set_value (trans_params, "TRANS_ID", "1")
trans_params = set_value (trans_params, "ACTION","NEW_ORDER")
trans_params = set_value (trans_params, "CLASSCODE", CLASSCODE)
trans_params = set_value (trans_params, "SECCODE", SECCODE)
trans_params = set_value (trans_params, "ACCOUNT", ACCOUNT)
trans_params = set_value (trans_params, "CLIENT_CODE", CLIENT_CODE)
trans_params = set_value (trans_params, "OPERATION", OPERATION__1)
trans_params = set_value (trans_params, "PRICE", OFFER_bay)
trans_params = set_value (trans_params, "QUANTITY", QUANTITY_BUMAGI_ )
trans_params = set_value (trans_params, "TYPE", "L")
trans_result =SEND_TRANSACTION (20, trans_params)
Обращаясь к функции "get_value" номер заявки не соответствует реальному.
ORDER_NUMBER_SELL = get_value (trans_result, "ORDER_NUMBER")+0 'запоминаем номер продажи
РАНЬШЕ РАБОТАЛО, НО ЭТО БЫЛО ДАВНО
trans_params = set_value (trans_params, "TRANS_ID", "1")
trans_params = set_value (trans_params, "ACTION","NEW_ORDER")
trans_params = set_value (trans_params, "CLASSCODE", CLASSCODE)
trans_params = set_value (trans_params, "SECCODE", SECCODE)
trans_params = set_value (trans_params, "ACCOUNT", ACCOUNT)
trans_params = set_value (trans_params, "CLIENT_CODE", CLIENT_CODE)
trans_params = set_value (trans_params, "OPERATION", OPERATION__1)
trans_params = set_value (trans_params, "PRICE", OFFER_bay)
trans_params = set_value (trans_params, "QUANTITY", QUANTITY_BUMAGI_ )
trans_params = set_value (trans_params, "TYPE", "L")
trans_result =SEND_TRANSACTION (20, trans_params)
Обращаясь к функции "get_value" номер заявки не соответствует реальному.
ORDER_NUMBER_SELL = get_value (trans_result, "ORDER_NUMBER")+0 'запоминаем номер продажи
РАНЬШЕ РАБОТАЛО, НО ЭТО БЫЛО ДАВНО