@aldiokta/protocgen 1.1.23 → 1.1.25

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 +4330 -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 +2664 -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,4330 @@
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.getFieldWithDefault(msg, 2, ""),
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
+ properties: jspb.Message.getFieldWithDefault(msg, 13, "")
2069
+ };
2070
+
2071
+ if (includeInstance) {
2072
+ obj.$jspbMessageInstance = msg;
2073
+ }
2074
+ return obj;
2075
+ };
2076
+ }
2077
+
2078
+
2079
+ /**
2080
+ * Deserializes binary data (in protobuf wire format).
2081
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2082
+ * @return {!proto.ItemTransactionPriceCondition}
2083
+ */
2084
+ proto.ItemTransactionPriceCondition.deserializeBinary = function(bytes) {
2085
+ var reader = new jspb.BinaryReader(bytes);
2086
+ var msg = new proto.ItemTransactionPriceCondition;
2087
+ return proto.ItemTransactionPriceCondition.deserializeBinaryFromReader(msg, reader);
2088
+ };
2089
+
2090
+
2091
+ /**
2092
+ * Deserializes binary data (in protobuf wire format) from the
2093
+ * given reader into the given message object.
2094
+ * @param {!proto.ItemTransactionPriceCondition} msg The message object to deserialize into.
2095
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2096
+ * @return {!proto.ItemTransactionPriceCondition}
2097
+ */
2098
+ proto.ItemTransactionPriceCondition.deserializeBinaryFromReader = function(msg, reader) {
2099
+ while (reader.nextField()) {
2100
+ if (reader.isEndGroup()) {
2101
+ break;
2102
+ }
2103
+ var field = reader.getFieldNumber();
2104
+ switch (field) {
2105
+ case 1:
2106
+ var value = /** @type {number} */ (reader.readInt64());
2107
+ msg.setId(value);
2108
+ break;
2109
+ case 2:
2110
+ var value = /** @type {string} */ (reader.readString());
2111
+ msg.setAmount(value);
2112
+ break;
2113
+ case 3:
2114
+ var value = /** @type {string} */ (reader.readString());
2115
+ msg.setOperator(value);
2116
+ break;
2117
+ case 4:
2118
+ var value = /** @type {number} */ (reader.readFloat());
2119
+ msg.setDivide(value);
2120
+ break;
2121
+ case 5:
2122
+ var value = /** @type {string} */ (reader.readString());
2123
+ msg.setType(value);
2124
+ break;
2125
+ case 6:
2126
+ var value = /** @type {string} */ (reader.readString());
2127
+ msg.setName(value);
2128
+ break;
2129
+ case 7:
2130
+ var value = /** @type {string} */ (reader.readString());
2131
+ msg.setItemTransactionRef(value);
2132
+ break;
2133
+ case 8:
2134
+ var value = /** @type {string} */ (reader.readString());
2135
+ msg.setReferencesId(value);
2136
+ break;
2137
+ case 9:
2138
+ var value = /** @type {string} */ (reader.readString());
2139
+ msg.setCreatedAt(value);
2140
+ break;
2141
+ case 10:
2142
+ var value = /** @type {string} */ (reader.readString());
2143
+ msg.setUpdatedAt(value);
2144
+ break;
2145
+ case 11:
2146
+ var value = /** @type {string} */ (reader.readString());
2147
+ msg.setCode(value);
2148
+ break;
2149
+ case 12:
2150
+ var value = /** @type {boolean} */ (reader.readBool());
2151
+ msg.setIsGeneral(value);
2152
+ break;
2153
+ case 13:
2154
+ var value = /** @type {string} */ (reader.readString());
2155
+ msg.setProperties(value);
2156
+ break;
2157
+ default:
2158
+ reader.skipField();
2159
+ break;
2160
+ }
2161
+ }
2162
+ return msg;
2163
+ };
2164
+
2165
+
2166
+ /**
2167
+ * Serializes the message to binary data (in protobuf wire format).
2168
+ * @return {!Uint8Array}
2169
+ */
2170
+ proto.ItemTransactionPriceCondition.prototype.serializeBinary = function() {
2171
+ var writer = new jspb.BinaryWriter();
2172
+ proto.ItemTransactionPriceCondition.serializeBinaryToWriter(this, writer);
2173
+ return writer.getResultBuffer();
2174
+ };
2175
+
2176
+
2177
+ /**
2178
+ * Serializes the given message to binary data (in protobuf wire
2179
+ * format), writing to the given BinaryWriter.
2180
+ * @param {!proto.ItemTransactionPriceCondition} message
2181
+ * @param {!jspb.BinaryWriter} writer
2182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2183
+ */
2184
+ proto.ItemTransactionPriceCondition.serializeBinaryToWriter = function(message, writer) {
2185
+ var f = undefined;
2186
+ f = message.getId();
2187
+ if (f !== 0) {
2188
+ writer.writeInt64(
2189
+ 1,
2190
+ f
2191
+ );
2192
+ }
2193
+ f = message.getAmount();
2194
+ if (f.length > 0) {
2195
+ writer.writeString(
2196
+ 2,
2197
+ f
2198
+ );
2199
+ }
2200
+ f = message.getOperator();
2201
+ if (f.length > 0) {
2202
+ writer.writeString(
2203
+ 3,
2204
+ f
2205
+ );
2206
+ }
2207
+ f = message.getDivide();
2208
+ if (f !== 0.0) {
2209
+ writer.writeFloat(
2210
+ 4,
2211
+ f
2212
+ );
2213
+ }
2214
+ f = message.getType();
2215
+ if (f.length > 0) {
2216
+ writer.writeString(
2217
+ 5,
2218
+ f
2219
+ );
2220
+ }
2221
+ f = message.getName();
2222
+ if (f.length > 0) {
2223
+ writer.writeString(
2224
+ 6,
2225
+ f
2226
+ );
2227
+ }
2228
+ f = message.getItemTransactionRef();
2229
+ if (f.length > 0) {
2230
+ writer.writeString(
2231
+ 7,
2232
+ f
2233
+ );
2234
+ }
2235
+ f = message.getReferencesId();
2236
+ if (f.length > 0) {
2237
+ writer.writeString(
2238
+ 8,
2239
+ f
2240
+ );
2241
+ }
2242
+ f = message.getCreatedAt();
2243
+ if (f.length > 0) {
2244
+ writer.writeString(
2245
+ 9,
2246
+ f
2247
+ );
2248
+ }
2249
+ f = message.getUpdatedAt();
2250
+ if (f.length > 0) {
2251
+ writer.writeString(
2252
+ 10,
2253
+ f
2254
+ );
2255
+ }
2256
+ f = message.getCode();
2257
+ if (f.length > 0) {
2258
+ writer.writeString(
2259
+ 11,
2260
+ f
2261
+ );
2262
+ }
2263
+ f = message.getIsGeneral();
2264
+ if (f) {
2265
+ writer.writeBool(
2266
+ 12,
2267
+ f
2268
+ );
2269
+ }
2270
+ f = message.getProperties();
2271
+ if (f.length > 0) {
2272
+ writer.writeString(
2273
+ 13,
2274
+ f
2275
+ );
2276
+ }
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * optional int64 id = 1;
2282
+ * @return {number}
2283
+ */
2284
+ proto.ItemTransactionPriceCondition.prototype.getId = function() {
2285
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2286
+ };
2287
+
2288
+
2289
+ /**
2290
+ * @param {number} value
2291
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2292
+ */
2293
+ proto.ItemTransactionPriceCondition.prototype.setId = function(value) {
2294
+ return jspb.Message.setProto3IntField(this, 1, value);
2295
+ };
2296
+
2297
+
2298
+ /**
2299
+ * optional string amount = 2;
2300
+ * @return {string}
2301
+ */
2302
+ proto.ItemTransactionPriceCondition.prototype.getAmount = function() {
2303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2304
+ };
2305
+
2306
+
2307
+ /**
2308
+ * @param {string} value
2309
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2310
+ */
2311
+ proto.ItemTransactionPriceCondition.prototype.setAmount = function(value) {
2312
+ return jspb.Message.setProto3StringField(this, 2, value);
2313
+ };
2314
+
2315
+
2316
+ /**
2317
+ * optional string operator = 3;
2318
+ * @return {string}
2319
+ */
2320
+ proto.ItemTransactionPriceCondition.prototype.getOperator = function() {
2321
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2322
+ };
2323
+
2324
+
2325
+ /**
2326
+ * @param {string} value
2327
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2328
+ */
2329
+ proto.ItemTransactionPriceCondition.prototype.setOperator = function(value) {
2330
+ return jspb.Message.setProto3StringField(this, 3, value);
2331
+ };
2332
+
2333
+
2334
+ /**
2335
+ * optional float divide = 4;
2336
+ * @return {number}
2337
+ */
2338
+ proto.ItemTransactionPriceCondition.prototype.getDivide = function() {
2339
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2340
+ };
2341
+
2342
+
2343
+ /**
2344
+ * @param {number} value
2345
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2346
+ */
2347
+ proto.ItemTransactionPriceCondition.prototype.setDivide = function(value) {
2348
+ return jspb.Message.setProto3FloatField(this, 4, value);
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * optional string type = 5;
2354
+ * @return {string}
2355
+ */
2356
+ proto.ItemTransactionPriceCondition.prototype.getType = function() {
2357
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * @param {string} value
2363
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2364
+ */
2365
+ proto.ItemTransactionPriceCondition.prototype.setType = function(value) {
2366
+ return jspb.Message.setProto3StringField(this, 5, value);
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * optional string name = 6;
2372
+ * @return {string}
2373
+ */
2374
+ proto.ItemTransactionPriceCondition.prototype.getName = function() {
2375
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2376
+ };
2377
+
2378
+
2379
+ /**
2380
+ * @param {string} value
2381
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2382
+ */
2383
+ proto.ItemTransactionPriceCondition.prototype.setName = function(value) {
2384
+ return jspb.Message.setProto3StringField(this, 6, value);
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * optional string item_transaction_ref = 7;
2390
+ * @return {string}
2391
+ */
2392
+ proto.ItemTransactionPriceCondition.prototype.getItemTransactionRef = function() {
2393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2394
+ };
2395
+
2396
+
2397
+ /**
2398
+ * @param {string} value
2399
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2400
+ */
2401
+ proto.ItemTransactionPriceCondition.prototype.setItemTransactionRef = function(value) {
2402
+ return jspb.Message.setProto3StringField(this, 7, value);
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * optional string references_id = 8;
2408
+ * @return {string}
2409
+ */
2410
+ proto.ItemTransactionPriceCondition.prototype.getReferencesId = function() {
2411
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2412
+ };
2413
+
2414
+
2415
+ /**
2416
+ * @param {string} value
2417
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2418
+ */
2419
+ proto.ItemTransactionPriceCondition.prototype.setReferencesId = function(value) {
2420
+ return jspb.Message.setProto3StringField(this, 8, value);
2421
+ };
2422
+
2423
+
2424
+ /**
2425
+ * optional string created_at = 9;
2426
+ * @return {string}
2427
+ */
2428
+ proto.ItemTransactionPriceCondition.prototype.getCreatedAt = function() {
2429
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2430
+ };
2431
+
2432
+
2433
+ /**
2434
+ * @param {string} value
2435
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2436
+ */
2437
+ proto.ItemTransactionPriceCondition.prototype.setCreatedAt = function(value) {
2438
+ return jspb.Message.setProto3StringField(this, 9, value);
2439
+ };
2440
+
2441
+
2442
+ /**
2443
+ * optional string updated_at = 10;
2444
+ * @return {string}
2445
+ */
2446
+ proto.ItemTransactionPriceCondition.prototype.getUpdatedAt = function() {
2447
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2448
+ };
2449
+
2450
+
2451
+ /**
2452
+ * @param {string} value
2453
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2454
+ */
2455
+ proto.ItemTransactionPriceCondition.prototype.setUpdatedAt = function(value) {
2456
+ return jspb.Message.setProto3StringField(this, 10, value);
2457
+ };
2458
+
2459
+
2460
+ /**
2461
+ * optional string code = 11;
2462
+ * @return {string}
2463
+ */
2464
+ proto.ItemTransactionPriceCondition.prototype.getCode = function() {
2465
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2466
+ };
2467
+
2468
+
2469
+ /**
2470
+ * @param {string} value
2471
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2472
+ */
2473
+ proto.ItemTransactionPriceCondition.prototype.setCode = function(value) {
2474
+ return jspb.Message.setProto3StringField(this, 11, value);
2475
+ };
2476
+
2477
+
2478
+ /**
2479
+ * optional bool is_general = 12;
2480
+ * @return {boolean}
2481
+ */
2482
+ proto.ItemTransactionPriceCondition.prototype.getIsGeneral = function() {
2483
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
2484
+ };
2485
+
2486
+
2487
+ /**
2488
+ * @param {boolean} value
2489
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2490
+ */
2491
+ proto.ItemTransactionPriceCondition.prototype.setIsGeneral = function(value) {
2492
+ return jspb.Message.setProto3BooleanField(this, 12, value);
2493
+ };
2494
+
2495
+
2496
+ /**
2497
+ * optional string properties = 13;
2498
+ * @return {string}
2499
+ */
2500
+ proto.ItemTransactionPriceCondition.prototype.getProperties = function() {
2501
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2502
+ };
2503
+
2504
+
2505
+ /**
2506
+ * @param {string} value
2507
+ * @return {!proto.ItemTransactionPriceCondition} returns this
2508
+ */
2509
+ proto.ItemTransactionPriceCondition.prototype.setProperties = function(value) {
2510
+ return jspb.Message.setProto3StringField(this, 13, value);
2511
+ };
2512
+
2513
+
2514
+
2515
+ /**
2516
+ * List of repeated fields within this message type.
2517
+ * @private {!Array<number>}
2518
+ * @const
2519
+ */
2520
+ proto.BaseItemTransaction.repeatedFields_ = [13,14,17];
2521
+
2522
+
2523
+
2524
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2525
+ /**
2526
+ * Creates an object representation of this proto.
2527
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2528
+ * Optional fields that are not set will be set to undefined.
2529
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2530
+ * For the list of reserved names please see:
2531
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2532
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2533
+ * JSPB instance for transitional soy proto support:
2534
+ * http://goto/soy-param-migration
2535
+ * @return {!Object}
2536
+ */
2537
+ proto.BaseItemTransaction.prototype.toObject = function(opt_includeInstance) {
2538
+ return proto.BaseItemTransaction.toObject(opt_includeInstance, this);
2539
+ };
2540
+
2541
+
2542
+ /**
2543
+ * Static version of the {@see toObject} method.
2544
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2545
+ * the JSPB instance for transitional soy proto support:
2546
+ * http://goto/soy-param-migration
2547
+ * @param {!proto.BaseItemTransaction} msg The msg instance to transform.
2548
+ * @return {!Object}
2549
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2550
+ */
2551
+ proto.BaseItemTransaction.toObject = function(includeInstance, msg) {
2552
+ var f, obj = {
2553
+ transactionReferences: jspb.Message.getFieldWithDefault(msg, 1, ""),
2554
+ accAssigment: jspb.Message.getFieldWithDefault(msg, 2, ""),
2555
+ materialGroup: jspb.Message.getFieldWithDefault(msg, 3, ""),
2556
+ materialCode: jspb.Message.getFieldWithDefault(msg, 4, ""),
2557
+ detailDescription: jspb.Message.getFieldWithDefault(msg, 5, ""),
2558
+ description: jspb.Message.getFieldWithDefault(msg, 6, ""),
2559
+ quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
2560
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 8, ""),
2561
+ estimatedUnitPrice: jspb.Message.getFieldWithDefault(msg, 9, ""),
2562
+ deliveryDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
2563
+ plannedDeliveryTime: jspb.Message.getFieldWithDefault(msg, 11, ""),
2564
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
2565
+ itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
2566
+ proto.BaseItemTransactionDetail.toObject, includeInstance),
2567
+ itemTransactionPriceConditionList: jspb.Message.toObjectList(msg.getItemTransactionPriceConditionList(),
2568
+ proto.BaseItemTransactionPriceCondition.toObject, includeInstance),
2569
+ previousReferences: jspb.Message.getFieldWithDefault(msg, 15, ""),
2570
+ previousTransactionReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
2571
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
2572
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2573
+ currency: jspb.Message.getFieldWithDefault(msg, 18, ""),
2574
+ referencesId: jspb.Message.getFieldWithDefault(msg, 19, ""),
2575
+ purchaseRequisitionTransactionNumber: jspb.Message.getFieldWithDefault(msg, 20, "")
2576
+ };
2577
+
2578
+ if (includeInstance) {
2579
+ obj.$jspbMessageInstance = msg;
2580
+ }
2581
+ return obj;
2582
+ };
2583
+ }
2584
+
2585
+
2586
+ /**
2587
+ * Deserializes binary data (in protobuf wire format).
2588
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2589
+ * @return {!proto.BaseItemTransaction}
2590
+ */
2591
+ proto.BaseItemTransaction.deserializeBinary = function(bytes) {
2592
+ var reader = new jspb.BinaryReader(bytes);
2593
+ var msg = new proto.BaseItemTransaction;
2594
+ return proto.BaseItemTransaction.deserializeBinaryFromReader(msg, reader);
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * Deserializes binary data (in protobuf wire format) from the
2600
+ * given reader into the given message object.
2601
+ * @param {!proto.BaseItemTransaction} msg The message object to deserialize into.
2602
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2603
+ * @return {!proto.BaseItemTransaction}
2604
+ */
2605
+ proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
2606
+ while (reader.nextField()) {
2607
+ if (reader.isEndGroup()) {
2608
+ break;
2609
+ }
2610
+ var field = reader.getFieldNumber();
2611
+ switch (field) {
2612
+ case 1:
2613
+ var value = /** @type {string} */ (reader.readString());
2614
+ msg.setTransactionReferences(value);
2615
+ break;
2616
+ case 2:
2617
+ var value = /** @type {string} */ (reader.readString());
2618
+ msg.setAccAssigment(value);
2619
+ break;
2620
+ case 3:
2621
+ var value = /** @type {string} */ (reader.readString());
2622
+ msg.setMaterialGroup(value);
2623
+ break;
2624
+ case 4:
2625
+ var value = /** @type {string} */ (reader.readString());
2626
+ msg.setMaterialCode(value);
2627
+ break;
2628
+ case 5:
2629
+ var value = /** @type {string} */ (reader.readString());
2630
+ msg.setDetailDescription(value);
2631
+ break;
2632
+ case 6:
2633
+ var value = /** @type {string} */ (reader.readString());
2634
+ msg.setDescription(value);
2635
+ break;
2636
+ case 7:
2637
+ var value = /** @type {string} */ (reader.readString());
2638
+ msg.setQuantity(value);
2639
+ break;
2640
+ case 8:
2641
+ var value = /** @type {string} */ (reader.readString());
2642
+ msg.setUnitOfMeasure(value);
2643
+ break;
2644
+ case 9:
2645
+ var value = /** @type {string} */ (reader.readString());
2646
+ msg.setEstimatedUnitPrice(value);
2647
+ break;
2648
+ case 10:
2649
+ var value = /** @type {string} */ (reader.readString());
2650
+ msg.setDeliveryDate(value);
2651
+ break;
2652
+ case 11:
2653
+ var value = /** @type {string} */ (reader.readString());
2654
+ msg.setPlannedDeliveryTime(value);
2655
+ break;
2656
+ case 12:
2657
+ var value = /** @type {string} */ (reader.readString());
2658
+ msg.setCustomTransaction(value);
2659
+ break;
2660
+ case 13:
2661
+ var value = new proto.BaseItemTransactionDetail;
2662
+ reader.readMessage(value,proto.BaseItemTransactionDetail.deserializeBinaryFromReader);
2663
+ msg.addItemTransactionDetail(value);
2664
+ break;
2665
+ case 14:
2666
+ var value = new proto.BaseItemTransactionPriceCondition;
2667
+ reader.readMessage(value,proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader);
2668
+ msg.addItemTransactionPriceCondition(value);
2669
+ break;
2670
+ case 15:
2671
+ var value = /** @type {string} */ (reader.readString());
2672
+ msg.setPreviousReferences(value);
2673
+ break;
2674
+ case 16:
2675
+ var value = /** @type {string} */ (reader.readString());
2676
+ msg.setPreviousTransactionReferences(value);
2677
+ break;
2678
+ case 17:
2679
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2680
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2681
+ msg.addFiles(value);
2682
+ break;
2683
+ case 18:
2684
+ var value = /** @type {string} */ (reader.readString());
2685
+ msg.setCurrency(value);
2686
+ break;
2687
+ case 19:
2688
+ var value = /** @type {string} */ (reader.readString());
2689
+ msg.setReferencesId(value);
2690
+ break;
2691
+ case 20:
2692
+ var value = /** @type {string} */ (reader.readString());
2693
+ msg.setPurchaseRequisitionTransactionNumber(value);
2694
+ break;
2695
+ default:
2696
+ reader.skipField();
2697
+ break;
2698
+ }
2699
+ }
2700
+ return msg;
2701
+ };
2702
+
2703
+
2704
+ /**
2705
+ * Serializes the message to binary data (in protobuf wire format).
2706
+ * @return {!Uint8Array}
2707
+ */
2708
+ proto.BaseItemTransaction.prototype.serializeBinary = function() {
2709
+ var writer = new jspb.BinaryWriter();
2710
+ proto.BaseItemTransaction.serializeBinaryToWriter(this, writer);
2711
+ return writer.getResultBuffer();
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * Serializes the given message to binary data (in protobuf wire
2717
+ * format), writing to the given BinaryWriter.
2718
+ * @param {!proto.BaseItemTransaction} message
2719
+ * @param {!jspb.BinaryWriter} writer
2720
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2721
+ */
2722
+ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
2723
+ var f = undefined;
2724
+ f = message.getTransactionReferences();
2725
+ if (f.length > 0) {
2726
+ writer.writeString(
2727
+ 1,
2728
+ f
2729
+ );
2730
+ }
2731
+ f = message.getAccAssigment();
2732
+ if (f.length > 0) {
2733
+ writer.writeString(
2734
+ 2,
2735
+ f
2736
+ );
2737
+ }
2738
+ f = message.getMaterialGroup();
2739
+ if (f.length > 0) {
2740
+ writer.writeString(
2741
+ 3,
2742
+ f
2743
+ );
2744
+ }
2745
+ f = message.getMaterialCode();
2746
+ if (f.length > 0) {
2747
+ writer.writeString(
2748
+ 4,
2749
+ f
2750
+ );
2751
+ }
2752
+ f = message.getDetailDescription();
2753
+ if (f.length > 0) {
2754
+ writer.writeString(
2755
+ 5,
2756
+ f
2757
+ );
2758
+ }
2759
+ f = message.getDescription();
2760
+ if (f.length > 0) {
2761
+ writer.writeString(
2762
+ 6,
2763
+ f
2764
+ );
2765
+ }
2766
+ f = message.getQuantity();
2767
+ if (f.length > 0) {
2768
+ writer.writeString(
2769
+ 7,
2770
+ f
2771
+ );
2772
+ }
2773
+ f = message.getUnitOfMeasure();
2774
+ if (f.length > 0) {
2775
+ writer.writeString(
2776
+ 8,
2777
+ f
2778
+ );
2779
+ }
2780
+ f = message.getEstimatedUnitPrice();
2781
+ if (f.length > 0) {
2782
+ writer.writeString(
2783
+ 9,
2784
+ f
2785
+ );
2786
+ }
2787
+ f = message.getDeliveryDate();
2788
+ if (f.length > 0) {
2789
+ writer.writeString(
2790
+ 10,
2791
+ f
2792
+ );
2793
+ }
2794
+ f = message.getPlannedDeliveryTime();
2795
+ if (f.length > 0) {
2796
+ writer.writeString(
2797
+ 11,
2798
+ f
2799
+ );
2800
+ }
2801
+ f = message.getCustomTransaction();
2802
+ if (f.length > 0) {
2803
+ writer.writeString(
2804
+ 12,
2805
+ f
2806
+ );
2807
+ }
2808
+ f = message.getItemTransactionDetailList();
2809
+ if (f.length > 0) {
2810
+ writer.writeRepeatedMessage(
2811
+ 13,
2812
+ f,
2813
+ proto.BaseItemTransactionDetail.serializeBinaryToWriter
2814
+ );
2815
+ }
2816
+ f = message.getItemTransactionPriceConditionList();
2817
+ if (f.length > 0) {
2818
+ writer.writeRepeatedMessage(
2819
+ 14,
2820
+ f,
2821
+ proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter
2822
+ );
2823
+ }
2824
+ f = message.getPreviousReferences();
2825
+ if (f.length > 0) {
2826
+ writer.writeString(
2827
+ 15,
2828
+ f
2829
+ );
2830
+ }
2831
+ f = message.getPreviousTransactionReferences();
2832
+ if (f.length > 0) {
2833
+ writer.writeString(
2834
+ 16,
2835
+ f
2836
+ );
2837
+ }
2838
+ f = message.getFilesList();
2839
+ if (f.length > 0) {
2840
+ writer.writeRepeatedMessage(
2841
+ 17,
2842
+ f,
2843
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
2844
+ );
2845
+ }
2846
+ f = message.getCurrency();
2847
+ if (f.length > 0) {
2848
+ writer.writeString(
2849
+ 18,
2850
+ f
2851
+ );
2852
+ }
2853
+ f = message.getReferencesId();
2854
+ if (f.length > 0) {
2855
+ writer.writeString(
2856
+ 19,
2857
+ f
2858
+ );
2859
+ }
2860
+ f = message.getPurchaseRequisitionTransactionNumber();
2861
+ if (f.length > 0) {
2862
+ writer.writeString(
2863
+ 20,
2864
+ f
2865
+ );
2866
+ }
2867
+ };
2868
+
2869
+
2870
+ /**
2871
+ * optional string transaction_references = 1;
2872
+ * @return {string}
2873
+ */
2874
+ proto.BaseItemTransaction.prototype.getTransactionReferences = function() {
2875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2876
+ };
2877
+
2878
+
2879
+ /**
2880
+ * @param {string} value
2881
+ * @return {!proto.BaseItemTransaction} returns this
2882
+ */
2883
+ proto.BaseItemTransaction.prototype.setTransactionReferences = function(value) {
2884
+ return jspb.Message.setProto3StringField(this, 1, value);
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * optional string acc_assigment = 2;
2890
+ * @return {string}
2891
+ */
2892
+ proto.BaseItemTransaction.prototype.getAccAssigment = function() {
2893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * @param {string} value
2899
+ * @return {!proto.BaseItemTransaction} returns this
2900
+ */
2901
+ proto.BaseItemTransaction.prototype.setAccAssigment = function(value) {
2902
+ return jspb.Message.setProto3StringField(this, 2, value);
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * optional string material_group = 3;
2908
+ * @return {string}
2909
+ */
2910
+ proto.BaseItemTransaction.prototype.getMaterialGroup = function() {
2911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2912
+ };
2913
+
2914
+
2915
+ /**
2916
+ * @param {string} value
2917
+ * @return {!proto.BaseItemTransaction} returns this
2918
+ */
2919
+ proto.BaseItemTransaction.prototype.setMaterialGroup = function(value) {
2920
+ return jspb.Message.setProto3StringField(this, 3, value);
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * optional string material_code = 4;
2926
+ * @return {string}
2927
+ */
2928
+ proto.BaseItemTransaction.prototype.getMaterialCode = function() {
2929
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2930
+ };
2931
+
2932
+
2933
+ /**
2934
+ * @param {string} value
2935
+ * @return {!proto.BaseItemTransaction} returns this
2936
+ */
2937
+ proto.BaseItemTransaction.prototype.setMaterialCode = function(value) {
2938
+ return jspb.Message.setProto3StringField(this, 4, value);
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * optional string detail_description = 5;
2944
+ * @return {string}
2945
+ */
2946
+ proto.BaseItemTransaction.prototype.getDetailDescription = function() {
2947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2948
+ };
2949
+
2950
+
2951
+ /**
2952
+ * @param {string} value
2953
+ * @return {!proto.BaseItemTransaction} returns this
2954
+ */
2955
+ proto.BaseItemTransaction.prototype.setDetailDescription = function(value) {
2956
+ return jspb.Message.setProto3StringField(this, 5, value);
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * optional string description = 6;
2962
+ * @return {string}
2963
+ */
2964
+ proto.BaseItemTransaction.prototype.getDescription = function() {
2965
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2966
+ };
2967
+
2968
+
2969
+ /**
2970
+ * @param {string} value
2971
+ * @return {!proto.BaseItemTransaction} returns this
2972
+ */
2973
+ proto.BaseItemTransaction.prototype.setDescription = function(value) {
2974
+ return jspb.Message.setProto3StringField(this, 6, value);
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * optional string quantity = 7;
2980
+ * @return {string}
2981
+ */
2982
+ proto.BaseItemTransaction.prototype.getQuantity = function() {
2983
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * @param {string} value
2989
+ * @return {!proto.BaseItemTransaction} returns this
2990
+ */
2991
+ proto.BaseItemTransaction.prototype.setQuantity = function(value) {
2992
+ return jspb.Message.setProto3StringField(this, 7, value);
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * optional string unit_of_measure = 8;
2998
+ * @return {string}
2999
+ */
3000
+ proto.BaseItemTransaction.prototype.getUnitOfMeasure = function() {
3001
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * @param {string} value
3007
+ * @return {!proto.BaseItemTransaction} returns this
3008
+ */
3009
+ proto.BaseItemTransaction.prototype.setUnitOfMeasure = function(value) {
3010
+ return jspb.Message.setProto3StringField(this, 8, value);
3011
+ };
3012
+
3013
+
3014
+ /**
3015
+ * optional string estimated_unit_price = 9;
3016
+ * @return {string}
3017
+ */
3018
+ proto.BaseItemTransaction.prototype.getEstimatedUnitPrice = function() {
3019
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3020
+ };
3021
+
3022
+
3023
+ /**
3024
+ * @param {string} value
3025
+ * @return {!proto.BaseItemTransaction} returns this
3026
+ */
3027
+ proto.BaseItemTransaction.prototype.setEstimatedUnitPrice = function(value) {
3028
+ return jspb.Message.setProto3StringField(this, 9, value);
3029
+ };
3030
+
3031
+
3032
+ /**
3033
+ * optional string delivery_date = 10;
3034
+ * @return {string}
3035
+ */
3036
+ proto.BaseItemTransaction.prototype.getDeliveryDate = function() {
3037
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3038
+ };
3039
+
3040
+
3041
+ /**
3042
+ * @param {string} value
3043
+ * @return {!proto.BaseItemTransaction} returns this
3044
+ */
3045
+ proto.BaseItemTransaction.prototype.setDeliveryDate = function(value) {
3046
+ return jspb.Message.setProto3StringField(this, 10, value);
3047
+ };
3048
+
3049
+
3050
+ /**
3051
+ * optional string planned_delivery_time = 11;
3052
+ * @return {string}
3053
+ */
3054
+ proto.BaseItemTransaction.prototype.getPlannedDeliveryTime = function() {
3055
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3056
+ };
3057
+
3058
+
3059
+ /**
3060
+ * @param {string} value
3061
+ * @return {!proto.BaseItemTransaction} returns this
3062
+ */
3063
+ proto.BaseItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
3064
+ return jspb.Message.setProto3StringField(this, 11, value);
3065
+ };
3066
+
3067
+
3068
+ /**
3069
+ * optional string custom_transaction = 12;
3070
+ * @return {string}
3071
+ */
3072
+ proto.BaseItemTransaction.prototype.getCustomTransaction = function() {
3073
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3074
+ };
3075
+
3076
+
3077
+ /**
3078
+ * @param {string} value
3079
+ * @return {!proto.BaseItemTransaction} returns this
3080
+ */
3081
+ proto.BaseItemTransaction.prototype.setCustomTransaction = function(value) {
3082
+ return jspb.Message.setProto3StringField(this, 12, value);
3083
+ };
3084
+
3085
+
3086
+ /**
3087
+ * repeated BaseItemTransactionDetail item_transaction_detail = 13;
3088
+ * @return {!Array<!proto.BaseItemTransactionDetail>}
3089
+ */
3090
+ proto.BaseItemTransaction.prototype.getItemTransactionDetailList = function() {
3091
+ return /** @type{!Array<!proto.BaseItemTransactionDetail>} */ (
3092
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseItemTransactionDetail, 13));
3093
+ };
3094
+
3095
+
3096
+ /**
3097
+ * @param {!Array<!proto.BaseItemTransactionDetail>} value
3098
+ * @return {!proto.BaseItemTransaction} returns this
3099
+ */
3100
+ proto.BaseItemTransaction.prototype.setItemTransactionDetailList = function(value) {
3101
+ return jspb.Message.setRepeatedWrapperField(this, 13, value);
3102
+ };
3103
+
3104
+
3105
+ /**
3106
+ * @param {!proto.BaseItemTransactionDetail=} opt_value
3107
+ * @param {number=} opt_index
3108
+ * @return {!proto.BaseItemTransactionDetail}
3109
+ */
3110
+ proto.BaseItemTransaction.prototype.addItemTransactionDetail = function(opt_value, opt_index) {
3111
+ return jspb.Message.addToRepeatedWrapperField(this, 13, opt_value, proto.BaseItemTransactionDetail, opt_index);
3112
+ };
3113
+
3114
+
3115
+ /**
3116
+ * Clears the list making it empty but non-null.
3117
+ * @return {!proto.BaseItemTransaction} returns this
3118
+ */
3119
+ proto.BaseItemTransaction.prototype.clearItemTransactionDetailList = function() {
3120
+ return this.setItemTransactionDetailList([]);
3121
+ };
3122
+
3123
+
3124
+ /**
3125
+ * repeated BaseItemTransactionPriceCondition item_transaction_price_condition = 14;
3126
+ * @return {!Array<!proto.BaseItemTransactionPriceCondition>}
3127
+ */
3128
+ proto.BaseItemTransaction.prototype.getItemTransactionPriceConditionList = function() {
3129
+ return /** @type{!Array<!proto.BaseItemTransactionPriceCondition>} */ (
3130
+ jspb.Message.getRepeatedWrapperField(this, proto.BaseItemTransactionPriceCondition, 14));
3131
+ };
3132
+
3133
+
3134
+ /**
3135
+ * @param {!Array<!proto.BaseItemTransactionPriceCondition>} value
3136
+ * @return {!proto.BaseItemTransaction} returns this
3137
+ */
3138
+ proto.BaseItemTransaction.prototype.setItemTransactionPriceConditionList = function(value) {
3139
+ return jspb.Message.setRepeatedWrapperField(this, 14, value);
3140
+ };
3141
+
3142
+
3143
+ /**
3144
+ * @param {!proto.BaseItemTransactionPriceCondition=} opt_value
3145
+ * @param {number=} opt_index
3146
+ * @return {!proto.BaseItemTransactionPriceCondition}
3147
+ */
3148
+ proto.BaseItemTransaction.prototype.addItemTransactionPriceCondition = function(opt_value, opt_index) {
3149
+ return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.BaseItemTransactionPriceCondition, opt_index);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Clears the list making it empty but non-null.
3155
+ * @return {!proto.BaseItemTransaction} returns this
3156
+ */
3157
+ proto.BaseItemTransaction.prototype.clearItemTransactionPriceConditionList = function() {
3158
+ return this.setItemTransactionPriceConditionList([]);
3159
+ };
3160
+
3161
+
3162
+ /**
3163
+ * optional string previous_references = 15;
3164
+ * @return {string}
3165
+ */
3166
+ proto.BaseItemTransaction.prototype.getPreviousReferences = function() {
3167
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3168
+ };
3169
+
3170
+
3171
+ /**
3172
+ * @param {string} value
3173
+ * @return {!proto.BaseItemTransaction} returns this
3174
+ */
3175
+ proto.BaseItemTransaction.prototype.setPreviousReferences = function(value) {
3176
+ return jspb.Message.setProto3StringField(this, 15, value);
3177
+ };
3178
+
3179
+
3180
+ /**
3181
+ * optional string previous_transaction_references = 16;
3182
+ * @return {string}
3183
+ */
3184
+ proto.BaseItemTransaction.prototype.getPreviousTransactionReferences = function() {
3185
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3186
+ };
3187
+
3188
+
3189
+ /**
3190
+ * @param {string} value
3191
+ * @return {!proto.BaseItemTransaction} returns this
3192
+ */
3193
+ proto.BaseItemTransaction.prototype.setPreviousTransactionReferences = function(value) {
3194
+ return jspb.Message.setProto3StringField(this, 16, value);
3195
+ };
3196
+
3197
+
3198
+ /**
3199
+ * repeated FileUploadReferencesReq files = 17;
3200
+ * @return {!Array<!proto.FileUploadReferencesReq>}
3201
+ */
3202
+ proto.BaseItemTransaction.prototype.getFilesList = function() {
3203
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3204
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 17));
3205
+ };
3206
+
3207
+
3208
+ /**
3209
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
3210
+ * @return {!proto.BaseItemTransaction} returns this
3211
+ */
3212
+ proto.BaseItemTransaction.prototype.setFilesList = function(value) {
3213
+ return jspb.Message.setRepeatedWrapperField(this, 17, value);
3214
+ };
3215
+
3216
+
3217
+ /**
3218
+ * @param {!proto.FileUploadReferencesReq=} opt_value
3219
+ * @param {number=} opt_index
3220
+ * @return {!proto.FileUploadReferencesReq}
3221
+ */
3222
+ proto.BaseItemTransaction.prototype.addFiles = function(opt_value, opt_index) {
3223
+ return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.FileUploadReferencesReq, opt_index);
3224
+ };
3225
+
3226
+
3227
+ /**
3228
+ * Clears the list making it empty but non-null.
3229
+ * @return {!proto.BaseItemTransaction} returns this
3230
+ */
3231
+ proto.BaseItemTransaction.prototype.clearFilesList = function() {
3232
+ return this.setFilesList([]);
3233
+ };
3234
+
3235
+
3236
+ /**
3237
+ * optional string currency = 18;
3238
+ * @return {string}
3239
+ */
3240
+ proto.BaseItemTransaction.prototype.getCurrency = function() {
3241
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
3242
+ };
3243
+
3244
+
3245
+ /**
3246
+ * @param {string} value
3247
+ * @return {!proto.BaseItemTransaction} returns this
3248
+ */
3249
+ proto.BaseItemTransaction.prototype.setCurrency = function(value) {
3250
+ return jspb.Message.setProto3StringField(this, 18, value);
3251
+ };
3252
+
3253
+
3254
+ /**
3255
+ * optional string references_id = 19;
3256
+ * @return {string}
3257
+ */
3258
+ proto.BaseItemTransaction.prototype.getReferencesId = function() {
3259
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
3260
+ };
3261
+
3262
+
3263
+ /**
3264
+ * @param {string} value
3265
+ * @return {!proto.BaseItemTransaction} returns this
3266
+ */
3267
+ proto.BaseItemTransaction.prototype.setReferencesId = function(value) {
3268
+ return jspb.Message.setProto3StringField(this, 19, value);
3269
+ };
3270
+
3271
+
3272
+ /**
3273
+ * optional string purchase_requisition_transaction_number = 20;
3274
+ * @return {string}
3275
+ */
3276
+ proto.BaseItemTransaction.prototype.getPurchaseRequisitionTransactionNumber = function() {
3277
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
3278
+ };
3279
+
3280
+
3281
+ /**
3282
+ * @param {string} value
3283
+ * @return {!proto.BaseItemTransaction} returns this
3284
+ */
3285
+ proto.BaseItemTransaction.prototype.setPurchaseRequisitionTransactionNumber = function(value) {
3286
+ return jspb.Message.setProto3StringField(this, 20, value);
3287
+ };
3288
+
3289
+
3290
+
3291
+ /**
3292
+ * List of repeated fields within this message type.
3293
+ * @private {!Array<number>}
3294
+ * @const
3295
+ */
3296
+ proto.BaseItemTransactionDetail.repeatedFields_ = [18];
3297
+
3298
+
3299
+
3300
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3301
+ /**
3302
+ * Creates an object representation of this proto.
3303
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3304
+ * Optional fields that are not set will be set to undefined.
3305
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3306
+ * For the list of reserved names please see:
3307
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3308
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3309
+ * JSPB instance for transitional soy proto support:
3310
+ * http://goto/soy-param-migration
3311
+ * @return {!Object}
3312
+ */
3313
+ proto.BaseItemTransactionDetail.prototype.toObject = function(opt_includeInstance) {
3314
+ return proto.BaseItemTransactionDetail.toObject(opt_includeInstance, this);
3315
+ };
3316
+
3317
+
3318
+ /**
3319
+ * Static version of the {@see toObject} method.
3320
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3321
+ * the JSPB instance for transitional soy proto support:
3322
+ * http://goto/soy-param-migration
3323
+ * @param {!proto.BaseItemTransactionDetail} msg The msg instance to transform.
3324
+ * @return {!Object}
3325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3326
+ */
3327
+ proto.BaseItemTransactionDetail.toObject = function(includeInstance, msg) {
3328
+ var f, obj = {
3329
+ glAccount: jspb.Message.getFieldWithDefault(msg, 1, ""),
3330
+ glAccountDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
3331
+ unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 3, ""),
3332
+ valuationPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
3333
+ requisitioner: jspb.Message.getFieldWithDefault(msg, 5, ""),
3334
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 6, ""),
3335
+ distribution: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
3336
+ quantity: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
3337
+ assetNo: jspb.Message.getFieldWithDefault(msg, 9, ""),
3338
+ itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 10, ""),
3339
+ costCenter: jspb.Message.getFieldWithDefault(msg, 11, ""),
3340
+ orderNumber: jspb.Message.getFieldWithDefault(msg, 12, ""),
3341
+ orderDescription: jspb.Message.getFieldWithDefault(msg, 13, ""),
3342
+ serviceNo: jspb.Message.getFieldWithDefault(msg, 14, ""),
3343
+ serviceDescription: jspb.Message.getFieldWithDefault(msg, 15, ""),
3344
+ amountPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
3345
+ materialCode: jspb.Message.getFieldWithDefault(msg, 17, ""),
3346
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
3347
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance)
3348
+ };
3349
+
3350
+ if (includeInstance) {
3351
+ obj.$jspbMessageInstance = msg;
3352
+ }
3353
+ return obj;
3354
+ };
3355
+ }
3356
+
3357
+
3358
+ /**
3359
+ * Deserializes binary data (in protobuf wire format).
3360
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3361
+ * @return {!proto.BaseItemTransactionDetail}
3362
+ */
3363
+ proto.BaseItemTransactionDetail.deserializeBinary = function(bytes) {
3364
+ var reader = new jspb.BinaryReader(bytes);
3365
+ var msg = new proto.BaseItemTransactionDetail;
3366
+ return proto.BaseItemTransactionDetail.deserializeBinaryFromReader(msg, reader);
3367
+ };
3368
+
3369
+
3370
+ /**
3371
+ * Deserializes binary data (in protobuf wire format) from the
3372
+ * given reader into the given message object.
3373
+ * @param {!proto.BaseItemTransactionDetail} msg The message object to deserialize into.
3374
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3375
+ * @return {!proto.BaseItemTransactionDetail}
3376
+ */
3377
+ proto.BaseItemTransactionDetail.deserializeBinaryFromReader = function(msg, reader) {
3378
+ while (reader.nextField()) {
3379
+ if (reader.isEndGroup()) {
3380
+ break;
3381
+ }
3382
+ var field = reader.getFieldNumber();
3383
+ switch (field) {
3384
+ case 1:
3385
+ var value = /** @type {string} */ (reader.readString());
3386
+ msg.setGlAccount(value);
3387
+ break;
3388
+ case 2:
3389
+ var value = /** @type {string} */ (reader.readString());
3390
+ msg.setGlAccountDescription(value);
3391
+ break;
3392
+ case 3:
3393
+ var value = /** @type {string} */ (reader.readString());
3394
+ msg.setUnitOfMeasure(value);
3395
+ break;
3396
+ case 4:
3397
+ var value = /** @type {number} */ (reader.readFloat());
3398
+ msg.setValuationPrice(value);
3399
+ break;
3400
+ case 5:
3401
+ var value = /** @type {string} */ (reader.readString());
3402
+ msg.setRequisitioner(value);
3403
+ break;
3404
+ case 6:
3405
+ var value = /** @type {string} */ (reader.readString());
3406
+ msg.setCustomTransaction(value);
3407
+ break;
3408
+ case 7:
3409
+ var value = /** @type {number} */ (reader.readFloat());
3410
+ msg.setDistribution(value);
3411
+ break;
3412
+ case 8:
3413
+ var value = /** @type {number} */ (reader.readFloat());
3414
+ msg.setQuantity(value);
3415
+ break;
3416
+ case 9:
3417
+ var value = /** @type {string} */ (reader.readString());
3418
+ msg.setAssetNo(value);
3419
+ break;
3420
+ case 10:
3421
+ var value = /** @type {string} */ (reader.readString());
3422
+ msg.setItemTransactionRef(value);
3423
+ break;
3424
+ case 11:
3425
+ var value = /** @type {string} */ (reader.readString());
3426
+ msg.setCostCenter(value);
3427
+ break;
3428
+ case 12:
3429
+ var value = /** @type {string} */ (reader.readString());
3430
+ msg.setOrderNumber(value);
3431
+ break;
3432
+ case 13:
3433
+ var value = /** @type {string} */ (reader.readString());
3434
+ msg.setOrderDescription(value);
3435
+ break;
3436
+ case 14:
3437
+ var value = /** @type {string} */ (reader.readString());
3438
+ msg.setServiceNo(value);
3439
+ break;
3440
+ case 15:
3441
+ var value = /** @type {string} */ (reader.readString());
3442
+ msg.setServiceDescription(value);
3443
+ break;
3444
+ case 16:
3445
+ var value = /** @type {number} */ (reader.readFloat());
3446
+ msg.setAmountPrice(value);
3447
+ break;
3448
+ case 17:
3449
+ var value = /** @type {string} */ (reader.readString());
3450
+ msg.setMaterialCode(value);
3451
+ break;
3452
+ case 18:
3453
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3454
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3455
+ msg.addFiles(value);
3456
+ break;
3457
+ default:
3458
+ reader.skipField();
3459
+ break;
3460
+ }
3461
+ }
3462
+ return msg;
3463
+ };
3464
+
3465
+
3466
+ /**
3467
+ * Serializes the message to binary data (in protobuf wire format).
3468
+ * @return {!Uint8Array}
3469
+ */
3470
+ proto.BaseItemTransactionDetail.prototype.serializeBinary = function() {
3471
+ var writer = new jspb.BinaryWriter();
3472
+ proto.BaseItemTransactionDetail.serializeBinaryToWriter(this, writer);
3473
+ return writer.getResultBuffer();
3474
+ };
3475
+
3476
+
3477
+ /**
3478
+ * Serializes the given message to binary data (in protobuf wire
3479
+ * format), writing to the given BinaryWriter.
3480
+ * @param {!proto.BaseItemTransactionDetail} message
3481
+ * @param {!jspb.BinaryWriter} writer
3482
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3483
+ */
3484
+ proto.BaseItemTransactionDetail.serializeBinaryToWriter = function(message, writer) {
3485
+ var f = undefined;
3486
+ f = message.getGlAccount();
3487
+ if (f.length > 0) {
3488
+ writer.writeString(
3489
+ 1,
3490
+ f
3491
+ );
3492
+ }
3493
+ f = message.getGlAccountDescription();
3494
+ if (f.length > 0) {
3495
+ writer.writeString(
3496
+ 2,
3497
+ f
3498
+ );
3499
+ }
3500
+ f = message.getUnitOfMeasure();
3501
+ if (f.length > 0) {
3502
+ writer.writeString(
3503
+ 3,
3504
+ f
3505
+ );
3506
+ }
3507
+ f = message.getValuationPrice();
3508
+ if (f !== 0.0) {
3509
+ writer.writeFloat(
3510
+ 4,
3511
+ f
3512
+ );
3513
+ }
3514
+ f = message.getRequisitioner();
3515
+ if (f.length > 0) {
3516
+ writer.writeString(
3517
+ 5,
3518
+ f
3519
+ );
3520
+ }
3521
+ f = message.getCustomTransaction();
3522
+ if (f.length > 0) {
3523
+ writer.writeString(
3524
+ 6,
3525
+ f
3526
+ );
3527
+ }
3528
+ f = message.getDistribution();
3529
+ if (f !== 0.0) {
3530
+ writer.writeFloat(
3531
+ 7,
3532
+ f
3533
+ );
3534
+ }
3535
+ f = message.getQuantity();
3536
+ if (f !== 0.0) {
3537
+ writer.writeFloat(
3538
+ 8,
3539
+ f
3540
+ );
3541
+ }
3542
+ f = message.getAssetNo();
3543
+ if (f.length > 0) {
3544
+ writer.writeString(
3545
+ 9,
3546
+ f
3547
+ );
3548
+ }
3549
+ f = message.getItemTransactionRef();
3550
+ if (f.length > 0) {
3551
+ writer.writeString(
3552
+ 10,
3553
+ f
3554
+ );
3555
+ }
3556
+ f = message.getCostCenter();
3557
+ if (f.length > 0) {
3558
+ writer.writeString(
3559
+ 11,
3560
+ f
3561
+ );
3562
+ }
3563
+ f = message.getOrderNumber();
3564
+ if (f.length > 0) {
3565
+ writer.writeString(
3566
+ 12,
3567
+ f
3568
+ );
3569
+ }
3570
+ f = message.getOrderDescription();
3571
+ if (f.length > 0) {
3572
+ writer.writeString(
3573
+ 13,
3574
+ f
3575
+ );
3576
+ }
3577
+ f = message.getServiceNo();
3578
+ if (f.length > 0) {
3579
+ writer.writeString(
3580
+ 14,
3581
+ f
3582
+ );
3583
+ }
3584
+ f = message.getServiceDescription();
3585
+ if (f.length > 0) {
3586
+ writer.writeString(
3587
+ 15,
3588
+ f
3589
+ );
3590
+ }
3591
+ f = message.getAmountPrice();
3592
+ if (f !== 0.0) {
3593
+ writer.writeFloat(
3594
+ 16,
3595
+ f
3596
+ );
3597
+ }
3598
+ f = message.getMaterialCode();
3599
+ if (f.length > 0) {
3600
+ writer.writeString(
3601
+ 17,
3602
+ f
3603
+ );
3604
+ }
3605
+ f = message.getFilesList();
3606
+ if (f.length > 0) {
3607
+ writer.writeRepeatedMessage(
3608
+ 18,
3609
+ f,
3610
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3611
+ );
3612
+ }
3613
+ };
3614
+
3615
+
3616
+ /**
3617
+ * optional string gl_account = 1;
3618
+ * @return {string}
3619
+ */
3620
+ proto.BaseItemTransactionDetail.prototype.getGlAccount = function() {
3621
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3622
+ };
3623
+
3624
+
3625
+ /**
3626
+ * @param {string} value
3627
+ * @return {!proto.BaseItemTransactionDetail} returns this
3628
+ */
3629
+ proto.BaseItemTransactionDetail.prototype.setGlAccount = function(value) {
3630
+ return jspb.Message.setProto3StringField(this, 1, value);
3631
+ };
3632
+
3633
+
3634
+ /**
3635
+ * optional string gl_account_description = 2;
3636
+ * @return {string}
3637
+ */
3638
+ proto.BaseItemTransactionDetail.prototype.getGlAccountDescription = function() {
3639
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3640
+ };
3641
+
3642
+
3643
+ /**
3644
+ * @param {string} value
3645
+ * @return {!proto.BaseItemTransactionDetail} returns this
3646
+ */
3647
+ proto.BaseItemTransactionDetail.prototype.setGlAccountDescription = function(value) {
3648
+ return jspb.Message.setProto3StringField(this, 2, value);
3649
+ };
3650
+
3651
+
3652
+ /**
3653
+ * optional string unit_of_measure = 3;
3654
+ * @return {string}
3655
+ */
3656
+ proto.BaseItemTransactionDetail.prototype.getUnitOfMeasure = function() {
3657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3658
+ };
3659
+
3660
+
3661
+ /**
3662
+ * @param {string} value
3663
+ * @return {!proto.BaseItemTransactionDetail} returns this
3664
+ */
3665
+ proto.BaseItemTransactionDetail.prototype.setUnitOfMeasure = function(value) {
3666
+ return jspb.Message.setProto3StringField(this, 3, value);
3667
+ };
3668
+
3669
+
3670
+ /**
3671
+ * optional float valuation_price = 4;
3672
+ * @return {number}
3673
+ */
3674
+ proto.BaseItemTransactionDetail.prototype.getValuationPrice = function() {
3675
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
3676
+ };
3677
+
3678
+
3679
+ /**
3680
+ * @param {number} value
3681
+ * @return {!proto.BaseItemTransactionDetail} returns this
3682
+ */
3683
+ proto.BaseItemTransactionDetail.prototype.setValuationPrice = function(value) {
3684
+ return jspb.Message.setProto3FloatField(this, 4, value);
3685
+ };
3686
+
3687
+
3688
+ /**
3689
+ * optional string requisitioner = 5;
3690
+ * @return {string}
3691
+ */
3692
+ proto.BaseItemTransactionDetail.prototype.getRequisitioner = function() {
3693
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3694
+ };
3695
+
3696
+
3697
+ /**
3698
+ * @param {string} value
3699
+ * @return {!proto.BaseItemTransactionDetail} returns this
3700
+ */
3701
+ proto.BaseItemTransactionDetail.prototype.setRequisitioner = function(value) {
3702
+ return jspb.Message.setProto3StringField(this, 5, value);
3703
+ };
3704
+
3705
+
3706
+ /**
3707
+ * optional string custom_transaction = 6;
3708
+ * @return {string}
3709
+ */
3710
+ proto.BaseItemTransactionDetail.prototype.getCustomTransaction = function() {
3711
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3712
+ };
3713
+
3714
+
3715
+ /**
3716
+ * @param {string} value
3717
+ * @return {!proto.BaseItemTransactionDetail} returns this
3718
+ */
3719
+ proto.BaseItemTransactionDetail.prototype.setCustomTransaction = function(value) {
3720
+ return jspb.Message.setProto3StringField(this, 6, value);
3721
+ };
3722
+
3723
+
3724
+ /**
3725
+ * optional float distribution = 7;
3726
+ * @return {number}
3727
+ */
3728
+ proto.BaseItemTransactionDetail.prototype.getDistribution = function() {
3729
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
3730
+ };
3731
+
3732
+
3733
+ /**
3734
+ * @param {number} value
3735
+ * @return {!proto.BaseItemTransactionDetail} returns this
3736
+ */
3737
+ proto.BaseItemTransactionDetail.prototype.setDistribution = function(value) {
3738
+ return jspb.Message.setProto3FloatField(this, 7, value);
3739
+ };
3740
+
3741
+
3742
+ /**
3743
+ * optional float quantity = 8;
3744
+ * @return {number}
3745
+ */
3746
+ proto.BaseItemTransactionDetail.prototype.getQuantity = function() {
3747
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
3748
+ };
3749
+
3750
+
3751
+ /**
3752
+ * @param {number} value
3753
+ * @return {!proto.BaseItemTransactionDetail} returns this
3754
+ */
3755
+ proto.BaseItemTransactionDetail.prototype.setQuantity = function(value) {
3756
+ return jspb.Message.setProto3FloatField(this, 8, value);
3757
+ };
3758
+
3759
+
3760
+ /**
3761
+ * optional string asset_no = 9;
3762
+ * @return {string}
3763
+ */
3764
+ proto.BaseItemTransactionDetail.prototype.getAssetNo = function() {
3765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3766
+ };
3767
+
3768
+
3769
+ /**
3770
+ * @param {string} value
3771
+ * @return {!proto.BaseItemTransactionDetail} returns this
3772
+ */
3773
+ proto.BaseItemTransactionDetail.prototype.setAssetNo = function(value) {
3774
+ return jspb.Message.setProto3StringField(this, 9, value);
3775
+ };
3776
+
3777
+
3778
+ /**
3779
+ * optional string item_transaction_ref = 10;
3780
+ * @return {string}
3781
+ */
3782
+ proto.BaseItemTransactionDetail.prototype.getItemTransactionRef = function() {
3783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3784
+ };
3785
+
3786
+
3787
+ /**
3788
+ * @param {string} value
3789
+ * @return {!proto.BaseItemTransactionDetail} returns this
3790
+ */
3791
+ proto.BaseItemTransactionDetail.prototype.setItemTransactionRef = function(value) {
3792
+ return jspb.Message.setProto3StringField(this, 10, value);
3793
+ };
3794
+
3795
+
3796
+ /**
3797
+ * optional string cost_center = 11;
3798
+ * @return {string}
3799
+ */
3800
+ proto.BaseItemTransactionDetail.prototype.getCostCenter = function() {
3801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3802
+ };
3803
+
3804
+
3805
+ /**
3806
+ * @param {string} value
3807
+ * @return {!proto.BaseItemTransactionDetail} returns this
3808
+ */
3809
+ proto.BaseItemTransactionDetail.prototype.setCostCenter = function(value) {
3810
+ return jspb.Message.setProto3StringField(this, 11, value);
3811
+ };
3812
+
3813
+
3814
+ /**
3815
+ * optional string order_number = 12;
3816
+ * @return {string}
3817
+ */
3818
+ proto.BaseItemTransactionDetail.prototype.getOrderNumber = function() {
3819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3820
+ };
3821
+
3822
+
3823
+ /**
3824
+ * @param {string} value
3825
+ * @return {!proto.BaseItemTransactionDetail} returns this
3826
+ */
3827
+ proto.BaseItemTransactionDetail.prototype.setOrderNumber = function(value) {
3828
+ return jspb.Message.setProto3StringField(this, 12, value);
3829
+ };
3830
+
3831
+
3832
+ /**
3833
+ * optional string order_description = 13;
3834
+ * @return {string}
3835
+ */
3836
+ proto.BaseItemTransactionDetail.prototype.getOrderDescription = function() {
3837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3838
+ };
3839
+
3840
+
3841
+ /**
3842
+ * @param {string} value
3843
+ * @return {!proto.BaseItemTransactionDetail} returns this
3844
+ */
3845
+ proto.BaseItemTransactionDetail.prototype.setOrderDescription = function(value) {
3846
+ return jspb.Message.setProto3StringField(this, 13, value);
3847
+ };
3848
+
3849
+
3850
+ /**
3851
+ * optional string service_no = 14;
3852
+ * @return {string}
3853
+ */
3854
+ proto.BaseItemTransactionDetail.prototype.getServiceNo = function() {
3855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3856
+ };
3857
+
3858
+
3859
+ /**
3860
+ * @param {string} value
3861
+ * @return {!proto.BaseItemTransactionDetail} returns this
3862
+ */
3863
+ proto.BaseItemTransactionDetail.prototype.setServiceNo = function(value) {
3864
+ return jspb.Message.setProto3StringField(this, 14, value);
3865
+ };
3866
+
3867
+
3868
+ /**
3869
+ * optional string service_description = 15;
3870
+ * @return {string}
3871
+ */
3872
+ proto.BaseItemTransactionDetail.prototype.getServiceDescription = function() {
3873
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3874
+ };
3875
+
3876
+
3877
+ /**
3878
+ * @param {string} value
3879
+ * @return {!proto.BaseItemTransactionDetail} returns this
3880
+ */
3881
+ proto.BaseItemTransactionDetail.prototype.setServiceDescription = function(value) {
3882
+ return jspb.Message.setProto3StringField(this, 15, value);
3883
+ };
3884
+
3885
+
3886
+ /**
3887
+ * optional float amount_price = 16;
3888
+ * @return {number}
3889
+ */
3890
+ proto.BaseItemTransactionDetail.prototype.getAmountPrice = function() {
3891
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
3892
+ };
3893
+
3894
+
3895
+ /**
3896
+ * @param {number} value
3897
+ * @return {!proto.BaseItemTransactionDetail} returns this
3898
+ */
3899
+ proto.BaseItemTransactionDetail.prototype.setAmountPrice = function(value) {
3900
+ return jspb.Message.setProto3FloatField(this, 16, value);
3901
+ };
3902
+
3903
+
3904
+ /**
3905
+ * optional string material_code = 17;
3906
+ * @return {string}
3907
+ */
3908
+ proto.BaseItemTransactionDetail.prototype.getMaterialCode = function() {
3909
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3910
+ };
3911
+
3912
+
3913
+ /**
3914
+ * @param {string} value
3915
+ * @return {!proto.BaseItemTransactionDetail} returns this
3916
+ */
3917
+ proto.BaseItemTransactionDetail.prototype.setMaterialCode = function(value) {
3918
+ return jspb.Message.setProto3StringField(this, 17, value);
3919
+ };
3920
+
3921
+
3922
+ /**
3923
+ * repeated FileUploadReferencesReq files = 18;
3924
+ * @return {!Array<!proto.FileUploadReferencesReq>}
3925
+ */
3926
+ proto.BaseItemTransactionDetail.prototype.getFilesList = function() {
3927
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3928
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 18));
3929
+ };
3930
+
3931
+
3932
+ /**
3933
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
3934
+ * @return {!proto.BaseItemTransactionDetail} returns this
3935
+ */
3936
+ proto.BaseItemTransactionDetail.prototype.setFilesList = function(value) {
3937
+ return jspb.Message.setRepeatedWrapperField(this, 18, value);
3938
+ };
3939
+
3940
+
3941
+ /**
3942
+ * @param {!proto.FileUploadReferencesReq=} opt_value
3943
+ * @param {number=} opt_index
3944
+ * @return {!proto.FileUploadReferencesReq}
3945
+ */
3946
+ proto.BaseItemTransactionDetail.prototype.addFiles = function(opt_value, opt_index) {
3947
+ return jspb.Message.addToRepeatedWrapperField(this, 18, opt_value, proto.FileUploadReferencesReq, opt_index);
3948
+ };
3949
+
3950
+
3951
+ /**
3952
+ * Clears the list making it empty but non-null.
3953
+ * @return {!proto.BaseItemTransactionDetail} returns this
3954
+ */
3955
+ proto.BaseItemTransactionDetail.prototype.clearFilesList = function() {
3956
+ return this.setFilesList([]);
3957
+ };
3958
+
3959
+
3960
+
3961
+
3962
+
3963
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3964
+ /**
3965
+ * Creates an object representation of this proto.
3966
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3967
+ * Optional fields that are not set will be set to undefined.
3968
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3969
+ * For the list of reserved names please see:
3970
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3971
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3972
+ * JSPB instance for transitional soy proto support:
3973
+ * http://goto/soy-param-migration
3974
+ * @return {!Object}
3975
+ */
3976
+ proto.BaseItemTransactionPriceCondition.prototype.toObject = function(opt_includeInstance) {
3977
+ return proto.BaseItemTransactionPriceCondition.toObject(opt_includeInstance, this);
3978
+ };
3979
+
3980
+
3981
+ /**
3982
+ * Static version of the {@see toObject} method.
3983
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3984
+ * the JSPB instance for transitional soy proto support:
3985
+ * http://goto/soy-param-migration
3986
+ * @param {!proto.BaseItemTransactionPriceCondition} msg The msg instance to transform.
3987
+ * @return {!Object}
3988
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3989
+ */
3990
+ proto.BaseItemTransactionPriceCondition.toObject = function(includeInstance, msg) {
3991
+ var f, obj = {
3992
+ amount: jspb.Message.getFieldWithDefault(msg, 1, ""),
3993
+ operator: jspb.Message.getFieldWithDefault(msg, 2, ""),
3994
+ divide: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
3995
+ type: jspb.Message.getFieldWithDefault(msg, 4, ""),
3996
+ name: jspb.Message.getFieldWithDefault(msg, 5, ""),
3997
+ itemTransactionRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
3998
+ code: jspb.Message.getFieldWithDefault(msg, 7, ""),
3999
+ isGeneral: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
4000
+ properties: jspb.Message.getFieldWithDefault(msg, 9, "")
4001
+ };
4002
+
4003
+ if (includeInstance) {
4004
+ obj.$jspbMessageInstance = msg;
4005
+ }
4006
+ return obj;
4007
+ };
4008
+ }
4009
+
4010
+
4011
+ /**
4012
+ * Deserializes binary data (in protobuf wire format).
4013
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4014
+ * @return {!proto.BaseItemTransactionPriceCondition}
4015
+ */
4016
+ proto.BaseItemTransactionPriceCondition.deserializeBinary = function(bytes) {
4017
+ var reader = new jspb.BinaryReader(bytes);
4018
+ var msg = new proto.BaseItemTransactionPriceCondition;
4019
+ return proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader(msg, reader);
4020
+ };
4021
+
4022
+
4023
+ /**
4024
+ * Deserializes binary data (in protobuf wire format) from the
4025
+ * given reader into the given message object.
4026
+ * @param {!proto.BaseItemTransactionPriceCondition} msg The message object to deserialize into.
4027
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4028
+ * @return {!proto.BaseItemTransactionPriceCondition}
4029
+ */
4030
+ proto.BaseItemTransactionPriceCondition.deserializeBinaryFromReader = function(msg, reader) {
4031
+ while (reader.nextField()) {
4032
+ if (reader.isEndGroup()) {
4033
+ break;
4034
+ }
4035
+ var field = reader.getFieldNumber();
4036
+ switch (field) {
4037
+ case 1:
4038
+ var value = /** @type {string} */ (reader.readString());
4039
+ msg.setAmount(value);
4040
+ break;
4041
+ case 2:
4042
+ var value = /** @type {string} */ (reader.readString());
4043
+ msg.setOperator(value);
4044
+ break;
4045
+ case 3:
4046
+ var value = /** @type {number} */ (reader.readFloat());
4047
+ msg.setDivide(value);
4048
+ break;
4049
+ case 4:
4050
+ var value = /** @type {string} */ (reader.readString());
4051
+ msg.setType(value);
4052
+ break;
4053
+ case 5:
4054
+ var value = /** @type {string} */ (reader.readString());
4055
+ msg.setName(value);
4056
+ break;
4057
+ case 6:
4058
+ var value = /** @type {string} */ (reader.readString());
4059
+ msg.setItemTransactionRef(value);
4060
+ break;
4061
+ case 7:
4062
+ var value = /** @type {string} */ (reader.readString());
4063
+ msg.setCode(value);
4064
+ break;
4065
+ case 8:
4066
+ var value = /** @type {boolean} */ (reader.readBool());
4067
+ msg.setIsGeneral(value);
4068
+ break;
4069
+ case 9:
4070
+ var value = /** @type {string} */ (reader.readString());
4071
+ msg.setProperties(value);
4072
+ break;
4073
+ default:
4074
+ reader.skipField();
4075
+ break;
4076
+ }
4077
+ }
4078
+ return msg;
4079
+ };
4080
+
4081
+
4082
+ /**
4083
+ * Serializes the message to binary data (in protobuf wire format).
4084
+ * @return {!Uint8Array}
4085
+ */
4086
+ proto.BaseItemTransactionPriceCondition.prototype.serializeBinary = function() {
4087
+ var writer = new jspb.BinaryWriter();
4088
+ proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter(this, writer);
4089
+ return writer.getResultBuffer();
4090
+ };
4091
+
4092
+
4093
+ /**
4094
+ * Serializes the given message to binary data (in protobuf wire
4095
+ * format), writing to the given BinaryWriter.
4096
+ * @param {!proto.BaseItemTransactionPriceCondition} message
4097
+ * @param {!jspb.BinaryWriter} writer
4098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4099
+ */
4100
+ proto.BaseItemTransactionPriceCondition.serializeBinaryToWriter = function(message, writer) {
4101
+ var f = undefined;
4102
+ f = message.getAmount();
4103
+ if (f.length > 0) {
4104
+ writer.writeString(
4105
+ 1,
4106
+ f
4107
+ );
4108
+ }
4109
+ f = message.getOperator();
4110
+ if (f.length > 0) {
4111
+ writer.writeString(
4112
+ 2,
4113
+ f
4114
+ );
4115
+ }
4116
+ f = message.getDivide();
4117
+ if (f !== 0.0) {
4118
+ writer.writeFloat(
4119
+ 3,
4120
+ f
4121
+ );
4122
+ }
4123
+ f = message.getType();
4124
+ if (f.length > 0) {
4125
+ writer.writeString(
4126
+ 4,
4127
+ f
4128
+ );
4129
+ }
4130
+ f = message.getName();
4131
+ if (f.length > 0) {
4132
+ writer.writeString(
4133
+ 5,
4134
+ f
4135
+ );
4136
+ }
4137
+ f = message.getItemTransactionRef();
4138
+ if (f.length > 0) {
4139
+ writer.writeString(
4140
+ 6,
4141
+ f
4142
+ );
4143
+ }
4144
+ f = message.getCode();
4145
+ if (f.length > 0) {
4146
+ writer.writeString(
4147
+ 7,
4148
+ f
4149
+ );
4150
+ }
4151
+ f = message.getIsGeneral();
4152
+ if (f) {
4153
+ writer.writeBool(
4154
+ 8,
4155
+ f
4156
+ );
4157
+ }
4158
+ f = message.getProperties();
4159
+ if (f.length > 0) {
4160
+ writer.writeString(
4161
+ 9,
4162
+ f
4163
+ );
4164
+ }
4165
+ };
4166
+
4167
+
4168
+ /**
4169
+ * optional string amount = 1;
4170
+ * @return {string}
4171
+ */
4172
+ proto.BaseItemTransactionPriceCondition.prototype.getAmount = function() {
4173
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4174
+ };
4175
+
4176
+
4177
+ /**
4178
+ * @param {string} value
4179
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4180
+ */
4181
+ proto.BaseItemTransactionPriceCondition.prototype.setAmount = function(value) {
4182
+ return jspb.Message.setProto3StringField(this, 1, value);
4183
+ };
4184
+
4185
+
4186
+ /**
4187
+ * optional string operator = 2;
4188
+ * @return {string}
4189
+ */
4190
+ proto.BaseItemTransactionPriceCondition.prototype.getOperator = function() {
4191
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4192
+ };
4193
+
4194
+
4195
+ /**
4196
+ * @param {string} value
4197
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4198
+ */
4199
+ proto.BaseItemTransactionPriceCondition.prototype.setOperator = function(value) {
4200
+ return jspb.Message.setProto3StringField(this, 2, value);
4201
+ };
4202
+
4203
+
4204
+ /**
4205
+ * optional float divide = 3;
4206
+ * @return {number}
4207
+ */
4208
+ proto.BaseItemTransactionPriceCondition.prototype.getDivide = function() {
4209
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
4210
+ };
4211
+
4212
+
4213
+ /**
4214
+ * @param {number} value
4215
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4216
+ */
4217
+ proto.BaseItemTransactionPriceCondition.prototype.setDivide = function(value) {
4218
+ return jspb.Message.setProto3FloatField(this, 3, value);
4219
+ };
4220
+
4221
+
4222
+ /**
4223
+ * optional string type = 4;
4224
+ * @return {string}
4225
+ */
4226
+ proto.BaseItemTransactionPriceCondition.prototype.getType = function() {
4227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4228
+ };
4229
+
4230
+
4231
+ /**
4232
+ * @param {string} value
4233
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4234
+ */
4235
+ proto.BaseItemTransactionPriceCondition.prototype.setType = function(value) {
4236
+ return jspb.Message.setProto3StringField(this, 4, value);
4237
+ };
4238
+
4239
+
4240
+ /**
4241
+ * optional string name = 5;
4242
+ * @return {string}
4243
+ */
4244
+ proto.BaseItemTransactionPriceCondition.prototype.getName = function() {
4245
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
4246
+ };
4247
+
4248
+
4249
+ /**
4250
+ * @param {string} value
4251
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4252
+ */
4253
+ proto.BaseItemTransactionPriceCondition.prototype.setName = function(value) {
4254
+ return jspb.Message.setProto3StringField(this, 5, value);
4255
+ };
4256
+
4257
+
4258
+ /**
4259
+ * optional string item_transaction_ref = 6;
4260
+ * @return {string}
4261
+ */
4262
+ proto.BaseItemTransactionPriceCondition.prototype.getItemTransactionRef = function() {
4263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4264
+ };
4265
+
4266
+
4267
+ /**
4268
+ * @param {string} value
4269
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4270
+ */
4271
+ proto.BaseItemTransactionPriceCondition.prototype.setItemTransactionRef = function(value) {
4272
+ return jspb.Message.setProto3StringField(this, 6, value);
4273
+ };
4274
+
4275
+
4276
+ /**
4277
+ * optional string code = 7;
4278
+ * @return {string}
4279
+ */
4280
+ proto.BaseItemTransactionPriceCondition.prototype.getCode = function() {
4281
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4282
+ };
4283
+
4284
+
4285
+ /**
4286
+ * @param {string} value
4287
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4288
+ */
4289
+ proto.BaseItemTransactionPriceCondition.prototype.setCode = function(value) {
4290
+ return jspb.Message.setProto3StringField(this, 7, value);
4291
+ };
4292
+
4293
+
4294
+ /**
4295
+ * optional bool is_general = 8;
4296
+ * @return {boolean}
4297
+ */
4298
+ proto.BaseItemTransactionPriceCondition.prototype.getIsGeneral = function() {
4299
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false));
4300
+ };
4301
+
4302
+
4303
+ /**
4304
+ * @param {boolean} value
4305
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4306
+ */
4307
+ proto.BaseItemTransactionPriceCondition.prototype.setIsGeneral = function(value) {
4308
+ return jspb.Message.setProto3BooleanField(this, 8, value);
4309
+ };
4310
+
4311
+
4312
+ /**
4313
+ * optional string properties = 9;
4314
+ * @return {string}
4315
+ */
4316
+ proto.BaseItemTransactionPriceCondition.prototype.getProperties = function() {
4317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
4318
+ };
4319
+
4320
+
4321
+ /**
4322
+ * @param {string} value
4323
+ * @return {!proto.BaseItemTransactionPriceCondition} returns this
4324
+ */
4325
+ proto.BaseItemTransactionPriceCondition.prototype.setProperties = function(value) {
4326
+ return jspb.Message.setProto3StringField(this, 9, value);
4327
+ };
4328
+
4329
+
4330
+ goog.object.extend(exports, proto);