@aldiokta/protocgen 1.1.23 → 1.1.24

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