Code Monkey home page Code Monkey logo

Comments (4)

ttm-alexeypolunin avatar ttm-alexeypolunin commented on June 2, 2024

Одинарное равно = — это вхождение:

  • 1= 1
  • 1 = [1,2,3]
  • 1= [1]

Двойное равно == — это полное соответствие:

  • 1= =1
  • 1 == "1"

Но возможно, у нас ошибка в сравнениях, которую мы не видим.

  1. Скажите какой тип поля используется для order_number

  2. Включите отладку по кодам и посмотрите в чем разница выбираемых списков:

Нам нужно понять, какое значение order_number попадает в интервал лишним или не попадает если там есть отрицательные суммы в paid_usd.

from totum-mit.

mervick avatar mervick commented on June 2, 2024

Извините за долгий фидбек.

Итак, тип поля для order_number - селект, в качестве значений используется данные из таблицы где order_number - строка, но конкретно в order_payments хранится id от order_number - селект.

при =

= : listSum(list: $list)
list: selectList(table: 'order_payments'; field: 'paid_usd'; where: 'order_number' = $#nci)

считает только 1 запись

Selection_405

при ==

= : listSum(list: $list)
list: selectList(table: 'order_payments'; field: 'paid_usd'; where: 'order_number' == $#nci)

Selection_406

from totum-mit.

ttm-alexeypolunin avatar ttm-alexeypolunin commented on June 2, 2024

Спасибо, что моричитесь.

  1. Правильно ли мы понимаем, что номера циклов записываются в промежуточной таблице в текстовое поле, а в order_number используется bfield по этому строковому полю?

  2. Хотя бы одна из этих выборок верная?

  3. Можете сделать рядом поле тип Данные и в код выполнить:

=: rowCreate(field: "single" = $single; field: "double" = $double)

single: selectRowList(table: 'order_payments'; field: 'order_number'; field: 'paid_usd'; where: 'order_number' = $#nci)
double: selectRowList(table: 'order_payments'; field: 'order_number'; field: 'paid_usd'; where: 'order_number' == $#nci)

и прислать нам получившийся json

from totum-mit.

ttm-alexeypolunin avatar ttm-alexeypolunin commented on June 2, 2024

Самый хороший вариант, если вы в Телеграм мне напишете @alexeypolunin и дадите нам admin-доступ к вашему Тотум, что бы мы глазами глянули

from totum-mit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.