Продажа товара в магазине — различия между версиями

Материал из Фабиус wiki
Перейти к: навигация, поиск
м (goods.txt)
м (Получение данных TAKEFROMFTP22 Фрязино)
 
(не показано 7 промежуточных версий этого же участника)
Строка 47: Строка 47:
  
 
{|class = wikitable
 
{|class = wikitable
! Заголовок 1 || Заголовок 2
+
! Номер || Описание || Пример
 
|-
 
|-
| Содержимое 1 || Содержимое 2
+
| 1 || Код || 3
 +
|-
 +
| 2 || Штрихкод || 2001388000031
 +
|-
 +
| 3 || Наименование || Пасхальный кулич1 0,8кг
 +
|-
 +
| 4 || Текст || Пасхальный кулич1 0,8кг
 +
|-
 +
| 5 || Цена || 330
 +
|-
 +
| 23 || Код налоговой группы || 1
 
|}
 
|}
 +
= Получение данных TAKEFROMFTP22 Фрязино =
 +
This script appears to be written in the fabius programming language. It seems to be a script for transferring data files between an FTP server and a local directory.
 +
 +
The script first sets some local variables, including ip, taskanal, and various FTP-related parameters. It then creates a temporary directory and deletes all files within it.
 +
 +
The script then creates an array aa containing the string "$$$TRANSACTIONSBYDATERANGE" and the input ip. It retrieves the FTP server, login, and password from a database table [[R603]] using the input taskanal, as well as two other parameters from_atolf and from_atol.
 +
 +
The script then writes the '''aa''' array to a file named '''fromatolf''' in the temporary directory and attempts to connect to the FTP server using the retrieved parameters. It then searches the root directory of the FTP server for a file named '''fromatol''', deletes it if it exists, and uploads the '''fromatolf''' file to the server.
 +
 +
The script then waits for 5 seconds and checks if the '''fromatolf''' file exists on the server. If it does, the script waits an additional 10 seconds and checks again, up to 10 times. If the file still exists, the script assumes that the transfer failed and exits. Otherwise, the script downloads the '''fromatol''' file from the server to the local temporary directory.
 +
 +
Finally, the script reads the '''fromatol''' file into a temporary table and retrieves a list of distinct dates from the table. The script then loops over the dates and performs some additional processing on each date.
  
 
= Смотрите также =
 
= Смотрите также =

Текущая версия на 16:10, 11 апреля 2023

Магазин - Выгрузка товаров - Выгрузка изделий в формате АТОЛ 2022

PUTTOFTP2( getparam( 'taskanal' ) )

Настройка

я Администратор - Настройки - Конфигурация - Шаблоны - Экспорт файлов R260

Выгрузка изделий в формате АТОЛ 2022 ( 288 )

Магазин - Параметры модуля

Параметр Значение
TO_ATOL goods.txt
TO_ATOLF goods.flg
FROM_ATOL report.txt
FROM_ATOLF report.flg

Розничная торговля - Справочники - Торговое оборудование R603

Код Код магазина Файл импорта rep Флаг импорта Файл экспорта spr Флаг экспорта
1 14291 report.txt report.flg goods.txt goods.flg
Папка обмена FTP сервер, порт, логин, пароль
/ адрес, 21, login, password

Необходимо настроить на стороне фронтола коды налоговой группы

Код Значение
1 НДС = 20
2 НДС = 10

goods.txt

##@@&&
#
$$$DELETEALLWARES
$$$DELETEALLBARCODES
$$$DELETEALLPRICES
$$$REPLACEQUANTITYWITHOUTSALE
3;2001388000031;Пасхальный кулич1 0,8кг;Пасхальный кулич1 0,8кг;330;;;;;;;;;;;;;;;;;;1;
Номер Описание Пример
1 Код 3
2 Штрихкод 2001388000031
3 Наименование Пасхальный кулич1 0,8кг
4 Текст Пасхальный кулич1 0,8кг
5 Цена 330
23 Код налоговой группы 1

Получение данных TAKEFROMFTP22 Фрязино

This script appears to be written in the fabius programming language. It seems to be a script for transferring data files between an FTP server and a local directory.

The script first sets some local variables, including ip, taskanal, and various FTP-related parameters. It then creates a temporary directory and deletes all files within it.

The script then creates an array aa containing the string "$$$TRANSACTIONSBYDATERANGE" and the input ip. It retrieves the FTP server, login, and password from a database table R603 using the input taskanal, as well as two other parameters from_atolf and from_atol.

The script then writes the aa array to a file named fromatolf in the temporary directory and attempts to connect to the FTP server using the retrieved parameters. It then searches the root directory of the FTP server for a file named fromatol, deletes it if it exists, and uploads the fromatolf file to the server.

The script then waits for 5 seconds and checks if the fromatolf file exists on the server. If it does, the script waits an additional 10 seconds and checks again, up to 10 times. If the file still exists, the script assumes that the transfer failed and exits. Otherwise, the script downloads the fromatol file from the server to the local temporary directory.

Finally, the script reads the fromatol file into a temporary table and retrieves a list of distinct dates from the table. The script then loops over the dates and performs some additional processing on each date.

Смотрите также

Магазин

WHC