@aldiokta/protocgen 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +93 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -262
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6944
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3100
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4335
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2904
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -4180
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2657
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3814
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -3010
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3251
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4232
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2828
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -3104
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2978
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3084
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2597
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3061
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2732
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2512
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  135. package/prisca/v1/core/users/users_pb.js +0 -1653
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -4024
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7577
  140. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  141. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -4661
  142. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  143. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  144. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  145. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  146. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  147. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  148. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -1
  149. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -35
  150. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  151. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -5049
  152. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  154. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  155. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2927
  156. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  157. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2546
  158. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  159. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2590
  160. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  161. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  162. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -163
  163. package/prisca/v1/quotation/quotation_pb.js +0 -2796
  164. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -193
  165. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5961
  166. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  167. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  168. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  169. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6363
@@ -1,4180 +0,0 @@
1
- // source: prisca/v1/core/item_transaction/item_transaction.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {missingRequire} reports error on implicit type usages.
6
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
- * field starts with 'MSG_' and isn't a translatable message.
8
- * @public
9
- */
10
- // GENERATED CODE -- DO NOT EDIT!
11
- /* eslint-disable */
12
- // @ts-nocheck
13
-
14
- var jspb = require('google-protobuf');
15
- var goog = jspb;
16
- var global =
17
- (typeof globalThis !== 'undefined' && globalThis) ||
18
- (typeof window !== 'undefined' && window) ||
19
- (typeof global !== 'undefined' && global) ||
20
- (typeof self !== 'undefined' && self) ||
21
- (function () { return this; }).call(null) ||
22
- Function('return this')();
23
-
24
- var prisca_v1_core_file_upload_file_upload_pb = require('../../../../prisca/v1/core/file_upload/file_upload_pb.js');
25
- goog.object.extend(proto, prisca_v1_core_file_upload_file_upload_pb);
26
- goog.exportSymbol('proto.BaseItemTransaction', null, global);
27
- goog.exportSymbol('proto.BaseItemTransactionDetail', null, global);
28
- goog.exportSymbol('proto.BaseItemTransactionPriceCondition', null, global);
29
- goog.exportSymbol('proto.ItemTransaction', null, global);
30
- goog.exportSymbol('proto.ItemTransactionDetail', null, global);
31
- goog.exportSymbol('proto.ItemTransactionPriceCondition', null, global);
32
- /**
33
- * Generated by JsPbCodeGenerator.
34
- * @param {Array=} opt_data Optional initial data array, typically from a
35
- * server response, or constructed directly in Javascript. The array is used
36
- * in place and becomes part of the constructed object. It is not cloned.
37
- * If no data is provided, the constructed object will be empty, but still
38
- * valid.
39
- * @extends {jspb.Message}
40
- * @constructor
41
- */
42
- proto.ItemTransaction = function(opt_data) {
43
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ItemTransaction.repeatedFields_, null);
44
- };
45
- goog.inherits(proto.ItemTransaction, jspb.Message);
46
- if (goog.DEBUG && !COMPILED) {
47
- /**
48
- * @public
49
- * @override
50
- */
51
- proto.ItemTransaction.displayName = 'proto.ItemTransaction';
52
- }
53
- /**
54
- * Generated by JsPbCodeGenerator.
55
- * @param {Array=} opt_data Optional initial data array, typically from a
56
- * server response, or constructed directly in Javascript. The array is used
57
- * in place and becomes part of the constructed object. It is not cloned.
58
- * If no data is provided, the constructed object will be empty, but still
59
- * valid.
60
- * @extends {jspb.Message}
61
- * @constructor
62
- */
63
- proto.ItemTransactionDetail = function(opt_data) {
64
- jspb.Message.initialize(this, opt_data, 0, -1, proto.ItemTransactionDetail.repeatedFields_, null);
65
- };
66
- goog.inherits(proto.ItemTransactionDetail, jspb.Message);
67
- if (goog.DEBUG && !COMPILED) {
68
- /**
69
- * @public
70
- * @override
71
- */
72
- proto.ItemTransactionDetail.displayName = 'proto.ItemTransactionDetail';
73
- }
74
- /**
75
- * Generated by JsPbCodeGenerator.
76
- * @param {Array=} opt_data Optional initial data array, typically from a
77
- * server response, or constructed directly in Javascript. The array is used
78
- * in place and becomes part of the constructed object. It is not cloned.
79
- * If no data is provided, the constructed object will be empty, but still
80
- * valid.
81
- * @extends {jspb.Message}
82
- * @constructor
83
- */
84
- proto.ItemTransactionPriceCondition = function(opt_data) {
85
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
86
- };
87
- goog.inherits(proto.ItemTransactionPriceCondition, jspb.Message);
88
- if (goog.DEBUG && !COMPILED) {
89
- /**
90
- * @public
91
- * @override
92
- */
93
- proto.ItemTransactionPriceCondition.displayName = 'proto.ItemTransactionPriceCondition';
94
- }
95
- /**
96
- * Generated by JsPbCodeGenerator.
97
- * @param {Array=} opt_data Optional initial data array, typically from a
98
- * server response, or constructed directly in Javascript. The array is used
99
- * in place and becomes part of the constructed object. It is not cloned.
100
- * If no data is provided, the constructed object will be empty, but still
101
- * valid.
102
- * @extends {jspb.Message}
103
- * @constructor
104
- */
105
- proto.BaseItemTransaction = function(opt_data) {
106
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseItemTransaction.repeatedFields_, null);
107
- };
108
- goog.inherits(proto.BaseItemTransaction, jspb.Message);
109
- if (goog.DEBUG && !COMPILED) {
110
- /**
111
- * @public
112
- * @override
113
- */
114
- proto.BaseItemTransaction.displayName = 'proto.BaseItemTransaction';
115
- }
116
- /**
117
- * Generated by JsPbCodeGenerator.
118
- * @param {Array=} opt_data Optional initial data array, typically from a
119
- * server response, or constructed directly in Javascript. The array is used
120
- * in place and becomes part of the constructed object. It is not cloned.
121
- * If no data is provided, the constructed object will be empty, but still
122
- * valid.
123
- * @extends {jspb.Message}
124
- * @constructor
125
- */
126
- proto.BaseItemTransactionDetail = function(opt_data) {
127
- jspb.Message.initialize(this, opt_data, 0, -1, proto.BaseItemTransactionDetail.repeatedFields_, null);
128
- };
129
- goog.inherits(proto.BaseItemTransactionDetail, jspb.Message);
130
- if (goog.DEBUG && !COMPILED) {
131
- /**
132
- * @public
133
- * @override
134
- */
135
- proto.BaseItemTransactionDetail.displayName = 'proto.BaseItemTransactionDetail';
136
- }
137
- /**
138
- * Generated by JsPbCodeGenerator.
139
- * @param {Array=} opt_data Optional initial data array, typically from a
140
- * server response, or constructed directly in Javascript. The array is used
141
- * in place and becomes part of the constructed object. It is not cloned.
142
- * If no data is provided, the constructed object will be empty, but still
143
- * valid.
144
- * @extends {jspb.Message}
145
- * @constructor
146
- */
147
- proto.BaseItemTransactionPriceCondition = function(opt_data) {
148
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
- };
150
- goog.inherits(proto.BaseItemTransactionPriceCondition, jspb.Message);
151
- if (goog.DEBUG && !COMPILED) {
152
- /**
153
- * @public
154
- * @override
155
- */
156
- proto.BaseItemTransactionPriceCondition.displayName = 'proto.BaseItemTransactionPriceCondition';
157
- }
158
-
159
- /**
160
- * List of repeated fields within this message type.
161
- * @private {!Array<number>}
162
- * @const
163
- */
164
- proto.ItemTransaction.repeatedFields_ = [13,14,21];
165
-
166
-
167
-
168
- if (jspb.Message.GENERATE_TO_OBJECT) {
169
- /**
170
- * Creates an object representation of this proto.
171
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
172
- * Optional fields that are not set will be set to undefined.
173
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
174
- * For the list of reserved names please see:
175
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
176
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
177
- * JSPB instance for transitional soy proto support:
178
- * http://goto/soy-param-migration
179
- * @return {!Object}
180
- */
181
- proto.ItemTransaction.prototype.toObject = function(opt_includeInstance) {
182
- return proto.ItemTransaction.toObject(opt_includeInstance, this);
183
- };
184
-
185
-
186
- /**
187
- * Static version of the {@see toObject} method.
188
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
189
- * the JSPB instance for transitional soy proto support:
190
- * http://goto/soy-param-migration
191
- * @param {!proto.ItemTransaction} msg The msg instance to transform.
192
- * @return {!Object}
193
- * @suppress {unusedLocalVariables} f is only used for nested messages
194
- */
195
- proto.ItemTransaction.toObject = function(includeInstance, msg) {
196
- var f, obj = {
197
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
198
- accAssigment: jspb.Message.getFieldWithDefault(msg, 2, ""),
199
- materialGroup: jspb.Message.getFieldWithDefault(msg, 3, ""),
200
- materialCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
201
- detailDescription: jspb.Message.getFieldWithDefault(msg, 5, ""),
202
- description: jspb.Message.getFieldWithDefault(msg, 6, ""),
203
- quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
204
- unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 8, ""),
205
- estimatedUnitPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
206
- deliveryDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
207
- plannedDeliveryTime: jspb.Message.getFieldWithDefault(msg, 11, ""),
208
- customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
209
- itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
210
- proto.ItemTransactionDetail.toObject, includeInstance),
211
- itemTransactionPriceConditionList: jspb.Message.toObjectList(msg.getItemTransactionPriceConditionList(),
212
- proto.ItemTransactionPriceCondition.toObject, includeInstance),
213
- referencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
214
- createdAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
215
- updatedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
216
- transactionReferences: jspb.Message.getFieldWithDefault(msg, 18, ""),
217
- typeTransaction: jspb.Message.getFieldWithDefault(msg, 19, ""),
218
- previousReferences: jspb.Message.getFieldWithDefault(msg, 20, ""),
219
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
220
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
221
- previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 22, ""),
222
- currency: jspb.Message.getFieldWithDefault(msg, 23, ""),
223
- purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 24, ""),
224
- originalQuantity: jspb.Message.getFieldWithDefault(msg, 25, 0),
225
- usedQuantity: jspb.Message.getFieldWithDefault(msg, 26, 0),
226
- remainingQuantity: jspb.Message.getFieldWithDefault(msg, 27, 0)
227
- };
228
-
229
- if (includeInstance) {
230
- obj.$jspbMessageInstance = msg;
231
- }
232
- return obj;
233
- };
234
- }
235
-
236
-
237
- /**
238
- * Deserializes binary data (in protobuf wire format).
239
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
240
- * @return {!proto.ItemTransaction}
241
- */
242
- proto.ItemTransaction.deserializeBinary = function(bytes) {
243
- var reader = new jspb.BinaryReader(bytes);
244
- var msg = new proto.ItemTransaction;
245
- return proto.ItemTransaction.deserializeBinaryFromReader(msg, reader);
246
- };
247
-
248
-
249
- /**
250
- * Deserializes binary data (in protobuf wire format) from the
251
- * given reader into the given message object.
252
- * @param {!proto.ItemTransaction} msg The message object to deserialize into.
253
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
254
- * @return {!proto.ItemTransaction}
255
- */
256
- proto.ItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
257
- while (reader.nextField()) {
258
- if (reader.isEndGroup()) {
259
- break;
260
- }
261
- var field = reader.getFieldNumber();
262
- switch (field) {
263
- case 1:
264
- var value = /** @type {number} */ (reader.readInt64());
265
- msg.setId(value);
266
- break;
267
- case 2:
268
- var value = /** @type {string} */ (reader.readString());
269
- msg.setAccAssigment(value);
270
- break;
271
- case 3:
272
- var value = /** @type {string} */ (reader.readString());
273
- msg.setMaterialGroup(value);
274
- break;
275
- case 4:
276
- var value = /** @type {string} */ (reader.readString());
277
- msg.setMaterialCode(value);
278
- break;
279
- case 5:
280
- var value = /** @type {string} */ (reader.readString());
281
- msg.setDetailDescription(value);
282
- break;
283
- case 6:
284
- var value = /** @type {string} */ (reader.readString());
285
- msg.setDescription(value);
286
- break;
287
- case 7:
288
- var value = /** @type {number} */ (reader.readFloat());
289
- msg.setQuantity(value);
290
- break;
291
- case 8:
292
- var value = /** @type {string} */ (reader.readString());
293
- msg.setUnitOfMeasure(value);
294
- break;
295
- case 9:
296
- var value = /** @type {number} */ (reader.readFloat());
297
- msg.setEstimatedUnitPrice(value);
298
- break;
299
- case 10:
300
- var value = /** @type {string} */ (reader.readString());
301
- msg.setDeliveryDate(value);
302
- break;
303
- case 11:
304
- var value = /** @type {string} */ (reader.readString());
305
- msg.setPlannedDeliveryTime(value);
306
- break;
307
- case 12:
308
- var value = /** @type {string} */ (reader.readString());
309
- msg.setCustomTransaction(value);
310
- break;
311
- case 13:
312
- var value = new proto.ItemTransactionDetail;
313
- reader.readMessage(value,proto.ItemTransactionDetail.deserializeBinaryFromReader);
314
- msg.addItemTransactionDetail(value);
315
- break;
316
- case 14:
317
- var value = new proto.ItemTransactionPriceCondition;
318
- reader.readMessage(value,proto.ItemTransactionPriceCondition.deserializeBinaryFromReader);
319
- msg.addItemTransactionPriceCondition(value);
320
- break;
321
- case 15:
322
- var value = /** @type {string} */ (reader.readString());
323
- msg.setReferencesId(value);
324
- break;
325
- case 16:
326
- var value = /** @type {string} */ (reader.readString());
327
- msg.setCreatedAt(value);
328
- break;
329
- case 17:
330
- var value = /** @type {string} */ (reader.readString());
331
- msg.setUpdatedAt(value);
332
- break;
333
- case 18:
334
- var value = /** @type {string} */ (reader.readString());
335
- msg.setTransactionReferences(value);
336
- break;
337
- case 19:
338
- var value = /** @type {string} */ (reader.readString());
339
- msg.setTypeTransaction(value);
340
- break;
341
- case 20:
342
- var value = /** @type {string} */ (reader.readString());
343
- msg.setPreviousReferences(value);
344
- break;
345
- case 21:
346
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
347
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
348
- msg.addFiles(value);
349
- break;
350
- case 22:
351
- var value = /** @type {string} */ (reader.readString());
352
- msg.setPreviousTransactionReferences(value);
353
- break;
354
- case 23:
355
- var value = /** @type {string} */ (reader.readString());
356
- msg.setCurrency(value);
357
- break;
358
- case 24:
359
- var value = /** @type {string} */ (reader.readString());
360
- msg.setPurchaseRequisitionTransactionNumber(value);
361
- break;
362
- case 25:
363
- var value = /** @type {number} */ (reader.readInt64());
364
- msg.setOriginalQuantity(value);
365
- break;
366
- case 26:
367
- var value = /** @type {number} */ (reader.readInt64());
368
- msg.setUsedQuantity(value);
369
- break;
370
- case 27:
371
- var value = /** @type {number} */ (reader.readInt64());
372
- msg.setRemainingQuantity(value);
373
- break;
374
- default:
375
- reader.skipField();
376
- break;
377
- }
378
- }
379
- return msg;
380
- };
381
-
382
-
383
- /**
384
- * Serializes the message to binary data (in protobuf wire format).
385
- * @return {!Uint8Array}
386
- */
387
- proto.ItemTransaction.prototype.serializeBinary = function() {
388
- var writer = new jspb.BinaryWriter();
389
- proto.ItemTransaction.serializeBinaryToWriter(this, writer);
390
- return writer.getResultBuffer();
391
- };
392
-
393
-
394
- /**
395
- * Serializes the given message to binary data (in protobuf wire
396
- * format), writing to the given BinaryWriter.
397
- * @param {!proto.ItemTransaction} message
398
- * @param {!jspb.BinaryWriter} writer
399
- * @suppress {unusedLocalVariables} f is only used for nested messages
400
- */
401
- proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
402
- var f = undefined;
403
- f = message.getId();
404
- if (f !== 0) {
405
- writer.writeInt64(
406
- 1,
407
- f
408
- );
409
- }
410
- f = message.getAccAssigment();
411
- if (f.length > 0) {
412
- writer.writeString(
413
- 2,
414
- f
415
- );
416
- }
417
- f = message.getMaterialGroup();
418
- if (f.length > 0) {
419
- writer.writeString(
420
- 3,
421
- f
422
- );
423
- }
424
- f = message.getMaterialCode();
425
- if (f.length > 0) {
426
- writer.writeString(
427
- 4,
428
- f
429
- );
430
- }
431
- f = message.getDetailDescription();
432
- if (f.length > 0) {
433
- writer.writeString(
434
- 5,
435
- f
436
- );
437
- }
438
- f = message.getDescription();
439
- if (f.length > 0) {
440
- writer.writeString(
441
- 6,
442
- f
443
- );
444
- }
445
- f = message.getQuantity();
446
- if (f !== 0.0) {
447
- writer.writeFloat(
448
- 7,
449
- f
450
- );
451
- }
452
- f = message.getUnitOfMeasure();
453
- if (f.length > 0) {
454
- writer.writeString(
455
- 8,
456
- f
457
- );
458
- }
459
- f = message.getEstimatedUnitPrice();
460
- if (f !== 0.0) {
461
- writer.writeFloat(
462
- 9,
463
- f
464
- );
465
- }
466
- f = message.getDeliveryDate();
467
- if (f.length > 0) {
468
- writer.writeString(
469
- 10,
470
- f
471
- );
472
- }
473
- f = message.getPlannedDeliveryTime();
474
- if (f.length > 0) {
475
- writer.writeString(
476
- 11,
477
- f
478
- );
479
- }
480
- f = message.getCustomTransaction();
481
- if (f.length > 0) {
482
- writer.writeString(
483
- 12,
484
- f
485
- );
486
- }
487
- f = message.getItemTransactionDetailList();
488
- if (f.length > 0) {
489
- writer.writeRepeatedMessage(
490
- 13,
491
- f,
492
- proto.ItemTransactionDetail.serializeBinaryToWriter
493
- );
494
- }
495
- f = message.getItemTransactionPriceConditionList();
496
- if (f.length > 0) {
497
- writer.writeRepeatedMessage(
498
- 14,
499
- f,
500
- proto.ItemTransactionPriceCondition.serializeBinaryToWriter
501
- );
502
- }
503
- f = message.getReferencesId();
504
- if (f.length > 0) {
505
- writer.writeString(
506
- 15,
507
- f
508
- );
509
- }
510
- f = message.getCreatedAt();
511
- if (f.length > 0) {
512
- writer.writeString(
513
- 16,
514
- f
515
- );
516
- }
517
- f = message.getUpdatedAt();
518
- if (f.length > 0) {
519
- writer.writeString(
520
- 17,
521
- f
522
- );
523
- }
524
- f = message.getTransactionReferences();
525
- if (f.length > 0) {
526
- writer.writeString(
527
- 18,
528
- f
529
- );
530
- }
531
- f = message.getTypeTransaction();
532
- if (f.length > 0) {
533
- writer.writeString(
534
- 19,
535
- f
536
- );
537
- }
538
- f = message.getPreviousReferences();
539
- if (f.length > 0) {
540
- writer.writeString(
541
- 20,
542
- f
543
- );
544
- }
545
- f = message.getFilesList();
546
- if (f.length > 0) {
547
- writer.writeRepeatedMessage(
548
- 21,
549
- f,
550
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
551
- );
552
- }
553
- f = message.getPreviousTransactionReferences();
554
- if (f.length > 0) {
555
- writer.writeString(
556
- 22,
557
- f
558
- );
559
- }
560
- f = message.getCurrency();
561
- if (f.length > 0) {
562
- writer.writeString(
563
- 23,
564
- f
565
- );
566
- }
567
- f = message.getPurchaseRequisitionTransactionNumber();
568
- if (f.length > 0) {
569
- writer.writeString(
570
- 24,
571
- f
572
- );
573
- }
574
- f = message.getOriginalQuantity();
575
- if (f !== 0) {
576
- writer.writeInt64(
577
- 25,
578
- f
579
- );
580
- }
581
- f = message.getUsedQuantity();
582
- if (f !== 0) {
583
- writer.writeInt64(
584
- 26,
585
- f
586
- );
587
- }
588
- f = message.getRemainingQuantity();
589
- if (f !== 0) {
590
- writer.writeInt64(
591
- 27,
592
- f
593
- );
594
- }
595
- };
596
-
597
-
598
- /**
599
- * optional int64 id = 1;
600
- * @return {number}
601
- */
602
- proto.ItemTransaction.prototype.getId = function() {
603
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
604
- };
605
-
606
-
607
- /**
608
- * @param {number} value
609
- * @return {!proto.ItemTransaction} returns this
610
- */
611
- proto.ItemTransaction.prototype.setId = function(value) {
612
- return jspb.Message.setProto3IntField(this, 1, value);
613
- };
614
-
615
-
616
- /**
617
- * optional string acc_assigment = 2;
618
- * @return {string}
619
- */
620
- proto.ItemTransaction.prototype.getAccAssigment = function() {
621
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
622
- };
623
-
624
-
625
- /**
626
- * @param {string} value
627
- * @return {!proto.ItemTransaction} returns this
628
- */
629
- proto.ItemTransaction.prototype.setAccAssigment = function(value) {
630
- return jspb.Message.setProto3StringField(this, 2, value);
631
- };
632
-
633
-
634
- /**
635
- * optional string material_group = 3;
636
- * @return {string}
637
- */
638
- proto.ItemTransaction.prototype.getMaterialGroup = function() {
639
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
640
- };
641
-
642
-
643
- /**
644
- * @param {string} value
645
- * @return {!proto.ItemTransaction} returns this
646
- */
647
- proto.ItemTransaction.prototype.setMaterialGroup = function(value) {
648
- return jspb.Message.setProto3StringField(this, 3, value);
649
- };
650
-
651
-
652
- /**
653
- * optional string material_code = 4;
654
- * @return {string}
655
- */
656
- proto.ItemTransaction.prototype.getMaterialCode = function() {
657
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
658
- };
659
-
660
-
661
- /**
662
- * @param {string} value
663
- * @return {!proto.ItemTransaction} returns this
664
- */
665
- proto.ItemTransaction.prototype.setMaterialCode = function(value) {
666
- return jspb.Message.setProto3StringField(this, 4, value);
667
- };
668
-
669
-
670
- /**
671
- * optional string detail_description = 5;
672
- * @return {string}
673
- */
674
- proto.ItemTransaction.prototype.getDetailDescription = function() {
675
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
676
- };
677
-
678
-
679
- /**
680
- * @param {string} value
681
- * @return {!proto.ItemTransaction} returns this
682
- */
683
- proto.ItemTransaction.prototype.setDetailDescription = function(value) {
684
- return jspb.Message.setProto3StringField(this, 5, value);
685
- };
686
-
687
-
688
- /**
689
- * optional string description = 6;
690
- * @return {string}
691
- */
692
- proto.ItemTransaction.prototype.getDescription = function() {
693
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
694
- };
695
-
696
-
697
- /**
698
- * @param {string} value
699
- * @return {!proto.ItemTransaction} returns this
700
- */
701
- proto.ItemTransaction.prototype.setDescription = function(value) {
702
- return jspb.Message.setProto3StringField(this, 6, value);
703
- };
704
-
705
-
706
- /**
707
- * optional float quantity = 7;
708
- * @return {number}
709
- */
710
- proto.ItemTransaction.prototype.getQuantity = function() {
711
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
712
- };
713
-
714
-
715
- /**
716
- * @param {number} value
717
- * @return {!proto.ItemTransaction} returns this
718
- */
719
- proto.ItemTransaction.prototype.setQuantity = function(value) {
720
- return jspb.Message.setProto3FloatField(this, 7, value);
721
- };
722
-
723
-
724
- /**
725
- * optional string unit_of_measure = 8;
726
- * @return {string}
727
- */
728
- proto.ItemTransaction.prototype.getUnitOfMeasure = function() {
729
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
730
- };
731
-
732
-
733
- /**
734
- * @param {string} value
735
- * @return {!proto.ItemTransaction} returns this
736
- */
737
- proto.ItemTransaction.prototype.setUnitOfMeasure = function(value) {
738
- return jspb.Message.setProto3StringField(this, 8, value);
739
- };
740
-
741
-
742
- /**
743
- * optional float estimated_unit_price = 9;
744
- * @return {number}
745
- */
746
- proto.ItemTransaction.prototype.getEstimatedUnitPrice = function() {
747
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
748
- };
749
-
750
-
751
- /**
752
- * @param {number} value
753
- * @return {!proto.ItemTransaction} returns this
754
- */
755
- proto.ItemTransaction.prototype.setEstimatedUnitPrice = function(value) {
756
- return jspb.Message.setProto3FloatField(this, 9, value);
757
- };
758
-
759
-
760
- /**
761
- * optional string delivery_date = 10;
762
- * @return {string}
763
- */
764
- proto.ItemTransaction.prototype.getDeliveryDate = function() {
765
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
766
- };
767
-
768
-
769
- /**
770
- * @param {string} value
771
- * @return {!proto.ItemTransaction} returns this
772
- */
773
- proto.ItemTransaction.prototype.setDeliveryDate = function(value) {
774
- return jspb.Message.setProto3StringField(this, 10, value);
775
- };
776
-
777
-
778
- /**
779
- * optional string planned_delivery_time = 11;
780
- * @return {string}
781
- */
782
- proto.ItemTransaction.prototype.getPlannedDeliveryTime = function() {
783
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
784
- };
785
-
786
-
787
- /**
788
- * @param {string} value
789
- * @return {!proto.ItemTransaction} returns this
790
- */
791
- proto.ItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
792
- return jspb.Message.setProto3StringField(this, 11, value);
793
- };
794
-
795
-
796
- /**
797
- * optional string custom_transaction = 12;
798
- * @return {string}
799
- */
800
- proto.ItemTransaction.prototype.getCustomTransaction = function() {
801
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
802
- };
803
-
804
-
805
- /**
806
- * @param {string} value
807
- * @return {!proto.ItemTransaction} returns this
808
- */
809
- proto.ItemTransaction.prototype.setCustomTransaction = function(value) {
810
- return jspb.Message.setProto3StringField(this, 12, value);
811
- };
812
-
813
-
814
- /**
815
- * repeated ItemTransactionDetail item_transaction_detail = 13;
816
- * @return {!Array<!proto.ItemTransactionDetail>}
817
- */
818
- proto.ItemTransaction.prototype.getItemTransactionDetailList = function() {
819
- return /** @type{!Array<!proto.ItemTransactionDetail>} */ (
820
- jspb.Message.getRepeatedWrapperField(this, proto.ItemTransactionDetail, 13));
821
- };
822
-
823
-
824
- /**
825
- * @param {!Array<!proto.ItemTransactionDetail>} value
826
- * @return {!proto.ItemTransaction} returns this
827
- */
828
- proto.ItemTransaction.prototype.setItemTransactionDetailList = function(value) {
829
- return jspb.Message.setRepeatedWrapperField(this, 13, value);
830
- };
831
-
832
-
833
- /**
834
- * @param {!proto.ItemTransactionDetail=} opt_value
835
- * @param {number=} opt_index
836
- * @return {!proto.ItemTransactionDetail}
837
- */
838
- proto.ItemTransaction.prototype.addItemTransactionDetail = function(opt_value, opt_index) {
839
- return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.ItemTransactionDetail, opt_index);
840
- };
841
-
842
-
843
- /**
844
- * Clears the list making it empty but non-null.
845
- * @return {!proto.ItemTransaction} returns this
846
- */
847
- proto.ItemTransaction.prototype.clearItemTransactionDetailList = function() {
848
- return this.setItemTransactionDetailList([]);
849
- };
850
-
851
-
852
- /**
853
- * repeated ItemTransactionPriceCondition item_transaction_price_condition = 14;
854
- * @return {!Array<!proto.ItemTransactionPriceCondition>}
855
- */
856
- proto.ItemTransaction.prototype.getItemTransactionPriceConditionList = function() {
857
- return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
858
- jspb.Message.getRepeatedWrapperField(this, proto.ItemTransactionPriceCondition, 14));
859
- };
860
-
861
-
862
- /**
863
- * @param {!Array<!proto.ItemTransactionPriceCondition>} value
864
- * @return {!proto.ItemTransaction} returns this
865
- */
866
- proto.ItemTransaction.prototype.setItemTransactionPriceConditionList = function(value) {
867
- return jspb.Message.setRepeatedWrapperField(this, 14, value);
868
- };
869
-
870
-
871
- /**
872
- * @param {!proto.ItemTransactionPriceCondition=} opt_value
873
- * @param {number=} opt_index
874
- * @return {!proto.ItemTransactionPriceCondition}
875
- */
876
- proto.ItemTransaction.prototype.addItemTransactionPriceCondition = function(opt_value, opt_index) {
877
- return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.ItemTransactionPriceCondition, opt_index);
878
- };
879
-
880
-
881
- /**
882
- * Clears the list making it empty but non-null.
883
- * @return {!proto.ItemTransaction} returns this
884
- */
885
- proto.ItemTransaction.prototype.clearItemTransactionPriceConditionList = function() {
886
- return this.setItemTransactionPriceConditionList([]);
887
- };
888
-
889
-
890
- /**
891
- * optional string references_id = 15;
892
- * @return {string}
893
- */
894
- proto.ItemTransaction.prototype.getReferencesId = function() {
895
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
896
- };
897
-
898
-
899
- /**
900
- * @param {string} value
901
- * @return {!proto.ItemTransaction} returns this
902
- */
903
- proto.ItemTransaction.prototype.setReferencesId = function(value) {
904
- return jspb.Message.setProto3StringField(this, 15, value);
905
- };
906
-
907
-
908
- /**
909
- * optional string created_at = 16;
910
- * @return {string}
911
- */
912
- proto.ItemTransaction.prototype.getCreatedAt = function() {
913
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
914
- };
915
-
916
-
917
- /**
918
- * @param {string} value
919
- * @return {!proto.ItemTransaction} returns this
920
- */
921
- proto.ItemTransaction.prototype.setCreatedAt = function(value) {
922
- return jspb.Message.setProto3StringField(this, 16, value);
923
- };
924
-
925
-
926
- /**
927
- * optional string updated_at = 17;
928
- * @return {string}
929
- */
930
- proto.ItemTransaction.prototype.getUpdatedAt = function() {
931
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
932
- };
933
-
934
-
935
- /**
936
- * @param {string} value
937
- * @return {!proto.ItemTransaction} returns this
938
- */
939
- proto.ItemTransaction.prototype.setUpdatedAt = function(value) {
940
- return jspb.Message.setProto3StringField(this, 17, value);
941
- };
942
-
943
-
944
- /**
945
- * optional string transaction_references = 18;
946
- * @return {string}
947
- */
948
- proto.ItemTransaction.prototype.getTransactionReferences = function() {
949
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
950
- };
951
-
952
-
953
- /**
954
- * @param {string} value
955
- * @return {!proto.ItemTransaction} returns this
956
- */
957
- proto.ItemTransaction.prototype.setTransactionReferences = function(value) {
958
- return jspb.Message.setProto3StringField(this, 18, value);
959
- };
960
-
961
-
962
- /**
963
- * optional string type_transaction = 19;
964
- * @return {string}
965
- */
966
- proto.ItemTransaction.prototype.getTypeTransaction = function() {
967
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
968
- };
969
-
970
-
971
- /**
972
- * @param {string} value
973
- * @return {!proto.ItemTransaction} returns this
974
- */
975
- proto.ItemTransaction.prototype.setTypeTransaction = function(value) {
976
- return jspb.Message.setProto3StringField(this, 19, value);
977
- };
978
-
979
-
980
- /**
981
- * optional string previous_references = 20;
982
- * @return {string}
983
- */
984
- proto.ItemTransaction.prototype.getPreviousReferences = function() {
985
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
986
- };
987
-
988
-
989
- /**
990
- * @param {string} value
991
- * @return {!proto.ItemTransaction} returns this
992
- */
993
- proto.ItemTransaction.prototype.setPreviousReferences = function(value) {
994
- return jspb.Message.setProto3StringField(this, 20, value);
995
- };
996
-
997
-
998
- /**
999
- * repeated FileUploadReferencesReq files = 21;
1000
- * @return {!Array<!proto.FileUploadReferencesReq>}
1001
- */
1002
- proto.ItemTransaction.prototype.getFilesList = function() {
1003
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1004
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 21));
1005
- };
1006
-
1007
-
1008
- /**
1009
- * @param {!Array<!proto.FileUploadReferencesReq>} value
1010
- * @return {!proto.ItemTransaction} returns this
1011
- */
1012
- proto.ItemTransaction.prototype.setFilesList = function(value) {
1013
- return jspb.Message.setRepeatedWrapperField(this, 21, value);
1014
- };
1015
-
1016
-
1017
- /**
1018
- * @param {!proto.FileUploadReferencesReq=} opt_value
1019
- * @param {number=} opt_index
1020
- * @return {!proto.FileUploadReferencesReq}
1021
- */
1022
- proto.ItemTransaction.prototype.addFiles = function(opt_value, opt_index) {
1023
- return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.FileUploadReferencesReq, opt_index);
1024
- };
1025
-
1026
-
1027
- /**
1028
- * Clears the list making it empty but non-null.
1029
- * @return {!proto.ItemTransaction} returns this
1030
- */
1031
- proto.ItemTransaction.prototype.clearFilesList = function() {
1032
- return this.setFilesList([]);
1033
- };
1034
-
1035
-
1036
- /**
1037
- * optional string previous_transaction_references = 22;
1038
- * @return {string}
1039
- */
1040
- proto.ItemTransaction.prototype.getPreviousTransactionReferences = function() {
1041
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
1042
- };
1043
-
1044
-
1045
- /**
1046
- * @param {string} value
1047
- * @return {!proto.ItemTransaction} returns this
1048
- */
1049
- proto.ItemTransaction.prototype.setPreviousTransactionReferences = function(value) {
1050
- return jspb.Message.setProto3StringField(this, 22, value);
1051
- };
1052
-
1053
-
1054
- /**
1055
- * optional string currency = 23;
1056
- * @return {string}
1057
- */
1058
- proto.ItemTransaction.prototype.getCurrency = function() {
1059
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
1060
- };
1061
-
1062
-
1063
- /**
1064
- * @param {string} value
1065
- * @return {!proto.ItemTransaction} returns this
1066
- */
1067
- proto.ItemTransaction.prototype.setCurrency = function(value) {
1068
- return jspb.Message.setProto3StringField(this, 23, value);
1069
- };
1070
-
1071
-
1072
- /**
1073
- * optional string purchase_requisition_transaction_number = 24;
1074
- * @return {string}
1075
- */
1076
- proto.ItemTransaction.prototype.getPurchaseRequisitionTransactionNumber = function() {
1077
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
1078
- };
1079
-
1080
-
1081
- /**
1082
- * @param {string} value
1083
- * @return {!proto.ItemTransaction} returns this
1084
- */
1085
- proto.ItemTransaction.prototype.setPurchaseRequisitionTransactionNumber = function(value) {
1086
- return jspb.Message.setProto3StringField(this, 24, value);
1087
- };
1088
-
1089
-
1090
- /**
1091
- * optional int64 original_quantity = 25;
1092
- * @return {number}
1093
- */
1094
- proto.ItemTransaction.prototype.getOriginalQuantity = function() {
1095
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0));
1096
- };
1097
-
1098
-
1099
- /**
1100
- * @param {number} value
1101
- * @return {!proto.ItemTransaction} returns this
1102
- */
1103
- proto.ItemTransaction.prototype.setOriginalQuantity = function(value) {
1104
- return jspb.Message.setProto3IntField(this, 25, value);
1105
- };
1106
-
1107
-
1108
- /**
1109
- * optional int64 used_quantity = 26;
1110
- * @return {number}
1111
- */
1112
- proto.ItemTransaction.prototype.getUsedQuantity = function() {
1113
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0));
1114
- };
1115
-
1116
-
1117
- /**
1118
- * @param {number} value
1119
- * @return {!proto.ItemTransaction} returns this
1120
- */
1121
- proto.ItemTransaction.prototype.setUsedQuantity = function(value) {
1122
- return jspb.Message.setProto3IntField(this, 26, value);
1123
- };
1124
-
1125
-
1126
- /**
1127
- * optional int64 remaining_quantity = 27;
1128
- * @return {number}
1129
- */
1130
- proto.ItemTransaction.prototype.getRemainingQuantity = function() {
1131
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0));
1132
- };
1133
-
1134
-
1135
- /**
1136
- * @param {number} value
1137
- * @return {!proto.ItemTransaction} returns this
1138
- */
1139
- proto.ItemTransaction.prototype.setRemainingQuantity = function(value) {
1140
- return jspb.Message.setProto3IntField(this, 27, value);
1141
- };
1142
-
1143
-
1144
-
1145
- /**
1146
- * List of repeated fields within this message type.
1147
- * @private {!Array<number>}
1148
- * @const
1149
- */
1150
- proto.ItemTransactionDetail.repeatedFields_ = [22];
1151
-
1152
-
1153
-
1154
- if (jspb.Message.GENERATE_TO_OBJECT) {
1155
- /**
1156
- * Creates an object representation of this proto.
1157
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1158
- * Optional fields that are not set will be set to undefined.
1159
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1160
- * For the list of reserved names please see:
1161
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1162
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1163
- * JSPB instance for transitional soy proto support:
1164
- * http://goto/soy-param-migration
1165
- * @return {!Object}
1166
- */
1167
- proto.ItemTransactionDetail.prototype.toObject = function(opt_includeInstance) {
1168
- return proto.ItemTransactionDetail.toObject(opt_includeInstance, this);
1169
- };
1170
-
1171
-
1172
- /**
1173
- * Static version of the {@see toObject} method.
1174
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1175
- * the JSPB instance for transitional soy proto support:
1176
- * http://goto/soy-param-migration
1177
- * @param {!proto.ItemTransactionDetail} msg The msg instance to transform.
1178
- * @return {!Object}
1179
- * @suppress {unusedLocalVariables} f is only used for nested messages
1180
- */
1181
- proto.ItemTransactionDetail.toObject = function(includeInstance, msg) {
1182
- var f, obj = {
1183
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1184
- itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
1185
- glAccount: jspb.Message.getFieldWithDefault(msg, 3, ""),
1186
- glAccountDescription: jspb.Message.getFieldWithDefault(msg, 4, ""),
1187
- unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 5, ""),
1188
- valuationPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
1189
- requisitioner: jspb.Message.getFieldWithDefault(msg, 7, ""),
1190
- customTransaction: jspb.Message.getFieldWithDefault(msg, 8, ""),
1191
- orderNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
1192
- orderDescription: jspb.Message.getFieldWithDefault(msg, 10, ""),
1193
- materialCode: jspb.Message.getFieldWithDefault(msg, 11, ""),
1194
- quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
1195
- distribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0),
1196
- assetNo: jspb.Message.getFieldWithDefault(msg, 14, ""),
1197
- referencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
1198
- createdAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
1199
- updatedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
1200
- costCenter: jspb.Message.getFieldWithDefault(msg, 18, ""),
1201
- serviceNo: jspb.Message.getFieldWithDefault(msg, 19, ""),
1202
- serviceDescription: jspb.Message.getFieldWithDefault(msg, 20, ""),
1203
- amountPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 21, 0.0),
1204
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
1205
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
1206
- };
1207
-
1208
- if (includeInstance) {
1209
- obj.$jspbMessageInstance = msg;
1210
- }
1211
- return obj;
1212
- };
1213
- }
1214
-
1215
-
1216
- /**
1217
- * Deserializes binary data (in protobuf wire format).
1218
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1219
- * @return {!proto.ItemTransactionDetail}
1220
- */
1221
- proto.ItemTransactionDetail.deserializeBinary = function(bytes) {
1222
- var reader = new jspb.BinaryReader(bytes);
1223
- var msg = new proto.ItemTransactionDetail;
1224
- return proto.ItemTransactionDetail.deserializeBinaryFromReader(msg, reader);
1225
- };
1226
-
1227
-
1228
- /**
1229
- * Deserializes binary data (in protobuf wire format) from the
1230
- * given reader into the given message object.
1231
- * @param {!proto.ItemTransactionDetail} msg The message object to deserialize into.
1232
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1233
- * @return {!proto.ItemTransactionDetail}
1234
- */
1235
- proto.ItemTransactionDetail.deserializeBinaryFromReader = function(msg, reader) {
1236
- while (reader.nextField()) {
1237
- if (reader.isEndGroup()) {
1238
- break;
1239
- }
1240
- var field = reader.getFieldNumber();
1241
- switch (field) {
1242
- case 1:
1243
- var value = /** @type {number} */ (reader.readInt64());
1244
- msg.setId(value);
1245
- break;
1246
- case 2:
1247
- var value = /** @type {string} */ (reader.readString());
1248
- msg.setItemTransactionRef(value);
1249
- break;
1250
- case 3:
1251
- var value = /** @type {string} */ (reader.readString());
1252
- msg.setGlAccount(value);
1253
- break;
1254
- case 4:
1255
- var value = /** @type {string} */ (reader.readString());
1256
- msg.setGlAccountDescription(value);
1257
- break;
1258
- case 5:
1259
- var value = /** @type {string} */ (reader.readString());
1260
- msg.setUnitOfMeasure(value);
1261
- break;
1262
- case 6:
1263
- var value = /** @type {number} */ (reader.readFloat());
1264
- msg.setValuationPrice(value);
1265
- break;
1266
- case 7:
1267
- var value = /** @type {string} */ (reader.readString());
1268
- msg.setRequisitioner(value);
1269
- break;
1270
- case 8:
1271
- var value = /** @type {string} */ (reader.readString());
1272
- msg.setCustomTransaction(value);
1273
- break;
1274
- case 9:
1275
- var value = /** @type {string} */ (reader.readString());
1276
- msg.setOrderNumber(value);
1277
- break;
1278
- case 10:
1279
- var value = /** @type {string} */ (reader.readString());
1280
- msg.setOrderDescription(value);
1281
- break;
1282
- case 11:
1283
- var value = /** @type {string} */ (reader.readString());
1284
- msg.setMaterialCode(value);
1285
- break;
1286
- case 12:
1287
- var value = /** @type {number} */ (reader.readFloat());
1288
- msg.setQuantity(value);
1289
- break;
1290
- case 13:
1291
- var value = /** @type {number} */ (reader.readFloat());
1292
- msg.setDistribution(value);
1293
- break;
1294
- case 14:
1295
- var value = /** @type {string} */ (reader.readString());
1296
- msg.setAssetNo(value);
1297
- break;
1298
- case 15:
1299
- var value = /** @type {string} */ (reader.readString());
1300
- msg.setReferencesId(value);
1301
- break;
1302
- case 16:
1303
- var value = /** @type {string} */ (reader.readString());
1304
- msg.setCreatedAt(value);
1305
- break;
1306
- case 17:
1307
- var value = /** @type {string} */ (reader.readString());
1308
- msg.setUpdatedAt(value);
1309
- break;
1310
- case 18:
1311
- var value = /** @type {string} */ (reader.readString());
1312
- msg.setCostCenter(value);
1313
- break;
1314
- case 19:
1315
- var value = /** @type {string} */ (reader.readString());
1316
- msg.setServiceNo(value);
1317
- break;
1318
- case 20:
1319
- var value = /** @type {string} */ (reader.readString());
1320
- msg.setServiceDescription(value);
1321
- break;
1322
- case 21:
1323
- var value = /** @type {number} */ (reader.readFloat());
1324
- msg.setAmountPrice(value);
1325
- break;
1326
- case 22:
1327
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1328
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1329
- msg.addFiles(value);
1330
- break;
1331
- default:
1332
- reader.skipField();
1333
- break;
1334
- }
1335
- }
1336
- return msg;
1337
- };
1338
-
1339
-
1340
- /**
1341
- * Serializes the message to binary data (in protobuf wire format).
1342
- * @return {!Uint8Array}
1343
- */
1344
- proto.ItemTransactionDetail.prototype.serializeBinary = function() {
1345
- var writer = new jspb.BinaryWriter();
1346
- proto.ItemTransactionDetail.serializeBinaryToWriter(this, writer);
1347
- return writer.getResultBuffer();
1348
- };
1349
-
1350
-
1351
- /**
1352
- * Serializes the given message to binary data (in protobuf wire
1353
- * format), writing to the given BinaryWriter.
1354
- * @param {!proto.ItemTransactionDetail} message
1355
- * @param {!jspb.BinaryWriter} writer
1356
- * @suppress {unusedLocalVariables} f is only used for nested messages
1357
- */
1358
- proto.ItemTransactionDetail.serializeBinaryToWriter = function(message, writer) {
1359
- var f = undefined;
1360
- f = message.getId();
1361
- if (f !== 0) {
1362
- writer.writeInt64(
1363
- 1,
1364
- f
1365
- );
1366
- }
1367
- f = message.getItemTransactionRef();
1368
- if (f.length > 0) {
1369
- writer.writeString(
1370
- 2,
1371
- f
1372
- );
1373
- }
1374
- f = message.getGlAccount();
1375
- if (f.length > 0) {
1376
- writer.writeString(
1377
- 3,
1378
- f
1379
- );
1380
- }
1381
- f = message.getGlAccountDescription();
1382
- if (f.length > 0) {
1383
- writer.writeString(
1384
- 4,
1385
- f
1386
- );
1387
- }
1388
- f = message.getUnitOfMeasure();
1389
- if (f.length > 0) {
1390
- writer.writeString(
1391
- 5,
1392
- f
1393
- );
1394
- }
1395
- f = message.getValuationPrice();
1396
- if (f !== 0.0) {
1397
- writer.writeFloat(
1398
- 6,
1399
- f
1400
- );
1401
- }
1402
- f = message.getRequisitioner();
1403
- if (f.length > 0) {
1404
- writer.writeString(
1405
- 7,
1406
- f
1407
- );
1408
- }
1409
- f = message.getCustomTransaction();
1410
- if (f.length > 0) {
1411
- writer.writeString(
1412
- 8,
1413
- f
1414
- );
1415
- }
1416
- f = message.getOrderNumber();
1417
- if (f.length > 0) {
1418
- writer.writeString(
1419
- 9,
1420
- f
1421
- );
1422
- }
1423
- f = message.getOrderDescription();
1424
- if (f.length > 0) {
1425
- writer.writeString(
1426
- 10,
1427
- f
1428
- );
1429
- }
1430
- f = message.getMaterialCode();
1431
- if (f.length > 0) {
1432
- writer.writeString(
1433
- 11,
1434
- f
1435
- );
1436
- }
1437
- f = message.getQuantity();
1438
- if (f !== 0.0) {
1439
- writer.writeFloat(
1440
- 12,
1441
- f
1442
- );
1443
- }
1444
- f = message.getDistribution();
1445
- if (f !== 0.0) {
1446
- writer.writeFloat(
1447
- 13,
1448
- f
1449
- );
1450
- }
1451
- f = message.getAssetNo();
1452
- if (f.length > 0) {
1453
- writer.writeString(
1454
- 14,
1455
- f
1456
- );
1457
- }
1458
- f = message.getReferencesId();
1459
- if (f.length > 0) {
1460
- writer.writeString(
1461
- 15,
1462
- f
1463
- );
1464
- }
1465
- f = message.getCreatedAt();
1466
- if (f.length > 0) {
1467
- writer.writeString(
1468
- 16,
1469
- f
1470
- );
1471
- }
1472
- f = message.getUpdatedAt();
1473
- if (f.length > 0) {
1474
- writer.writeString(
1475
- 17,
1476
- f
1477
- );
1478
- }
1479
- f = message.getCostCenter();
1480
- if (f.length > 0) {
1481
- writer.writeString(
1482
- 18,
1483
- f
1484
- );
1485
- }
1486
- f = message.getServiceNo();
1487
- if (f.length > 0) {
1488
- writer.writeString(
1489
- 19,
1490
- f
1491
- );
1492
- }
1493
- f = message.getServiceDescription();
1494
- if (f.length > 0) {
1495
- writer.writeString(
1496
- 20,
1497
- f
1498
- );
1499
- }
1500
- f = message.getAmountPrice();
1501
- if (f !== 0.0) {
1502
- writer.writeFloat(
1503
- 21,
1504
- f
1505
- );
1506
- }
1507
- f = message.getFilesList();
1508
- if (f.length > 0) {
1509
- writer.writeRepeatedMessage(
1510
- 22,
1511
- f,
1512
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1513
- );
1514
- }
1515
- };
1516
-
1517
-
1518
- /**
1519
- * optional int64 id = 1;
1520
- * @return {number}
1521
- */
1522
- proto.ItemTransactionDetail.prototype.getId = function() {
1523
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1524
- };
1525
-
1526
-
1527
- /**
1528
- * @param {number} value
1529
- * @return {!proto.ItemTransactionDetail} returns this
1530
- */
1531
- proto.ItemTransactionDetail.prototype.setId = function(value) {
1532
- return jspb.Message.setProto3IntField(this, 1, value);
1533
- };
1534
-
1535
-
1536
- /**
1537
- * optional string item_transaction_ref = 2;
1538
- * @return {string}
1539
- */
1540
- proto.ItemTransactionDetail.prototype.getItemTransactionRef = function() {
1541
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1542
- };
1543
-
1544
-
1545
- /**
1546
- * @param {string} value
1547
- * @return {!proto.ItemTransactionDetail} returns this
1548
- */
1549
- proto.ItemTransactionDetail.prototype.setItemTransactionRef = function(value) {
1550
- return jspb.Message.setProto3StringField(this, 2, value);
1551
- };
1552
-
1553
-
1554
- /**
1555
- * optional string gl_account = 3;
1556
- * @return {string}
1557
- */
1558
- proto.ItemTransactionDetail.prototype.getGlAccount = function() {
1559
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1560
- };
1561
-
1562
-
1563
- /**
1564
- * @param {string} value
1565
- * @return {!proto.ItemTransactionDetail} returns this
1566
- */
1567
- proto.ItemTransactionDetail.prototype.setGlAccount = function(value) {
1568
- return jspb.Message.setProto3StringField(this, 3, value);
1569
- };
1570
-
1571
-
1572
- /**
1573
- * optional string gl_account_description = 4;
1574
- * @return {string}
1575
- */
1576
- proto.ItemTransactionDetail.prototype.getGlAccountDescription = function() {
1577
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1578
- };
1579
-
1580
-
1581
- /**
1582
- * @param {string} value
1583
- * @return {!proto.ItemTransactionDetail} returns this
1584
- */
1585
- proto.ItemTransactionDetail.prototype.setGlAccountDescription = function(value) {
1586
- return jspb.Message.setProto3StringField(this, 4, value);
1587
- };
1588
-
1589
-
1590
- /**
1591
- * optional string unit_of_measure = 5;
1592
- * @return {string}
1593
- */
1594
- proto.ItemTransactionDetail.prototype.getUnitOfMeasure = function() {
1595
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1596
- };
1597
-
1598
-
1599
- /**
1600
- * @param {string} value
1601
- * @return {!proto.ItemTransactionDetail} returns this
1602
- */
1603
- proto.ItemTransactionDetail.prototype.setUnitOfMeasure = function(value) {
1604
- return jspb.Message.setProto3StringField(this, 5, value);
1605
- };
1606
-
1607
-
1608
- /**
1609
- * optional float valuation_price = 6;
1610
- * @return {number}
1611
- */
1612
- proto.ItemTransactionDetail.prototype.getValuationPrice = function() {
1613
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
1614
- };
1615
-
1616
-
1617
- /**
1618
- * @param {number} value
1619
- * @return {!proto.ItemTransactionDetail} returns this
1620
- */
1621
- proto.ItemTransactionDetail.prototype.setValuationPrice = function(value) {
1622
- return jspb.Message.setProto3FloatField(this, 6, value);
1623
- };
1624
-
1625
-
1626
- /**
1627
- * optional string requisitioner = 7;
1628
- * @return {string}
1629
- */
1630
- proto.ItemTransactionDetail.prototype.getRequisitioner = function() {
1631
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1632
- };
1633
-
1634
-
1635
- /**
1636
- * @param {string} value
1637
- * @return {!proto.ItemTransactionDetail} returns this
1638
- */
1639
- proto.ItemTransactionDetail.prototype.setRequisitioner = function(value) {
1640
- return jspb.Message.setProto3StringField(this, 7, value);
1641
- };
1642
-
1643
-
1644
- /**
1645
- * optional string custom_transaction = 8;
1646
- * @return {string}
1647
- */
1648
- proto.ItemTransactionDetail.prototype.getCustomTransaction = function() {
1649
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1650
- };
1651
-
1652
-
1653
- /**
1654
- * @param {string} value
1655
- * @return {!proto.ItemTransactionDetail} returns this
1656
- */
1657
- proto.ItemTransactionDetail.prototype.setCustomTransaction = function(value) {
1658
- return jspb.Message.setProto3StringField(this, 8, value);
1659
- };
1660
-
1661
-
1662
- /**
1663
- * optional string order_number = 9;
1664
- * @return {string}
1665
- */
1666
- proto.ItemTransactionDetail.prototype.getOrderNumber = function() {
1667
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1668
- };
1669
-
1670
-
1671
- /**
1672
- * @param {string} value
1673
- * @return {!proto.ItemTransactionDetail} returns this
1674
- */
1675
- proto.ItemTransactionDetail.prototype.setOrderNumber = function(value) {
1676
- return jspb.Message.setProto3StringField(this, 9, value);
1677
- };
1678
-
1679
-
1680
- /**
1681
- * optional string order_description = 10;
1682
- * @return {string}
1683
- */
1684
- proto.ItemTransactionDetail.prototype.getOrderDescription = function() {
1685
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1686
- };
1687
-
1688
-
1689
- /**
1690
- * @param {string} value
1691
- * @return {!proto.ItemTransactionDetail} returns this
1692
- */
1693
- proto.ItemTransactionDetail.prototype.setOrderDescription = function(value) {
1694
- return jspb.Message.setProto3StringField(this, 10, value);
1695
- };
1696
-
1697
-
1698
- /**
1699
- * optional string material_code = 11;
1700
- * @return {string}
1701
- */
1702
- proto.ItemTransactionDetail.prototype.getMaterialCode = function() {
1703
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1704
- };
1705
-
1706
-
1707
- /**
1708
- * @param {string} value
1709
- * @return {!proto.ItemTransactionDetail} returns this
1710
- */
1711
- proto.ItemTransactionDetail.prototype.setMaterialCode = function(value) {
1712
- return jspb.Message.setProto3StringField(this, 11, value);
1713
- };
1714
-
1715
-
1716
- /**
1717
- * optional float quantity = 12;
1718
- * @return {number}
1719
- */
1720
- proto.ItemTransactionDetail.prototype.getQuantity = function() {
1721
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
1722
- };
1723
-
1724
-
1725
- /**
1726
- * @param {number} value
1727
- * @return {!proto.ItemTransactionDetail} returns this
1728
- */
1729
- proto.ItemTransactionDetail.prototype.setQuantity = function(value) {
1730
- return jspb.Message.setProto3FloatField(this, 12, value);
1731
- };
1732
-
1733
-
1734
- /**
1735
- * optional float distribution = 13;
1736
- * @return {number}
1737
- */
1738
- proto.ItemTransactionDetail.prototype.getDistribution = function() {
1739
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
1740
- };
1741
-
1742
-
1743
- /**
1744
- * @param {number} value
1745
- * @return {!proto.ItemTransactionDetail} returns this
1746
- */
1747
- proto.ItemTransactionDetail.prototype.setDistribution = function(value) {
1748
- return jspb.Message.setProto3FloatField(this, 13, value);
1749
- };
1750
-
1751
-
1752
- /**
1753
- * optional string asset_no = 14;
1754
- * @return {string}
1755
- */
1756
- proto.ItemTransactionDetail.prototype.getAssetNo = function() {
1757
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1758
- };
1759
-
1760
-
1761
- /**
1762
- * @param {string} value
1763
- * @return {!proto.ItemTransactionDetail} returns this
1764
- */
1765
- proto.ItemTransactionDetail.prototype.setAssetNo = function(value) {
1766
- return jspb.Message.setProto3StringField(this, 14, value);
1767
- };
1768
-
1769
-
1770
- /**
1771
- * optional string references_id = 15;
1772
- * @return {string}
1773
- */
1774
- proto.ItemTransactionDetail.prototype.getReferencesId = function() {
1775
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1776
- };
1777
-
1778
-
1779
- /**
1780
- * @param {string} value
1781
- * @return {!proto.ItemTransactionDetail} returns this
1782
- */
1783
- proto.ItemTransactionDetail.prototype.setReferencesId = function(value) {
1784
- return jspb.Message.setProto3StringField(this, 15, value);
1785
- };
1786
-
1787
-
1788
- /**
1789
- * optional string created_at = 16;
1790
- * @return {string}
1791
- */
1792
- proto.ItemTransactionDetail.prototype.getCreatedAt = function() {
1793
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1794
- };
1795
-
1796
-
1797
- /**
1798
- * @param {string} value
1799
- * @return {!proto.ItemTransactionDetail} returns this
1800
- */
1801
- proto.ItemTransactionDetail.prototype.setCreatedAt = function(value) {
1802
- return jspb.Message.setProto3StringField(this, 16, value);
1803
- };
1804
-
1805
-
1806
- /**
1807
- * optional string updated_at = 17;
1808
- * @return {string}
1809
- */
1810
- proto.ItemTransactionDetail.prototype.getUpdatedAt = function() {
1811
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
1812
- };
1813
-
1814
-
1815
- /**
1816
- * @param {string} value
1817
- * @return {!proto.ItemTransactionDetail} returns this
1818
- */
1819
- proto.ItemTransactionDetail.prototype.setUpdatedAt = function(value) {
1820
- return jspb.Message.setProto3StringField(this, 17, value);
1821
- };
1822
-
1823
-
1824
- /**
1825
- * optional string cost_center = 18;
1826
- * @return {string}
1827
- */
1828
- proto.ItemTransactionDetail.prototype.getCostCenter = function() {
1829
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1830
- };
1831
-
1832
-
1833
- /**
1834
- * @param {string} value
1835
- * @return {!proto.ItemTransactionDetail} returns this
1836
- */
1837
- proto.ItemTransactionDetail.prototype.setCostCenter = function(value) {
1838
- return jspb.Message.setProto3StringField(this, 18, value);
1839
- };
1840
-
1841
-
1842
- /**
1843
- * optional string service_no = 19;
1844
- * @return {string}
1845
- */
1846
- proto.ItemTransactionDetail.prototype.getServiceNo = function() {
1847
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1848
- };
1849
-
1850
-
1851
- /**
1852
- * @param {string} value
1853
- * @return {!proto.ItemTransactionDetail} returns this
1854
- */
1855
- proto.ItemTransactionDetail.prototype.setServiceNo = function(value) {
1856
- return jspb.Message.setProto3StringField(this, 19, value);
1857
- };
1858
-
1859
-
1860
- /**
1861
- * optional string service_description = 20;
1862
- * @return {string}
1863
- */
1864
- proto.ItemTransactionDetail.prototype.getServiceDescription = function() {
1865
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1866
- };
1867
-
1868
-
1869
- /**
1870
- * @param {string} value
1871
- * @return {!proto.ItemTransactionDetail} returns this
1872
- */
1873
- proto.ItemTransactionDetail.prototype.setServiceDescription = function(value) {
1874
- return jspb.Message.setProto3StringField(this, 20, value);
1875
- };
1876
-
1877
-
1878
- /**
1879
- * optional float amount_price = 21;
1880
- * @return {number}
1881
- */
1882
- proto.ItemTransactionDetail.prototype.getAmountPrice = function() {
1883
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 21, 0.0));
1884
- };
1885
-
1886
-
1887
- /**
1888
- * @param {number} value
1889
- * @return {!proto.ItemTransactionDetail} returns this
1890
- */
1891
- proto.ItemTransactionDetail.prototype.setAmountPrice = function(value) {
1892
- return jspb.Message.setProto3FloatField(this, 21, value);
1893
- };
1894
-
1895
-
1896
- /**
1897
- * repeated FileUploadReferencesReq files = 22;
1898
- * @return {!Array<!proto.FileUploadReferencesReq>}
1899
- */
1900
- proto.ItemTransactionDetail.prototype.getFilesList = function() {
1901
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1902
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 22));
1903
- };
1904
-
1905
-
1906
- /**
1907
- * @param {!Array<!proto.FileUploadReferencesReq>} value
1908
- * @return {!proto.ItemTransactionDetail} returns this
1909
- */
1910
- proto.ItemTransactionDetail.prototype.setFilesList = function(value) {
1911
- return jspb.Message.setRepeatedWrapperField(this, 22, value);
1912
- };
1913
-
1914
-
1915
- /**
1916
- * @param {!proto.FileUploadReferencesReq=} opt_value
1917
- * @param {number=} opt_index
1918
- * @return {!proto.FileUploadReferencesReq}
1919
- */
1920
- proto.ItemTransactionDetail.prototype.addFiles = function(opt_value, opt_index) {
1921
- return jspb.Message.addToRepeatedWrapperField(this, 22, opt_value, proto.FileUploadReferencesReq, opt_index);
1922
- };
1923
-
1924
-
1925
- /**
1926
- * Clears the list making it empty but non-null.
1927
- * @return {!proto.ItemTransactionDetail} returns this
1928
- */
1929
- proto.ItemTransactionDetail.prototype.clearFilesList = function() {
1930
- return this.setFilesList([]);
1931
- };
1932
-
1933
-
1934
-
1935
-
1936
-
1937
- if (jspb.Message.GENERATE_TO_OBJECT) {
1938
- /**
1939
- * Creates an object representation of this proto.
1940
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1941
- * Optional fields that are not set will be set to undefined.
1942
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1943
- * For the list of reserved names please see:
1944
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1945
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1946
- * JSPB instance for transitional soy proto support:
1947
- * http://goto/soy-param-migration
1948
- * @return {!Object}
1949
- */
1950
- proto.ItemTransactionPriceCondition.prototype.toObject = function(opt_includeInstance) {
1951
- return proto.ItemTransactionPriceCondition.toObject(opt_includeInstance, this);
1952
- };
1953
-
1954
-
1955
- /**
1956
- * Static version of the {@see toObject} method.
1957
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1958
- * the JSPB instance for transitional soy proto support:
1959
- * http://goto/soy-param-migration
1960
- * @param {!proto.ItemTransactionPriceCondition} msg The msg instance to transform.
1961
- * @return {!Object}
1962
- * @suppress {unusedLocalVariables} f is only used for nested messages
1963
- */
1964
- proto.ItemTransactionPriceCondition.toObject = function(includeInstance, msg) {
1965
- var f, obj = {
1966
- id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1967
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
1968
- operator: jspb.Message.getFieldWithDefault(msg, 3, ""),
1969
- divide: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
1970
- type: jspb.Message.getFieldWithDefault(msg, 5, ""),
1971
- name: jspb.Message.getFieldWithDefault(msg, 6, ""),
1972
- itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 7, ""),
1973
- referencesId: jspb.Message.getFieldWithDefault(msg, 8, ""),
1974
- createdAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
1975
- updatedAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
1976
- code: jspb.Message.getFieldWithDefault(msg, 11, ""),
1977
- isGeneral: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
1978
- };
1979
-
1980
- if (includeInstance) {
1981
- obj.$jspbMessageInstance = msg;
1982
- }
1983
- return obj;
1984
- };
1985
- }
1986
-
1987
-
1988
- /**
1989
- * Deserializes binary data (in protobuf wire format).
1990
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1991
- * @return {!proto.ItemTransactionPriceCondition}
1992
- */
1993
- proto.ItemTransactionPriceCondition.deserializeBinary = function(bytes) {
1994
- var reader = new jspb.BinaryReader(bytes);
1995
- var msg = new proto.ItemTransactionPriceCondition;
1996
- return proto.ItemTransactionPriceCondition.deserializeBinaryFromReader(msg, reader);
1997
- };
1998
-
1999
-
2000
- /**
2001
- * Deserializes binary data (in protobuf wire format) from the
2002
- * given reader into the given message object.
2003
- * @param {!proto.ItemTransactionPriceCondition} msg The message object to deserialize into.
2004
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2005
- * @return {!proto.ItemTransactionPriceCondition}
2006
- */
2007
- proto.ItemTransactionPriceCondition.deserializeBinaryFromReader = function(msg, reader) {
2008
- while (reader.nextField()) {
2009
- if (reader.isEndGroup()) {
2010
- break;
2011
- }
2012
- var field = reader.getFieldNumber();
2013
- switch (field) {
2014
- case 1:
2015
- var value = /** @type {number} */ (reader.readInt64());
2016
- msg.setId(value);
2017
- break;
2018
- case 2:
2019
- var value = /** @type {number} */ (reader.readFloat());
2020
- msg.setAmount(value);
2021
- break;
2022
- case 3:
2023
- var value = /** @type {string} */ (reader.readString());
2024
- msg.setOperator(value);
2025
- break;
2026
- case 4:
2027
- var value = /** @type {number} */ (reader.readFloat());
2028
- msg.setDivide(value);
2029
- break;
2030
- case 5:
2031
- var value = /** @type {string} */ (reader.readString());
2032
- msg.setType(value);
2033
- break;
2034
- case 6:
2035
- var value = /** @type {string} */ (reader.readString());
2036
- msg.setName(value);
2037
- break;
2038
- case 7:
2039
- var value = /** @type {string} */ (reader.readString());
2040
- msg.setItemTransactionRef(value);
2041
- break;
2042
- case 8:
2043
- var value = /** @type {string} */ (reader.readString());
2044
- msg.setReferencesId(value);
2045
- break;
2046
- case 9:
2047
- var value = /** @type {string} */ (reader.readString());
2048
- msg.setCreatedAt(value);
2049
- break;
2050
- case 10:
2051
- var value = /** @type {string} */ (reader.readString());
2052
- msg.setUpdatedAt(value);
2053
- break;
2054
- case 11:
2055
- var value = /** @type {string} */ (reader.readString());
2056
- msg.setCode(value);
2057
- break;
2058
- case 12:
2059
- var value = /** @type {boolean} */ (reader.readBool());
2060
- msg.setIsGeneral(value);
2061
- break;
2062
- default:
2063
- reader.skipField();
2064
- break;
2065
- }
2066
- }
2067
- return msg;
2068
- };
2069
-
2070
-
2071
- /**
2072
- * Serializes the message to binary data (in protobuf wire format).
2073
- * @return {!Uint8Array}
2074
- */
2075
- proto.ItemTransactionPriceCondition.prototype.serializeBinary = function() {
2076
- var writer = new jspb.BinaryWriter();
2077
- proto.ItemTransactionPriceCondition.serializeBinaryToWriter(this, writer);
2078
- return writer.getResultBuffer();
2079
- };
2080
-
2081
-
2082
- /**
2083
- * Serializes the given message to binary data (in protobuf wire
2084
- * format), writing to the given BinaryWriter.
2085
- * @param {!proto.ItemTransactionPriceCondition} message
2086
- * @param {!jspb.BinaryWriter} writer
2087
- * @suppress {unusedLocalVariables} f is only used for nested messages
2088
- */
2089
- proto.ItemTransactionPriceCondition.serializeBinaryToWriter = function(message, writer) {
2090
- var f = undefined;
2091
- f = message.getId();
2092
- if (f !== 0) {
2093
- writer.writeInt64(
2094
- 1,
2095
- f
2096
- );
2097
- }
2098
- f = message.getAmount();
2099
- if (f !== 0.0) {
2100
- writer.writeFloat(
2101
- 2,
2102
- f
2103
- );
2104
- }
2105
- f = message.getOperator();
2106
- if (f.length > 0) {
2107
- writer.writeString(
2108
- 3,
2109
- f
2110
- );
2111
- }
2112
- f = message.getDivide();
2113
- if (f !== 0.0) {
2114
- writer.writeFloat(
2115
- 4,
2116
- f
2117
- );
2118
- }
2119
- f = message.getType();
2120
- if (f.length > 0) {
2121
- writer.writeString(
2122
- 5,
2123
- f
2124
- );
2125
- }
2126
- f = message.getName();
2127
- if (f.length > 0) {
2128
- writer.writeString(
2129
- 6,
2130
- f
2131
- );
2132
- }
2133
- f = message.getItemTransactionRef();
2134
- if (f.length > 0) {
2135
- writer.writeString(
2136
- 7,
2137
- f
2138
- );
2139
- }
2140
- f = message.getReferencesId();
2141
- if (f.length > 0) {
2142
- writer.writeString(
2143
- 8,
2144
- f
2145
- );
2146
- }
2147
- f = message.getCreatedAt();
2148
- if (f.length > 0) {
2149
- writer.writeString(
2150
- 9,
2151
- f
2152
- );
2153
- }
2154
- f = message.getUpdatedAt();
2155
- if (f.length > 0) {
2156
- writer.writeString(
2157
- 10,
2158
- f
2159
- );
2160
- }
2161
- f = message.getCode();
2162
- if (f.length > 0) {
2163
- writer.writeString(
2164
- 11,
2165
- f
2166
- );
2167
- }
2168
- f = message.getIsGeneral();
2169
- if (f) {
2170
- writer.writeBool(
2171
- 12,
2172
- f
2173
- );
2174
- }
2175
- };
2176
-
2177
-
2178
- /**
2179
- * optional int64 id = 1;
2180
- * @return {number}
2181
- */
2182
- proto.ItemTransactionPriceCondition.prototype.getId = function() {
2183
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2184
- };
2185
-
2186
-
2187
- /**
2188
- * @param {number} value
2189
- * @return {!proto.ItemTransactionPriceCondition} returns this
2190
- */
2191
- proto.ItemTransactionPriceCondition.prototype.setId = function(value) {
2192
- return jspb.Message.setProto3IntField(this, 1, value);
2193
- };
2194
-
2195
-
2196
- /**
2197
- * optional float amount = 2;
2198
- * @return {number}
2199
- */
2200
- proto.ItemTransactionPriceCondition.prototype.getAmount = function() {
2201
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2202
- };
2203
-
2204
-
2205
- /**
2206
- * @param {number} value
2207
- * @return {!proto.ItemTransactionPriceCondition} returns this
2208
- */
2209
- proto.ItemTransactionPriceCondition.prototype.setAmount = function(value) {
2210
- return jspb.Message.setProto3FloatField(this, 2, value);
2211
- };
2212
-
2213
-
2214
- /**
2215
- * optional string operator = 3;
2216
- * @return {string}
2217
- */
2218
- proto.ItemTransactionPriceCondition.prototype.getOperator = function() {
2219
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2220
- };
2221
-
2222
-
2223
- /**
2224
- * @param {string} value
2225
- * @return {!proto.ItemTransactionPriceCondition} returns this
2226
- */
2227
- proto.ItemTransactionPriceCondition.prototype.setOperator = function(value) {
2228
- return jspb.Message.setProto3StringField(this, 3, value);
2229
- };
2230
-
2231
-
2232
- /**
2233
- * optional float divide = 4;
2234
- * @return {number}
2235
- */
2236
- proto.ItemTransactionPriceCondition.prototype.getDivide = function() {
2237
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2238
- };
2239
-
2240
-
2241
- /**
2242
- * @param {number} value
2243
- * @return {!proto.ItemTransactionPriceCondition} returns this
2244
- */
2245
- proto.ItemTransactionPriceCondition.prototype.setDivide = function(value) {
2246
- return jspb.Message.setProto3FloatField(this, 4, value);
2247
- };
2248
-
2249
-
2250
- /**
2251
- * optional string type = 5;
2252
- * @return {string}
2253
- */
2254
- proto.ItemTransactionPriceCondition.prototype.getType = function() {
2255
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2256
- };
2257
-
2258
-
2259
- /**
2260
- * @param {string} value
2261
- * @return {!proto.ItemTransactionPriceCondition} returns this
2262
- */
2263
- proto.ItemTransactionPriceCondition.prototype.setType = function(value) {
2264
- return jspb.Message.setProto3StringField(this, 5, value);
2265
- };
2266
-
2267
-
2268
- /**
2269
- * optional string name = 6;
2270
- * @return {string}
2271
- */
2272
- proto.ItemTransactionPriceCondition.prototype.getName = function() {
2273
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2274
- };
2275
-
2276
-
2277
- /**
2278
- * @param {string} value
2279
- * @return {!proto.ItemTransactionPriceCondition} returns this
2280
- */
2281
- proto.ItemTransactionPriceCondition.prototype.setName = function(value) {
2282
- return jspb.Message.setProto3StringField(this, 6, value);
2283
- };
2284
-
2285
-
2286
- /**
2287
- * optional string item_transaction_ref = 7;
2288
- * @return {string}
2289
- */
2290
- proto.ItemTransactionPriceCondition.prototype.getItemTransactionRef = function() {
2291
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2292
- };
2293
-
2294
-
2295
- /**
2296
- * @param {string} value
2297
- * @return {!proto.ItemTransactionPriceCondition} returns this
2298
- */
2299
- proto.ItemTransactionPriceCondition.prototype.setItemTransactionRef = function(value) {
2300
- return jspb.Message.setProto3StringField(this, 7, value);
2301
- };
2302
-
2303
-
2304
- /**
2305
- * optional string references_id = 8;
2306
- * @return {string}
2307
- */
2308
- proto.ItemTransactionPriceCondition.prototype.getReferencesId = function() {
2309
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2310
- };
2311
-
2312
-
2313
- /**
2314
- * @param {string} value
2315
- * @return {!proto.ItemTransactionPriceCondition} returns this
2316
- */
2317
- proto.ItemTransactionPriceCondition.prototype.setReferencesId = function(value) {
2318
- return jspb.Message.setProto3StringField(this, 8, value);
2319
- };
2320
-
2321
-
2322
- /**
2323
- * optional string created_at = 9;
2324
- * @return {string}
2325
- */
2326
- proto.ItemTransactionPriceCondition.prototype.getCreatedAt = function() {
2327
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2328
- };
2329
-
2330
-
2331
- /**
2332
- * @param {string} value
2333
- * @return {!proto.ItemTransactionPriceCondition} returns this
2334
- */
2335
- proto.ItemTransactionPriceCondition.prototype.setCreatedAt = function(value) {
2336
- return jspb.Message.setProto3StringField(this, 9, value);
2337
- };
2338
-
2339
-
2340
- /**
2341
- * optional string updated_at = 10;
2342
- * @return {string}
2343
- */
2344
- proto.ItemTransactionPriceCondition.prototype.getUpdatedAt = function() {
2345
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2346
- };
2347
-
2348
-
2349
- /**
2350
- * @param {string} value
2351
- * @return {!proto.ItemTransactionPriceCondition} returns this
2352
- */
2353
- proto.ItemTransactionPriceCondition.prototype.setUpdatedAt = function(value) {
2354
- return jspb.Message.setProto3StringField(this, 10, value);
2355
- };
2356
-
2357
-
2358
- /**
2359
- * optional string code = 11;
2360
- * @return {string}
2361
- */
2362
- proto.ItemTransactionPriceCondition.prototype.getCode = function() {
2363
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2364
- };
2365
-
2366
-
2367
- /**
2368
- * @param {string} value
2369
- * @return {!proto.ItemTransactionPriceCondition} returns this
2370
- */
2371
- proto.ItemTransactionPriceCondition.prototype.setCode = function(value) {
2372
- return jspb.Message.setProto3StringField(this, 11, value);
2373
- };
2374
-
2375
-
2376
- /**
2377
- * optional bool is_general = 12;
2378
- * @return {boolean}
2379
- */
2380
- proto.ItemTransactionPriceCondition.prototype.getIsGeneral = function() {
2381
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
2382
- };
2383
-
2384
-
2385
- /**
2386
- * @param {boolean} value
2387
- * @return {!proto.ItemTransactionPriceCondition} returns this
2388
- */
2389
- proto.ItemTransactionPriceCondition.prototype.setIsGeneral = function(value) {
2390
- return jspb.Message.setProto3BooleanField(this, 12, value);
2391
- };
2392
-
2393
-
2394
-
2395
- /**
2396
- * List of repeated fields within this message type.
2397
- * @private {!Array<number>}
2398
- * @const
2399
- */
2400
- proto.BaseItemTransaction.repeatedFields_ = [13,14,17];
2401
-
2402
-
2403
-
2404
- if (jspb.Message.GENERATE_TO_OBJECT) {
2405
- /**
2406
- * Creates an object representation of this proto.
2407
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
2408
- * Optional fields that are not set will be set to undefined.
2409
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2410
- * For the list of reserved names please see:
2411
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2412
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2413
- * JSPB instance for transitional soy proto support:
2414
- * http://goto/soy-param-migration
2415
- * @return {!Object}
2416
- */
2417
- proto.BaseItemTransaction.prototype.toObject = function(opt_includeInstance) {
2418
- return proto.BaseItemTransaction.toObject(opt_includeInstance, this);
2419
- };
2420
-
2421
-
2422
- /**
2423
- * Static version of the {@see toObject} method.
2424
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2425
- * the JSPB instance for transitional soy proto support:
2426
- * http://goto/soy-param-migration
2427
- * @param {!proto.BaseItemTransaction} msg The msg instance to transform.
2428
- * @return {!Object}
2429
- * @suppress {unusedLocalVariables} f is only used for nested messages
2430
- */
2431
- proto.BaseItemTransaction.toObject = function(includeInstance, msg) {
2432
- var f, obj = {
2433
- transactionReferences: jspb.Message.getFieldWithDefault(msg, 1, ""),
2434
- accAssigment: jspb.Message.getFieldWithDefault(msg, 2, ""),
2435
- materialGroup: jspb.Message.getFieldWithDefault(msg, 3, ""),
2436
- materialCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
2437
- detailDescription: jspb.Message.getFieldWithDefault(msg, 5, ""),
2438
- description: jspb.Message.getFieldWithDefault(msg, 6, ""),
2439
- quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
2440
- unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 8, ""),
2441
- estimatedUnitPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
2442
- deliveryDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
2443
- plannedDeliveryTime: jspb.Message.getFieldWithDefault(msg, 11, ""),
2444
- customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
2445
- itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
2446
- proto.BaseItemTransactionDetail.toObject, includeInstance),
2447
- itemTransactionPriceConditionList: jspb.Message.toObjectList(msg.getItemTransactionPriceConditionList(),
2448
- proto.BaseItemTransactionPriceCondition.toObject, includeInstance),
2449
- previousReferences: jspb.Message.getFieldWithDefault(msg, 15, ""),
2450
- previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
2451
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
2452
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2453
- currency: jspb.Message.getFieldWithDefault(msg, 18, ""),
2454
- referencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
2455
- purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 20, "")
2456
- };
2457
-
2458
- if (includeInstance) {
2459
- obj.$jspbMessageInstance = msg;
2460
- }
2461
- return obj;
2462
- };
2463
- }
2464
-
2465
-
2466
- /**
2467
- * Deserializes binary data (in protobuf wire format).
2468
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
2469
- * @return {!proto.BaseItemTransaction}
2470
- */
2471
- proto.BaseItemTransaction.deserializeBinary = function(bytes) {
2472
- var reader = new jspb.BinaryReader(bytes);
2473
- var msg = new proto.BaseItemTransaction;
2474
- return proto.BaseItemTransaction.deserializeBinaryFromReader(msg, reader);
2475
- };
2476
-
2477
-
2478
- /**
2479
- * Deserializes binary data (in protobuf wire format) from the
2480
- * given reader into the given message object.
2481
- * @param {!proto.BaseItemTransaction} msg The message object to deserialize into.
2482
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2483
- * @return {!proto.BaseItemTransaction}
2484
- */
2485
- proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
2486
- while (reader.nextField()) {
2487
- if (reader.isEndGroup()) {
2488
- break;
2489
- }
2490
- var field = reader.getFieldNumber();
2491
- switch (field) {
2492
- case 1:
2493
- var value = /** @type {string} */ (reader.readString());
2494
- msg.setTransactionReferences(value);
2495
- break;
2496
- case 2:
2497
- var value = /** @type {string} */ (reader.readString());
2498
- msg.setAccAssigment(value);
2499
- break;
2500
- case 3:
2501
- var value = /** @type {string} */ (reader.readString());
2502
- msg.setMaterialGroup(value);
2503
- break;
2504
- case 4:
2505
- var value = /** @type {string} */ (reader.readString());
2506
- msg.setMaterialCode(value);
2507
- break;
2508
- case 5:
2509
- var value = /** @type {string} */ (reader.readString());
2510
- msg.setDetailDescription(value);
2511
- break;
2512
- case 6:
2513
- var value = /** @type {string} */ (reader.readString());
2514
- msg.setDescription(value);
2515
- break;
2516
- case 7:
2517
- var value = /** @type {number} */ (reader.readFloat());
2518
- msg.setQuantity(value);
2519
- break;
2520
- case 8:
2521
- var value = /** @type {string} */ (reader.readString());
2522
- msg.setUnitOfMeasure(value);
2523
- break;
2524
- case 9:
2525
- var value = /** @type {number} */ (reader.readFloat());
2526
- msg.setEstimatedUnitPrice(value);
2527
- break;
2528
- case 10:
2529
- var value = /** @type {string} */ (reader.readString());
2530
- msg.setDeliveryDate(value);
2531
- break;
2532
- case 11:
2533
- var value = /** @type {string} */ (reader.readString());
2534
- msg.setPlannedDeliveryTime(value);
2535
- break;
2536
- case 12:
2537
- var value = /** @type {string} */ (reader.readString());
2538
- msg.setCustomTransaction(value);
2539
- break;
2540
- case 13:
2541
- var value = new proto.BaseItemTransactionDetail;
2542
- reader.readMessage(value,proto.BaseItemTransactionDetail.deserializeBinaryFromReader);
2543
- msg.addItemTransactionDetail(value);
2544
- break;
2545
- case 14:
2546
- var value = new proto.BaseItemTransactionPriceCondition;
2547
- reader.readMessage(value,proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader);
2548
- msg.addItemTransactionPriceCondition(value);
2549
- break;
2550
- case 15:
2551
- var value = /** @type {string} */ (reader.readString());
2552
- msg.setPreviousReferences(value);
2553
- break;
2554
- case 16:
2555
- var value = /** @type {string} */ (reader.readString());
2556
- msg.setPreviousTransactionReferences(value);
2557
- break;
2558
- case 17:
2559
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2560
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2561
- msg.addFiles(value);
2562
- break;
2563
- case 18:
2564
- var value = /** @type {string} */ (reader.readString());
2565
- msg.setCurrency(value);
2566
- break;
2567
- case 19:
2568
- var value = /** @type {string} */ (reader.readString());
2569
- msg.setReferencesId(value);
2570
- break;
2571
- case 20:
2572
- var value = /** @type {string} */ (reader.readString());
2573
- msg.setPurchaseRequisitionTransactionNumber(value);
2574
- break;
2575
- default:
2576
- reader.skipField();
2577
- break;
2578
- }
2579
- }
2580
- return msg;
2581
- };
2582
-
2583
-
2584
- /**
2585
- * Serializes the message to binary data (in protobuf wire format).
2586
- * @return {!Uint8Array}
2587
- */
2588
- proto.BaseItemTransaction.prototype.serializeBinary = function() {
2589
- var writer = new jspb.BinaryWriter();
2590
- proto.BaseItemTransaction.serializeBinaryToWriter(this, writer);
2591
- return writer.getResultBuffer();
2592
- };
2593
-
2594
-
2595
- /**
2596
- * Serializes the given message to binary data (in protobuf wire
2597
- * format), writing to the given BinaryWriter.
2598
- * @param {!proto.BaseItemTransaction} message
2599
- * @param {!jspb.BinaryWriter} writer
2600
- * @suppress {unusedLocalVariables} f is only used for nested messages
2601
- */
2602
- proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
2603
- var f = undefined;
2604
- f = message.getTransactionReferences();
2605
- if (f.length > 0) {
2606
- writer.writeString(
2607
- 1,
2608
- f
2609
- );
2610
- }
2611
- f = message.getAccAssigment();
2612
- if (f.length > 0) {
2613
- writer.writeString(
2614
- 2,
2615
- f
2616
- );
2617
- }
2618
- f = message.getMaterialGroup();
2619
- if (f.length > 0) {
2620
- writer.writeString(
2621
- 3,
2622
- f
2623
- );
2624
- }
2625
- f = message.getMaterialCode();
2626
- if (f.length > 0) {
2627
- writer.writeString(
2628
- 4,
2629
- f
2630
- );
2631
- }
2632
- f = message.getDetailDescription();
2633
- if (f.length > 0) {
2634
- writer.writeString(
2635
- 5,
2636
- f
2637
- );
2638
- }
2639
- f = message.getDescription();
2640
- if (f.length > 0) {
2641
- writer.writeString(
2642
- 6,
2643
- f
2644
- );
2645
- }
2646
- f = message.getQuantity();
2647
- if (f !== 0.0) {
2648
- writer.writeFloat(
2649
- 7,
2650
- f
2651
- );
2652
- }
2653
- f = message.getUnitOfMeasure();
2654
- if (f.length > 0) {
2655
- writer.writeString(
2656
- 8,
2657
- f
2658
- );
2659
- }
2660
- f = message.getEstimatedUnitPrice();
2661
- if (f !== 0.0) {
2662
- writer.writeFloat(
2663
- 9,
2664
- f
2665
- );
2666
- }
2667
- f = message.getDeliveryDate();
2668
- if (f.length > 0) {
2669
- writer.writeString(
2670
- 10,
2671
- f
2672
- );
2673
- }
2674
- f = message.getPlannedDeliveryTime();
2675
- if (f.length > 0) {
2676
- writer.writeString(
2677
- 11,
2678
- f
2679
- );
2680
- }
2681
- f = message.getCustomTransaction();
2682
- if (f.length > 0) {
2683
- writer.writeString(
2684
- 12,
2685
- f
2686
- );
2687
- }
2688
- f = message.getItemTransactionDetailList();
2689
- if (f.length > 0) {
2690
- writer.writeRepeatedMessage(
2691
- 13,
2692
- f,
2693
- proto.BaseItemTransactionDetail.serializeBinaryToWriter
2694
- );
2695
- }
2696
- f = message.getItemTransactionPriceConditionList();
2697
- if (f.length > 0) {
2698
- writer.writeRepeatedMessage(
2699
- 14,
2700
- f,
2701
- proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter
2702
- );
2703
- }
2704
- f = message.getPreviousReferences();
2705
- if (f.length > 0) {
2706
- writer.writeString(
2707
- 15,
2708
- f
2709
- );
2710
- }
2711
- f = message.getPreviousTransactionReferences();
2712
- if (f.length > 0) {
2713
- writer.writeString(
2714
- 16,
2715
- f
2716
- );
2717
- }
2718
- f = message.getFilesList();
2719
- if (f.length > 0) {
2720
- writer.writeRepeatedMessage(
2721
- 17,
2722
- f,
2723
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2724
- );
2725
- }
2726
- f = message.getCurrency();
2727
- if (f.length > 0) {
2728
- writer.writeString(
2729
- 18,
2730
- f
2731
- );
2732
- }
2733
- f = message.getReferencesId();
2734
- if (f.length > 0) {
2735
- writer.writeString(
2736
- 19,
2737
- f
2738
- );
2739
- }
2740
- f = message.getPurchaseRequisitionTransactionNumber();
2741
- if (f.length > 0) {
2742
- writer.writeString(
2743
- 20,
2744
- f
2745
- );
2746
- }
2747
- };
2748
-
2749
-
2750
- /**
2751
- * optional string transaction_references = 1;
2752
- * @return {string}
2753
- */
2754
- proto.BaseItemTransaction.prototype.getTransactionReferences = function() {
2755
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2756
- };
2757
-
2758
-
2759
- /**
2760
- * @param {string} value
2761
- * @return {!proto.BaseItemTransaction} returns this
2762
- */
2763
- proto.BaseItemTransaction.prototype.setTransactionReferences = function(value) {
2764
- return jspb.Message.setProto3StringField(this, 1, value);
2765
- };
2766
-
2767
-
2768
- /**
2769
- * optional string acc_assigment = 2;
2770
- * @return {string}
2771
- */
2772
- proto.BaseItemTransaction.prototype.getAccAssigment = function() {
2773
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2774
- };
2775
-
2776
-
2777
- /**
2778
- * @param {string} value
2779
- * @return {!proto.BaseItemTransaction} returns this
2780
- */
2781
- proto.BaseItemTransaction.prototype.setAccAssigment = function(value) {
2782
- return jspb.Message.setProto3StringField(this, 2, value);
2783
- };
2784
-
2785
-
2786
- /**
2787
- * optional string material_group = 3;
2788
- * @return {string}
2789
- */
2790
- proto.BaseItemTransaction.prototype.getMaterialGroup = function() {
2791
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2792
- };
2793
-
2794
-
2795
- /**
2796
- * @param {string} value
2797
- * @return {!proto.BaseItemTransaction} returns this
2798
- */
2799
- proto.BaseItemTransaction.prototype.setMaterialGroup = function(value) {
2800
- return jspb.Message.setProto3StringField(this, 3, value);
2801
- };
2802
-
2803
-
2804
- /**
2805
- * optional string material_code = 4;
2806
- * @return {string}
2807
- */
2808
- proto.BaseItemTransaction.prototype.getMaterialCode = function() {
2809
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2810
- };
2811
-
2812
-
2813
- /**
2814
- * @param {string} value
2815
- * @return {!proto.BaseItemTransaction} returns this
2816
- */
2817
- proto.BaseItemTransaction.prototype.setMaterialCode = function(value) {
2818
- return jspb.Message.setProto3StringField(this, 4, value);
2819
- };
2820
-
2821
-
2822
- /**
2823
- * optional string detail_description = 5;
2824
- * @return {string}
2825
- */
2826
- proto.BaseItemTransaction.prototype.getDetailDescription = function() {
2827
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2828
- };
2829
-
2830
-
2831
- /**
2832
- * @param {string} value
2833
- * @return {!proto.BaseItemTransaction} returns this
2834
- */
2835
- proto.BaseItemTransaction.prototype.setDetailDescription = function(value) {
2836
- return jspb.Message.setProto3StringField(this, 5, value);
2837
- };
2838
-
2839
-
2840
- /**
2841
- * optional string description = 6;
2842
- * @return {string}
2843
- */
2844
- proto.BaseItemTransaction.prototype.getDescription = function() {
2845
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2846
- };
2847
-
2848
-
2849
- /**
2850
- * @param {string} value
2851
- * @return {!proto.BaseItemTransaction} returns this
2852
- */
2853
- proto.BaseItemTransaction.prototype.setDescription = function(value) {
2854
- return jspb.Message.setProto3StringField(this, 6, value);
2855
- };
2856
-
2857
-
2858
- /**
2859
- * optional float quantity = 7;
2860
- * @return {number}
2861
- */
2862
- proto.BaseItemTransaction.prototype.getQuantity = function() {
2863
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
2864
- };
2865
-
2866
-
2867
- /**
2868
- * @param {number} value
2869
- * @return {!proto.BaseItemTransaction} returns this
2870
- */
2871
- proto.BaseItemTransaction.prototype.setQuantity = function(value) {
2872
- return jspb.Message.setProto3FloatField(this, 7, value);
2873
- };
2874
-
2875
-
2876
- /**
2877
- * optional string unit_of_measure = 8;
2878
- * @return {string}
2879
- */
2880
- proto.BaseItemTransaction.prototype.getUnitOfMeasure = function() {
2881
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2882
- };
2883
-
2884
-
2885
- /**
2886
- * @param {string} value
2887
- * @return {!proto.BaseItemTransaction} returns this
2888
- */
2889
- proto.BaseItemTransaction.prototype.setUnitOfMeasure = function(value) {
2890
- return jspb.Message.setProto3StringField(this, 8, value);
2891
- };
2892
-
2893
-
2894
- /**
2895
- * optional float estimated_unit_price = 9;
2896
- * @return {number}
2897
- */
2898
- proto.BaseItemTransaction.prototype.getEstimatedUnitPrice = function() {
2899
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
2900
- };
2901
-
2902
-
2903
- /**
2904
- * @param {number} value
2905
- * @return {!proto.BaseItemTransaction} returns this
2906
- */
2907
- proto.BaseItemTransaction.prototype.setEstimatedUnitPrice = function(value) {
2908
- return jspb.Message.setProto3FloatField(this, 9, value);
2909
- };
2910
-
2911
-
2912
- /**
2913
- * optional string delivery_date = 10;
2914
- * @return {string}
2915
- */
2916
- proto.BaseItemTransaction.prototype.getDeliveryDate = function() {
2917
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2918
- };
2919
-
2920
-
2921
- /**
2922
- * @param {string} value
2923
- * @return {!proto.BaseItemTransaction} returns this
2924
- */
2925
- proto.BaseItemTransaction.prototype.setDeliveryDate = function(value) {
2926
- return jspb.Message.setProto3StringField(this, 10, value);
2927
- };
2928
-
2929
-
2930
- /**
2931
- * optional string planned_delivery_time = 11;
2932
- * @return {string}
2933
- */
2934
- proto.BaseItemTransaction.prototype.getPlannedDeliveryTime = function() {
2935
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2936
- };
2937
-
2938
-
2939
- /**
2940
- * @param {string} value
2941
- * @return {!proto.BaseItemTransaction} returns this
2942
- */
2943
- proto.BaseItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
2944
- return jspb.Message.setProto3StringField(this, 11, value);
2945
- };
2946
-
2947
-
2948
- /**
2949
- * optional string custom_transaction = 12;
2950
- * @return {string}
2951
- */
2952
- proto.BaseItemTransaction.prototype.getCustomTransaction = function() {
2953
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2954
- };
2955
-
2956
-
2957
- /**
2958
- * @param {string} value
2959
- * @return {!proto.BaseItemTransaction} returns this
2960
- */
2961
- proto.BaseItemTransaction.prototype.setCustomTransaction = function(value) {
2962
- return jspb.Message.setProto3StringField(this, 12, value);
2963
- };
2964
-
2965
-
2966
- /**
2967
- * repeated BaseItemTransactionDetail item_transaction_detail = 13;
2968
- * @return {!Array<!proto.BaseItemTransactionDetail>}
2969
- */
2970
- proto.BaseItemTransaction.prototype.getItemTransactionDetailList = function() {
2971
- return /** @type{!Array<!proto.BaseItemTransactionDetail>} */ (
2972
- jspb.Message.getRepeatedWrapperField(this, proto.BaseItemTransactionDetail, 13));
2973
- };
2974
-
2975
-
2976
- /**
2977
- * @param {!Array<!proto.BaseItemTransactionDetail>} value
2978
- * @return {!proto.BaseItemTransaction} returns this
2979
- */
2980
- proto.BaseItemTransaction.prototype.setItemTransactionDetailList = function(value) {
2981
- return jspb.Message.setRepeatedWrapperField(this, 13, value);
2982
- };
2983
-
2984
-
2985
- /**
2986
- * @param {!proto.BaseItemTransactionDetail=} opt_value
2987
- * @param {number=} opt_index
2988
- * @return {!proto.BaseItemTransactionDetail}
2989
- */
2990
- proto.BaseItemTransaction.prototype.addItemTransactionDetail = function(opt_value, opt_index) {
2991
- return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.BaseItemTransactionDetail, opt_index);
2992
- };
2993
-
2994
-
2995
- /**
2996
- * Clears the list making it empty but non-null.
2997
- * @return {!proto.BaseItemTransaction} returns this
2998
- */
2999
- proto.BaseItemTransaction.prototype.clearItemTransactionDetailList = function() {
3000
- return this.setItemTransactionDetailList([]);
3001
- };
3002
-
3003
-
3004
- /**
3005
- * repeated BaseItemTransactionPriceCondition item_transaction_price_condition = 14;
3006
- * @return {!Array<!proto.BaseItemTransactionPriceCondition>}
3007
- */
3008
- proto.BaseItemTransaction.prototype.getItemTransactionPriceConditionList = function() {
3009
- return /** @type{!Array<!proto.BaseItemTransactionPriceCondition>} */ (
3010
- jspb.Message.getRepeatedWrapperField(this, proto.BaseItemTransactionPriceCondition, 14));
3011
- };
3012
-
3013
-
3014
- /**
3015
- * @param {!Array<!proto.BaseItemTransactionPriceCondition>} value
3016
- * @return {!proto.BaseItemTransaction} returns this
3017
- */
3018
- proto.BaseItemTransaction.prototype.setItemTransactionPriceConditionList = function(value) {
3019
- return jspb.Message.setRepeatedWrapperField(this, 14, value);
3020
- };
3021
-
3022
-
3023
- /**
3024
- * @param {!proto.BaseItemTransactionPriceCondition=} opt_value
3025
- * @param {number=} opt_index
3026
- * @return {!proto.BaseItemTransactionPriceCondition}
3027
- */
3028
- proto.BaseItemTransaction.prototype.addItemTransactionPriceCondition = function(opt_value, opt_index) {
3029
- return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.BaseItemTransactionPriceCondition, opt_index);
3030
- };
3031
-
3032
-
3033
- /**
3034
- * Clears the list making it empty but non-null.
3035
- * @return {!proto.BaseItemTransaction} returns this
3036
- */
3037
- proto.BaseItemTransaction.prototype.clearItemTransactionPriceConditionList = function() {
3038
- return this.setItemTransactionPriceConditionList([]);
3039
- };
3040
-
3041
-
3042
- /**
3043
- * optional string previous_references = 15;
3044
- * @return {string}
3045
- */
3046
- proto.BaseItemTransaction.prototype.getPreviousReferences = function() {
3047
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3048
- };
3049
-
3050
-
3051
- /**
3052
- * @param {string} value
3053
- * @return {!proto.BaseItemTransaction} returns this
3054
- */
3055
- proto.BaseItemTransaction.prototype.setPreviousReferences = function(value) {
3056
- return jspb.Message.setProto3StringField(this, 15, value);
3057
- };
3058
-
3059
-
3060
- /**
3061
- * optional string previous_transaction_references = 16;
3062
- * @return {string}
3063
- */
3064
- proto.BaseItemTransaction.prototype.getPreviousTransactionReferences = function() {
3065
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3066
- };
3067
-
3068
-
3069
- /**
3070
- * @param {string} value
3071
- * @return {!proto.BaseItemTransaction} returns this
3072
- */
3073
- proto.BaseItemTransaction.prototype.setPreviousTransactionReferences = function(value) {
3074
- return jspb.Message.setProto3StringField(this, 16, value);
3075
- };
3076
-
3077
-
3078
- /**
3079
- * repeated FileUploadReferencesReq files = 17;
3080
- * @return {!Array<!proto.FileUploadReferencesReq>}
3081
- */
3082
- proto.BaseItemTransaction.prototype.getFilesList = function() {
3083
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3084
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 17));
3085
- };
3086
-
3087
-
3088
- /**
3089
- * @param {!Array<!proto.FileUploadReferencesReq>} value
3090
- * @return {!proto.BaseItemTransaction} returns this
3091
- */
3092
- proto.BaseItemTransaction.prototype.setFilesList = function(value) {
3093
- return jspb.Message.setRepeatedWrapperField(this, 17, value);
3094
- };
3095
-
3096
-
3097
- /**
3098
- * @param {!proto.FileUploadReferencesReq=} opt_value
3099
- * @param {number=} opt_index
3100
- * @return {!proto.FileUploadReferencesReq}
3101
- */
3102
- proto.BaseItemTransaction.prototype.addFiles = function(opt_value, opt_index) {
3103
- return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.FileUploadReferencesReq, opt_index);
3104
- };
3105
-
3106
-
3107
- /**
3108
- * Clears the list making it empty but non-null.
3109
- * @return {!proto.BaseItemTransaction} returns this
3110
- */
3111
- proto.BaseItemTransaction.prototype.clearFilesList = function() {
3112
- return this.setFilesList([]);
3113
- };
3114
-
3115
-
3116
- /**
3117
- * optional string currency = 18;
3118
- * @return {string}
3119
- */
3120
- proto.BaseItemTransaction.prototype.getCurrency = function() {
3121
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
3122
- };
3123
-
3124
-
3125
- /**
3126
- * @param {string} value
3127
- * @return {!proto.BaseItemTransaction} returns this
3128
- */
3129
- proto.BaseItemTransaction.prototype.setCurrency = function(value) {
3130
- return jspb.Message.setProto3StringField(this, 18, value);
3131
- };
3132
-
3133
-
3134
- /**
3135
- * optional string references_id = 19;
3136
- * @return {string}
3137
- */
3138
- proto.BaseItemTransaction.prototype.getReferencesId = function() {
3139
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
3140
- };
3141
-
3142
-
3143
- /**
3144
- * @param {string} value
3145
- * @return {!proto.BaseItemTransaction} returns this
3146
- */
3147
- proto.BaseItemTransaction.prototype.setReferencesId = function(value) {
3148
- return jspb.Message.setProto3StringField(this, 19, value);
3149
- };
3150
-
3151
-
3152
- /**
3153
- * optional string purchase_requisition_transaction_number = 20;
3154
- * @return {string}
3155
- */
3156
- proto.BaseItemTransaction.prototype.getPurchaseRequisitionTransactionNumber = function() {
3157
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
3158
- };
3159
-
3160
-
3161
- /**
3162
- * @param {string} value
3163
- * @return {!proto.BaseItemTransaction} returns this
3164
- */
3165
- proto.BaseItemTransaction.prototype.setPurchaseRequisitionTransactionNumber = function(value) {
3166
- return jspb.Message.setProto3StringField(this, 20, value);
3167
- };
3168
-
3169
-
3170
-
3171
- /**
3172
- * List of repeated fields within this message type.
3173
- * @private {!Array<number>}
3174
- * @const
3175
- */
3176
- proto.BaseItemTransactionDetail.repeatedFields_ = [18];
3177
-
3178
-
3179
-
3180
- if (jspb.Message.GENERATE_TO_OBJECT) {
3181
- /**
3182
- * Creates an object representation of this proto.
3183
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3184
- * Optional fields that are not set will be set to undefined.
3185
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3186
- * For the list of reserved names please see:
3187
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3188
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3189
- * JSPB instance for transitional soy proto support:
3190
- * http://goto/soy-param-migration
3191
- * @return {!Object}
3192
- */
3193
- proto.BaseItemTransactionDetail.prototype.toObject = function(opt_includeInstance) {
3194
- return proto.BaseItemTransactionDetail.toObject(opt_includeInstance, this);
3195
- };
3196
-
3197
-
3198
- /**
3199
- * Static version of the {@see toObject} method.
3200
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3201
- * the JSPB instance for transitional soy proto support:
3202
- * http://goto/soy-param-migration
3203
- * @param {!proto.BaseItemTransactionDetail} msg The msg instance to transform.
3204
- * @return {!Object}
3205
- * @suppress {unusedLocalVariables} f is only used for nested messages
3206
- */
3207
- proto.BaseItemTransactionDetail.toObject = function(includeInstance, msg) {
3208
- var f, obj = {
3209
- glAccount: jspb.Message.getFieldWithDefault(msg, 1, ""),
3210
- glAccountDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
3211
- unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 3, ""),
3212
- valuationPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
3213
- requisitioner: jspb.Message.getFieldWithDefault(msg, 5, ""),
3214
- customTransaction: jspb.Message.getFieldWithDefault(msg, 6, ""),
3215
- distribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
3216
- quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
3217
- assetNo: jspb.Message.getFieldWithDefault(msg, 9, ""),
3218
- itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 10, ""),
3219
- costCenter: jspb.Message.getFieldWithDefault(msg, 11, ""),
3220
- orderNumber: jspb.Message.getFieldWithDefault(msg, 12, ""),
3221
- orderDescription: jspb.Message.getFieldWithDefault(msg, 13, ""),
3222
- serviceNo: jspb.Message.getFieldWithDefault(msg, 14, ""),
3223
- serviceDescription: jspb.Message.getFieldWithDefault(msg, 15, ""),
3224
- amountPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
3225
- materialCode: jspb.Message.getFieldWithDefault(msg, 17, ""),
3226
- filesList: jspb.Message.toObjectList(msg.getFilesList(),
3227
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
3228
- };
3229
-
3230
- if (includeInstance) {
3231
- obj.$jspbMessageInstance = msg;
3232
- }
3233
- return obj;
3234
- };
3235
- }
3236
-
3237
-
3238
- /**
3239
- * Deserializes binary data (in protobuf wire format).
3240
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3241
- * @return {!proto.BaseItemTransactionDetail}
3242
- */
3243
- proto.BaseItemTransactionDetail.deserializeBinary = function(bytes) {
3244
- var reader = new jspb.BinaryReader(bytes);
3245
- var msg = new proto.BaseItemTransactionDetail;
3246
- return proto.BaseItemTransactionDetail.deserializeBinaryFromReader(msg, reader);
3247
- };
3248
-
3249
-
3250
- /**
3251
- * Deserializes binary data (in protobuf wire format) from the
3252
- * given reader into the given message object.
3253
- * @param {!proto.BaseItemTransactionDetail} msg The message object to deserialize into.
3254
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3255
- * @return {!proto.BaseItemTransactionDetail}
3256
- */
3257
- proto.BaseItemTransactionDetail.deserializeBinaryFromReader = function(msg, reader) {
3258
- while (reader.nextField()) {
3259
- if (reader.isEndGroup()) {
3260
- break;
3261
- }
3262
- var field = reader.getFieldNumber();
3263
- switch (field) {
3264
- case 1:
3265
- var value = /** @type {string} */ (reader.readString());
3266
- msg.setGlAccount(value);
3267
- break;
3268
- case 2:
3269
- var value = /** @type {string} */ (reader.readString());
3270
- msg.setGlAccountDescription(value);
3271
- break;
3272
- case 3:
3273
- var value = /** @type {string} */ (reader.readString());
3274
- msg.setUnitOfMeasure(value);
3275
- break;
3276
- case 4:
3277
- var value = /** @type {number} */ (reader.readFloat());
3278
- msg.setValuationPrice(value);
3279
- break;
3280
- case 5:
3281
- var value = /** @type {string} */ (reader.readString());
3282
- msg.setRequisitioner(value);
3283
- break;
3284
- case 6:
3285
- var value = /** @type {string} */ (reader.readString());
3286
- msg.setCustomTransaction(value);
3287
- break;
3288
- case 7:
3289
- var value = /** @type {number} */ (reader.readFloat());
3290
- msg.setDistribution(value);
3291
- break;
3292
- case 8:
3293
- var value = /** @type {number} */ (reader.readFloat());
3294
- msg.setQuantity(value);
3295
- break;
3296
- case 9:
3297
- var value = /** @type {string} */ (reader.readString());
3298
- msg.setAssetNo(value);
3299
- break;
3300
- case 10:
3301
- var value = /** @type {string} */ (reader.readString());
3302
- msg.setItemTransactionRef(value);
3303
- break;
3304
- case 11:
3305
- var value = /** @type {string} */ (reader.readString());
3306
- msg.setCostCenter(value);
3307
- break;
3308
- case 12:
3309
- var value = /** @type {string} */ (reader.readString());
3310
- msg.setOrderNumber(value);
3311
- break;
3312
- case 13:
3313
- var value = /** @type {string} */ (reader.readString());
3314
- msg.setOrderDescription(value);
3315
- break;
3316
- case 14:
3317
- var value = /** @type {string} */ (reader.readString());
3318
- msg.setServiceNo(value);
3319
- break;
3320
- case 15:
3321
- var value = /** @type {string} */ (reader.readString());
3322
- msg.setServiceDescription(value);
3323
- break;
3324
- case 16:
3325
- var value = /** @type {number} */ (reader.readFloat());
3326
- msg.setAmountPrice(value);
3327
- break;
3328
- case 17:
3329
- var value = /** @type {string} */ (reader.readString());
3330
- msg.setMaterialCode(value);
3331
- break;
3332
- case 18:
3333
- var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3334
- reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3335
- msg.addFiles(value);
3336
- break;
3337
- default:
3338
- reader.skipField();
3339
- break;
3340
- }
3341
- }
3342
- return msg;
3343
- };
3344
-
3345
-
3346
- /**
3347
- * Serializes the message to binary data (in protobuf wire format).
3348
- * @return {!Uint8Array}
3349
- */
3350
- proto.BaseItemTransactionDetail.prototype.serializeBinary = function() {
3351
- var writer = new jspb.BinaryWriter();
3352
- proto.BaseItemTransactionDetail.serializeBinaryToWriter(this, writer);
3353
- return writer.getResultBuffer();
3354
- };
3355
-
3356
-
3357
- /**
3358
- * Serializes the given message to binary data (in protobuf wire
3359
- * format), writing to the given BinaryWriter.
3360
- * @param {!proto.BaseItemTransactionDetail} message
3361
- * @param {!jspb.BinaryWriter} writer
3362
- * @suppress {unusedLocalVariables} f is only used for nested messages
3363
- */
3364
- proto.BaseItemTransactionDetail.serializeBinaryToWriter = function(message, writer) {
3365
- var f = undefined;
3366
- f = message.getGlAccount();
3367
- if (f.length > 0) {
3368
- writer.writeString(
3369
- 1,
3370
- f
3371
- );
3372
- }
3373
- f = message.getGlAccountDescription();
3374
- if (f.length > 0) {
3375
- writer.writeString(
3376
- 2,
3377
- f
3378
- );
3379
- }
3380
- f = message.getUnitOfMeasure();
3381
- if (f.length > 0) {
3382
- writer.writeString(
3383
- 3,
3384
- f
3385
- );
3386
- }
3387
- f = message.getValuationPrice();
3388
- if (f !== 0.0) {
3389
- writer.writeFloat(
3390
- 4,
3391
- f
3392
- );
3393
- }
3394
- f = message.getRequisitioner();
3395
- if (f.length > 0) {
3396
- writer.writeString(
3397
- 5,
3398
- f
3399
- );
3400
- }
3401
- f = message.getCustomTransaction();
3402
- if (f.length > 0) {
3403
- writer.writeString(
3404
- 6,
3405
- f
3406
- );
3407
- }
3408
- f = message.getDistribution();
3409
- if (f !== 0.0) {
3410
- writer.writeFloat(
3411
- 7,
3412
- f
3413
- );
3414
- }
3415
- f = message.getQuantity();
3416
- if (f !== 0.0) {
3417
- writer.writeFloat(
3418
- 8,
3419
- f
3420
- );
3421
- }
3422
- f = message.getAssetNo();
3423
- if (f.length > 0) {
3424
- writer.writeString(
3425
- 9,
3426
- f
3427
- );
3428
- }
3429
- f = message.getItemTransactionRef();
3430
- if (f.length > 0) {
3431
- writer.writeString(
3432
- 10,
3433
- f
3434
- );
3435
- }
3436
- f = message.getCostCenter();
3437
- if (f.length > 0) {
3438
- writer.writeString(
3439
- 11,
3440
- f
3441
- );
3442
- }
3443
- f = message.getOrderNumber();
3444
- if (f.length > 0) {
3445
- writer.writeString(
3446
- 12,
3447
- f
3448
- );
3449
- }
3450
- f = message.getOrderDescription();
3451
- if (f.length > 0) {
3452
- writer.writeString(
3453
- 13,
3454
- f
3455
- );
3456
- }
3457
- f = message.getServiceNo();
3458
- if (f.length > 0) {
3459
- writer.writeString(
3460
- 14,
3461
- f
3462
- );
3463
- }
3464
- f = message.getServiceDescription();
3465
- if (f.length > 0) {
3466
- writer.writeString(
3467
- 15,
3468
- f
3469
- );
3470
- }
3471
- f = message.getAmountPrice();
3472
- if (f !== 0.0) {
3473
- writer.writeFloat(
3474
- 16,
3475
- f
3476
- );
3477
- }
3478
- f = message.getMaterialCode();
3479
- if (f.length > 0) {
3480
- writer.writeString(
3481
- 17,
3482
- f
3483
- );
3484
- }
3485
- f = message.getFilesList();
3486
- if (f.length > 0) {
3487
- writer.writeRepeatedMessage(
3488
- 18,
3489
- f,
3490
- prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3491
- );
3492
- }
3493
- };
3494
-
3495
-
3496
- /**
3497
- * optional string gl_account = 1;
3498
- * @return {string}
3499
- */
3500
- proto.BaseItemTransactionDetail.prototype.getGlAccount = function() {
3501
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3502
- };
3503
-
3504
-
3505
- /**
3506
- * @param {string} value
3507
- * @return {!proto.BaseItemTransactionDetail} returns this
3508
- */
3509
- proto.BaseItemTransactionDetail.prototype.setGlAccount = function(value) {
3510
- return jspb.Message.setProto3StringField(this, 1, value);
3511
- };
3512
-
3513
-
3514
- /**
3515
- * optional string gl_account_description = 2;
3516
- * @return {string}
3517
- */
3518
- proto.BaseItemTransactionDetail.prototype.getGlAccountDescription = function() {
3519
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3520
- };
3521
-
3522
-
3523
- /**
3524
- * @param {string} value
3525
- * @return {!proto.BaseItemTransactionDetail} returns this
3526
- */
3527
- proto.BaseItemTransactionDetail.prototype.setGlAccountDescription = function(value) {
3528
- return jspb.Message.setProto3StringField(this, 2, value);
3529
- };
3530
-
3531
-
3532
- /**
3533
- * optional string unit_of_measure = 3;
3534
- * @return {string}
3535
- */
3536
- proto.BaseItemTransactionDetail.prototype.getUnitOfMeasure = function() {
3537
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3538
- };
3539
-
3540
-
3541
- /**
3542
- * @param {string} value
3543
- * @return {!proto.BaseItemTransactionDetail} returns this
3544
- */
3545
- proto.BaseItemTransactionDetail.prototype.setUnitOfMeasure = function(value) {
3546
- return jspb.Message.setProto3StringField(this, 3, value);
3547
- };
3548
-
3549
-
3550
- /**
3551
- * optional float valuation_price = 4;
3552
- * @return {number}
3553
- */
3554
- proto.BaseItemTransactionDetail.prototype.getValuationPrice = function() {
3555
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
3556
- };
3557
-
3558
-
3559
- /**
3560
- * @param {number} value
3561
- * @return {!proto.BaseItemTransactionDetail} returns this
3562
- */
3563
- proto.BaseItemTransactionDetail.prototype.setValuationPrice = function(value) {
3564
- return jspb.Message.setProto3FloatField(this, 4, value);
3565
- };
3566
-
3567
-
3568
- /**
3569
- * optional string requisitioner = 5;
3570
- * @return {string}
3571
- */
3572
- proto.BaseItemTransactionDetail.prototype.getRequisitioner = function() {
3573
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3574
- };
3575
-
3576
-
3577
- /**
3578
- * @param {string} value
3579
- * @return {!proto.BaseItemTransactionDetail} returns this
3580
- */
3581
- proto.BaseItemTransactionDetail.prototype.setRequisitioner = function(value) {
3582
- return jspb.Message.setProto3StringField(this, 5, value);
3583
- };
3584
-
3585
-
3586
- /**
3587
- * optional string custom_transaction = 6;
3588
- * @return {string}
3589
- */
3590
- proto.BaseItemTransactionDetail.prototype.getCustomTransaction = function() {
3591
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3592
- };
3593
-
3594
-
3595
- /**
3596
- * @param {string} value
3597
- * @return {!proto.BaseItemTransactionDetail} returns this
3598
- */
3599
- proto.BaseItemTransactionDetail.prototype.setCustomTransaction = function(value) {
3600
- return jspb.Message.setProto3StringField(this, 6, value);
3601
- };
3602
-
3603
-
3604
- /**
3605
- * optional float distribution = 7;
3606
- * @return {number}
3607
- */
3608
- proto.BaseItemTransactionDetail.prototype.getDistribution = function() {
3609
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
3610
- };
3611
-
3612
-
3613
- /**
3614
- * @param {number} value
3615
- * @return {!proto.BaseItemTransactionDetail} returns this
3616
- */
3617
- proto.BaseItemTransactionDetail.prototype.setDistribution = function(value) {
3618
- return jspb.Message.setProto3FloatField(this, 7, value);
3619
- };
3620
-
3621
-
3622
- /**
3623
- * optional float quantity = 8;
3624
- * @return {number}
3625
- */
3626
- proto.BaseItemTransactionDetail.prototype.getQuantity = function() {
3627
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
3628
- };
3629
-
3630
-
3631
- /**
3632
- * @param {number} value
3633
- * @return {!proto.BaseItemTransactionDetail} returns this
3634
- */
3635
- proto.BaseItemTransactionDetail.prototype.setQuantity = function(value) {
3636
- return jspb.Message.setProto3FloatField(this, 8, value);
3637
- };
3638
-
3639
-
3640
- /**
3641
- * optional string asset_no = 9;
3642
- * @return {string}
3643
- */
3644
- proto.BaseItemTransactionDetail.prototype.getAssetNo = function() {
3645
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3646
- };
3647
-
3648
-
3649
- /**
3650
- * @param {string} value
3651
- * @return {!proto.BaseItemTransactionDetail} returns this
3652
- */
3653
- proto.BaseItemTransactionDetail.prototype.setAssetNo = function(value) {
3654
- return jspb.Message.setProto3StringField(this, 9, value);
3655
- };
3656
-
3657
-
3658
- /**
3659
- * optional string item_transaction_ref = 10;
3660
- * @return {string}
3661
- */
3662
- proto.BaseItemTransactionDetail.prototype.getItemTransactionRef = function() {
3663
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3664
- };
3665
-
3666
-
3667
- /**
3668
- * @param {string} value
3669
- * @return {!proto.BaseItemTransactionDetail} returns this
3670
- */
3671
- proto.BaseItemTransactionDetail.prototype.setItemTransactionRef = function(value) {
3672
- return jspb.Message.setProto3StringField(this, 10, value);
3673
- };
3674
-
3675
-
3676
- /**
3677
- * optional string cost_center = 11;
3678
- * @return {string}
3679
- */
3680
- proto.BaseItemTransactionDetail.prototype.getCostCenter = function() {
3681
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3682
- };
3683
-
3684
-
3685
- /**
3686
- * @param {string} value
3687
- * @return {!proto.BaseItemTransactionDetail} returns this
3688
- */
3689
- proto.BaseItemTransactionDetail.prototype.setCostCenter = function(value) {
3690
- return jspb.Message.setProto3StringField(this, 11, value);
3691
- };
3692
-
3693
-
3694
- /**
3695
- * optional string order_number = 12;
3696
- * @return {string}
3697
- */
3698
- proto.BaseItemTransactionDetail.prototype.getOrderNumber = function() {
3699
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3700
- };
3701
-
3702
-
3703
- /**
3704
- * @param {string} value
3705
- * @return {!proto.BaseItemTransactionDetail} returns this
3706
- */
3707
- proto.BaseItemTransactionDetail.prototype.setOrderNumber = function(value) {
3708
- return jspb.Message.setProto3StringField(this, 12, value);
3709
- };
3710
-
3711
-
3712
- /**
3713
- * optional string order_description = 13;
3714
- * @return {string}
3715
- */
3716
- proto.BaseItemTransactionDetail.prototype.getOrderDescription = function() {
3717
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3718
- };
3719
-
3720
-
3721
- /**
3722
- * @param {string} value
3723
- * @return {!proto.BaseItemTransactionDetail} returns this
3724
- */
3725
- proto.BaseItemTransactionDetail.prototype.setOrderDescription = function(value) {
3726
- return jspb.Message.setProto3StringField(this, 13, value);
3727
- };
3728
-
3729
-
3730
- /**
3731
- * optional string service_no = 14;
3732
- * @return {string}
3733
- */
3734
- proto.BaseItemTransactionDetail.prototype.getServiceNo = function() {
3735
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3736
- };
3737
-
3738
-
3739
- /**
3740
- * @param {string} value
3741
- * @return {!proto.BaseItemTransactionDetail} returns this
3742
- */
3743
- proto.BaseItemTransactionDetail.prototype.setServiceNo = function(value) {
3744
- return jspb.Message.setProto3StringField(this, 14, value);
3745
- };
3746
-
3747
-
3748
- /**
3749
- * optional string service_description = 15;
3750
- * @return {string}
3751
- */
3752
- proto.BaseItemTransactionDetail.prototype.getServiceDescription = function() {
3753
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3754
- };
3755
-
3756
-
3757
- /**
3758
- * @param {string} value
3759
- * @return {!proto.BaseItemTransactionDetail} returns this
3760
- */
3761
- proto.BaseItemTransactionDetail.prototype.setServiceDescription = function(value) {
3762
- return jspb.Message.setProto3StringField(this, 15, value);
3763
- };
3764
-
3765
-
3766
- /**
3767
- * optional float amount_price = 16;
3768
- * @return {number}
3769
- */
3770
- proto.BaseItemTransactionDetail.prototype.getAmountPrice = function() {
3771
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
3772
- };
3773
-
3774
-
3775
- /**
3776
- * @param {number} value
3777
- * @return {!proto.BaseItemTransactionDetail} returns this
3778
- */
3779
- proto.BaseItemTransactionDetail.prototype.setAmountPrice = function(value) {
3780
- return jspb.Message.setProto3FloatField(this, 16, value);
3781
- };
3782
-
3783
-
3784
- /**
3785
- * optional string material_code = 17;
3786
- * @return {string}
3787
- */
3788
- proto.BaseItemTransactionDetail.prototype.getMaterialCode = function() {
3789
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3790
- };
3791
-
3792
-
3793
- /**
3794
- * @param {string} value
3795
- * @return {!proto.BaseItemTransactionDetail} returns this
3796
- */
3797
- proto.BaseItemTransactionDetail.prototype.setMaterialCode = function(value) {
3798
- return jspb.Message.setProto3StringField(this, 17, value);
3799
- };
3800
-
3801
-
3802
- /**
3803
- * repeated FileUploadReferencesReq files = 18;
3804
- * @return {!Array<!proto.FileUploadReferencesReq>}
3805
- */
3806
- proto.BaseItemTransactionDetail.prototype.getFilesList = function() {
3807
- return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3808
- jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 18));
3809
- };
3810
-
3811
-
3812
- /**
3813
- * @param {!Array<!proto.FileUploadReferencesReq>} value
3814
- * @return {!proto.BaseItemTransactionDetail} returns this
3815
- */
3816
- proto.BaseItemTransactionDetail.prototype.setFilesList = function(value) {
3817
- return jspb.Message.setRepeatedWrapperField(this, 18, value);
3818
- };
3819
-
3820
-
3821
- /**
3822
- * @param {!proto.FileUploadReferencesReq=} opt_value
3823
- * @param {number=} opt_index
3824
- * @return {!proto.FileUploadReferencesReq}
3825
- */
3826
- proto.BaseItemTransactionDetail.prototype.addFiles = function(opt_value, opt_index) {
3827
- return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.FileUploadReferencesReq, opt_index);
3828
- };
3829
-
3830
-
3831
- /**
3832
- * Clears the list making it empty but non-null.
3833
- * @return {!proto.BaseItemTransactionDetail} returns this
3834
- */
3835
- proto.BaseItemTransactionDetail.prototype.clearFilesList = function() {
3836
- return this.setFilesList([]);
3837
- };
3838
-
3839
-
3840
-
3841
-
3842
-
3843
- if (jspb.Message.GENERATE_TO_OBJECT) {
3844
- /**
3845
- * Creates an object representation of this proto.
3846
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
3847
- * Optional fields that are not set will be set to undefined.
3848
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3849
- * For the list of reserved names please see:
3850
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3851
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3852
- * JSPB instance for transitional soy proto support:
3853
- * http://goto/soy-param-migration
3854
- * @return {!Object}
3855
- */
3856
- proto.BaseItemTransactionPriceCondition.prototype.toObject = function(opt_includeInstance) {
3857
- return proto.BaseItemTransactionPriceCondition.toObject(opt_includeInstance, this);
3858
- };
3859
-
3860
-
3861
- /**
3862
- * Static version of the {@see toObject} method.
3863
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3864
- * the JSPB instance for transitional soy proto support:
3865
- * http://goto/soy-param-migration
3866
- * @param {!proto.BaseItemTransactionPriceCondition} msg The msg instance to transform.
3867
- * @return {!Object}
3868
- * @suppress {unusedLocalVariables} f is only used for nested messages
3869
- */
3870
- proto.BaseItemTransactionPriceCondition.toObject = function(includeInstance, msg) {
3871
- var f, obj = {
3872
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
3873
- operator: jspb.Message.getFieldWithDefault(msg, 2, ""),
3874
- divide: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
3875
- type: jspb.Message.getFieldWithDefault(msg, 4, ""),
3876
- name: jspb.Message.getFieldWithDefault(msg, 5, ""),
3877
- itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
3878
- code: jspb.Message.getFieldWithDefault(msg, 7, ""),
3879
- isGeneral: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
3880
- };
3881
-
3882
- if (includeInstance) {
3883
- obj.$jspbMessageInstance = msg;
3884
- }
3885
- return obj;
3886
- };
3887
- }
3888
-
3889
-
3890
- /**
3891
- * Deserializes binary data (in protobuf wire format).
3892
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
3893
- * @return {!proto.BaseItemTransactionPriceCondition}
3894
- */
3895
- proto.BaseItemTransactionPriceCondition.deserializeBinary = function(bytes) {
3896
- var reader = new jspb.BinaryReader(bytes);
3897
- var msg = new proto.BaseItemTransactionPriceCondition;
3898
- return proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader(msg, reader);
3899
- };
3900
-
3901
-
3902
- /**
3903
- * Deserializes binary data (in protobuf wire format) from the
3904
- * given reader into the given message object.
3905
- * @param {!proto.BaseItemTransactionPriceCondition} msg The message object to deserialize into.
3906
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3907
- * @return {!proto.BaseItemTransactionPriceCondition}
3908
- */
3909
- proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader = function(msg, reader) {
3910
- while (reader.nextField()) {
3911
- if (reader.isEndGroup()) {
3912
- break;
3913
- }
3914
- var field = reader.getFieldNumber();
3915
- switch (field) {
3916
- case 1:
3917
- var value = /** @type {number} */ (reader.readFloat());
3918
- msg.setAmount(value);
3919
- break;
3920
- case 2:
3921
- var value = /** @type {string} */ (reader.readString());
3922
- msg.setOperator(value);
3923
- break;
3924
- case 3:
3925
- var value = /** @type {number} */ (reader.readFloat());
3926
- msg.setDivide(value);
3927
- break;
3928
- case 4:
3929
- var value = /** @type {string} */ (reader.readString());
3930
- msg.setType(value);
3931
- break;
3932
- case 5:
3933
- var value = /** @type {string} */ (reader.readString());
3934
- msg.setName(value);
3935
- break;
3936
- case 6:
3937
- var value = /** @type {string} */ (reader.readString());
3938
- msg.setItemTransactionRef(value);
3939
- break;
3940
- case 7:
3941
- var value = /** @type {string} */ (reader.readString());
3942
- msg.setCode(value);
3943
- break;
3944
- case 8:
3945
- var value = /** @type {boolean} */ (reader.readBool());
3946
- msg.setIsGeneral(value);
3947
- break;
3948
- default:
3949
- reader.skipField();
3950
- break;
3951
- }
3952
- }
3953
- return msg;
3954
- };
3955
-
3956
-
3957
- /**
3958
- * Serializes the message to binary data (in protobuf wire format).
3959
- * @return {!Uint8Array}
3960
- */
3961
- proto.BaseItemTransactionPriceCondition.prototype.serializeBinary = function() {
3962
- var writer = new jspb.BinaryWriter();
3963
- proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter(this, writer);
3964
- return writer.getResultBuffer();
3965
- };
3966
-
3967
-
3968
- /**
3969
- * Serializes the given message to binary data (in protobuf wire
3970
- * format), writing to the given BinaryWriter.
3971
- * @param {!proto.BaseItemTransactionPriceCondition} message
3972
- * @param {!jspb.BinaryWriter} writer
3973
- * @suppress {unusedLocalVariables} f is only used for nested messages
3974
- */
3975
- proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter = function(message, writer) {
3976
- var f = undefined;
3977
- f = message.getAmount();
3978
- if (f !== 0.0) {
3979
- writer.writeFloat(
3980
- 1,
3981
- f
3982
- );
3983
- }
3984
- f = message.getOperator();
3985
- if (f.length > 0) {
3986
- writer.writeString(
3987
- 2,
3988
- f
3989
- );
3990
- }
3991
- f = message.getDivide();
3992
- if (f !== 0.0) {
3993
- writer.writeFloat(
3994
- 3,
3995
- f
3996
- );
3997
- }
3998
- f = message.getType();
3999
- if (f.length > 0) {
4000
- writer.writeString(
4001
- 4,
4002
- f
4003
- );
4004
- }
4005
- f = message.getName();
4006
- if (f.length > 0) {
4007
- writer.writeString(
4008
- 5,
4009
- f
4010
- );
4011
- }
4012
- f = message.getItemTransactionRef();
4013
- if (f.length > 0) {
4014
- writer.writeString(
4015
- 6,
4016
- f
4017
- );
4018
- }
4019
- f = message.getCode();
4020
- if (f.length > 0) {
4021
- writer.writeString(
4022
- 7,
4023
- f
4024
- );
4025
- }
4026
- f = message.getIsGeneral();
4027
- if (f) {
4028
- writer.writeBool(
4029
- 8,
4030
- f
4031
- );
4032
- }
4033
- };
4034
-
4035
-
4036
- /**
4037
- * optional float amount = 1;
4038
- * @return {number}
4039
- */
4040
- proto.BaseItemTransactionPriceCondition.prototype.getAmount = function() {
4041
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
4042
- };
4043
-
4044
-
4045
- /**
4046
- * @param {number} value
4047
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4048
- */
4049
- proto.BaseItemTransactionPriceCondition.prototype.setAmount = function(value) {
4050
- return jspb.Message.setProto3FloatField(this, 1, value);
4051
- };
4052
-
4053
-
4054
- /**
4055
- * optional string operator = 2;
4056
- * @return {string}
4057
- */
4058
- proto.BaseItemTransactionPriceCondition.prototype.getOperator = function() {
4059
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4060
- };
4061
-
4062
-
4063
- /**
4064
- * @param {string} value
4065
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4066
- */
4067
- proto.BaseItemTransactionPriceCondition.prototype.setOperator = function(value) {
4068
- return jspb.Message.setProto3StringField(this, 2, value);
4069
- };
4070
-
4071
-
4072
- /**
4073
- * optional float divide = 3;
4074
- * @return {number}
4075
- */
4076
- proto.BaseItemTransactionPriceCondition.prototype.getDivide = function() {
4077
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
4078
- };
4079
-
4080
-
4081
- /**
4082
- * @param {number} value
4083
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4084
- */
4085
- proto.BaseItemTransactionPriceCondition.prototype.setDivide = function(value) {
4086
- return jspb.Message.setProto3FloatField(this, 3, value);
4087
- };
4088
-
4089
-
4090
- /**
4091
- * optional string type = 4;
4092
- * @return {string}
4093
- */
4094
- proto.BaseItemTransactionPriceCondition.prototype.getType = function() {
4095
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4096
- };
4097
-
4098
-
4099
- /**
4100
- * @param {string} value
4101
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4102
- */
4103
- proto.BaseItemTransactionPriceCondition.prototype.setType = function(value) {
4104
- return jspb.Message.setProto3StringField(this, 4, value);
4105
- };
4106
-
4107
-
4108
- /**
4109
- * optional string name = 5;
4110
- * @return {string}
4111
- */
4112
- proto.BaseItemTransactionPriceCondition.prototype.getName = function() {
4113
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4114
- };
4115
-
4116
-
4117
- /**
4118
- * @param {string} value
4119
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4120
- */
4121
- proto.BaseItemTransactionPriceCondition.prototype.setName = function(value) {
4122
- return jspb.Message.setProto3StringField(this, 5, value);
4123
- };
4124
-
4125
-
4126
- /**
4127
- * optional string item_transaction_ref = 6;
4128
- * @return {string}
4129
- */
4130
- proto.BaseItemTransactionPriceCondition.prototype.getItemTransactionRef = function() {
4131
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4132
- };
4133
-
4134
-
4135
- /**
4136
- * @param {string} value
4137
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4138
- */
4139
- proto.BaseItemTransactionPriceCondition.prototype.setItemTransactionRef = function(value) {
4140
- return jspb.Message.setProto3StringField(this, 6, value);
4141
- };
4142
-
4143
-
4144
- /**
4145
- * optional string code = 7;
4146
- * @return {string}
4147
- */
4148
- proto.BaseItemTransactionPriceCondition.prototype.getCode = function() {
4149
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4150
- };
4151
-
4152
-
4153
- /**
4154
- * @param {string} value
4155
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4156
- */
4157
- proto.BaseItemTransactionPriceCondition.prototype.setCode = function(value) {
4158
- return jspb.Message.setProto3StringField(this, 7, value);
4159
- };
4160
-
4161
-
4162
- /**
4163
- * optional bool is_general = 8;
4164
- * @return {boolean}
4165
- */
4166
- proto.BaseItemTransactionPriceCondition.prototype.getIsGeneral = function() {
4167
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
4168
- };
4169
-
4170
-
4171
- /**
4172
- * @param {boolean} value
4173
- * @return {!proto.BaseItemTransactionPriceCondition} returns this
4174
- */
4175
- proto.BaseItemTransactionPriceCondition.prototype.setIsGeneral = function(value) {
4176
- return jspb.Message.setProto3BooleanField(this, 8, value);
4177
- };
4178
-
4179
-
4180
- goog.object.extend(exports, proto);