Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
cashboxcheckcorrection.php
1<?php
3
5
22class CashboxCheckCorrectionTable extends Entity\DataManager
23{
24 public static function getTableName()
25 {
26 return 'b_sale_cashbox_check_correction';
27 }
28
29 public static function getMap()
30 {
31 return [
32 'ID' => [
33 'primary' => true,
34 'autocomplete' => true,
35 'autoincrement' => true,
36 'data_type' => 'integer',
37 ],
38 'CHECK_ID' => [
39 'data_type' => 'integer',
40 ],
41 'CHECK' => [
42 'data_type' => 'Bitrix\Sale\Cashbox\Internals\CashboxCheckTable',
43 'reference' => [
44 '=this.CHECK_ID' => 'ref.ID'
45 ]
46 ],
47 'CORRECTION_TYPE' => [
48 'data_type' => 'string',
49 'required' => true
50 ],
51 'DOCUMENT_NUMBER' => [
52 'data_type' => 'string',
53 'required' => true
54 ],
55 'DOCUMENT_DATE' => [
56 'data_type' => 'date',
57 'required' => true
58 ],
59 'DESCRIPTION' => [
60 'data_type' => 'string'
61 ],
62 'CORRECTION_PAYMENT' => [
63 'data_type' => 'string',
64 'serialized' => true
65 ],
66 'CORRECTION_VAT' => [
67 'data_type' => 'string',
68 'serialized' => true
69 ],
70 ];
71 }
72}