@aldiokta/protocgen 1.1.60 → 1.1.62

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 (31) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/budget/budget_grpc_pb.js +1 -0
  3. package/prisca/v1/budget/budget_pb.js +264 -1
  4. package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +112 -0
  5. package/prisca/v1/budget_planning/budget_planning_pb.js +7073 -2008
  6. package/prisca/v1/core/auth/auth_grpc_pb.js +1 -0
  7. package/prisca/v1/core/auth/auth_pb.js +115 -2
  8. package/prisca/v1/core/employee/employee_grpc_pb.js +22 -0
  9. package/prisca/v1/core/employee/employee_pb.js +214 -2
  10. package/prisca/v1/core/item_transaction/item_transaction_pb.js +610 -11
  11. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +22 -0
  12. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +303 -1
  13. package/prisca/v1/core/report/report_pb.js +31 -1
  14. package/prisca/v1/core/users/users_pb.js +31 -1
  15. package/prisca/v1/down_payment/down_payment_grpc_pb.js +201 -0
  16. package/prisca/v1/down_payment/down_payment_pb.js +3357 -0
  17. package/prisca/v1/general_configuration/general_configuration_grpc_pb.js +212 -0
  18. package/prisca/v1/general_configuration/general_configuration_pb.js +2886 -0
  19. package/prisca/v1/invoice/invoice_grpc_pb.js +77 -0
  20. package/prisca/v1/invoice/invoice_pb.js +2657 -434
  21. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +34 -0
  22. package/prisca/v1/purchase_order/purchase_order_pb.js +2542 -57
  23. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +22 -0
  24. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +924 -144
  25. package/prisca/v1/vendor_domain/vendor_domain_pb.js +72 -12
  26. package/prisca/v1/webhook_builder/webhook_builder_grpc_pb.js +245 -0
  27. package/prisca/v1/webhook_builder/webhook_builder_pb.js +5084 -0
  28. package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_grpc_pb.js +245 -0
  29. package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_pb.js +3499 -0
  30. package/prisca/v1/webhook_integration/webhook_integration_grpc_pb.js +212 -0
  31. package/prisca/v1/webhook_integration/webhook_integration_pb.js +2976 -0
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.ItemTransactionDetailPriceCondition', null, global);
31
31
  goog.exportSymbol('proto.ItemTransactionPriceCondition', null, global);
32
32
  goog.exportSymbol('proto.ItemTransactionService', null, global);
33
33
  goog.exportSymbol('proto.ItemTransactionServicePriceCondition', null, global);
34
+ goog.exportSymbol('proto.PriceBreakdown', null, global);
34
35
  /**
35
36
  * Generated by JsPbCodeGenerator.
36
37
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -52,6 +53,27 @@ if (goog.DEBUG && !COMPILED) {
52
53
  */
53
54
  proto.ItemTransaction.displayName = 'proto.ItemTransaction';
54
55
  }
56
+ /**
57
+ * Generated by JsPbCodeGenerator.
58
+ * @param {Array=} opt_data Optional initial data array, typically from a
59
+ * server response, or constructed directly in Javascript. The array is used
60
+ * in place and becomes part of the constructed object. It is not cloned.
61
+ * If no data is provided, the constructed object will be empty, but still
62
+ * valid.
63
+ * @extends {jspb.Message}
64
+ * @constructor
65
+ */
66
+ proto.PriceBreakdown = function(opt_data) {
67
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
68
+ };
69
+ goog.inherits(proto.PriceBreakdown, jspb.Message);
70
+ if (goog.DEBUG && !COMPILED) {
71
+ /**
72
+ * @public
73
+ * @override
74
+ */
75
+ proto.PriceBreakdown.displayName = 'proto.PriceBreakdown';
76
+ }
55
77
  /**
56
78
  * Generated by JsPbCodeGenerator.
57
79
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -332,7 +354,7 @@ quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
332
354
  unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 8, ""),
333
355
  estimatedUnitPrice: jspb.Message.getFieldWithDefault(msg, 9, ""),
334
356
  deliveryDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
335
- plannedDeliveryTime: jspb.Message.getFieldWithDefault(msg, 11, ""),
357
+ plannedDeliveryTime: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
336
358
  customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
337
359
  itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
338
360
  proto.ItemTransactionDetail.toObject, includeInstance),
@@ -370,7 +392,10 @@ updatedBy: jspb.Message.getFieldWithDefault(msg, 42, ""),
370
392
  createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
371
393
  updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
372
394
  itemCategory: jspb.Message.getFieldWithDefault(msg, 45, ""),
373
- budgetCode: jspb.Message.getFieldWithDefault(msg, 46, "")
395
+ budgetCode: jspb.Message.getFieldWithDefault(msg, 46, ""),
396
+ budgetRemaining: jspb.Message.getFieldWithDefault(msg, 47, ""),
397
+ totalPrice: jspb.Message.getFloatingPointFieldWithDefault(msg, 48, 0.0),
398
+ priceBreakdown: (f = msg.getPriceBreakdown()) && proto.PriceBreakdown.toObject(includeInstance, f)
374
399
  };
375
400
 
376
401
  if (includeInstance) {
@@ -593,6 +618,19 @@ proto.ItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
593
618
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
594
619
  msg.setBudgetCode(value);
595
620
  break;
621
+ case 47:
622
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
623
+ msg.setBudgetRemaining(value);
624
+ break;
625
+ case 48:
626
+ var value = /** @type {number} */ (reader.readDouble());
627
+ msg.setTotalPrice(value);
628
+ break;
629
+ case 49:
630
+ var value = new proto.PriceBreakdown;
631
+ reader.readMessage(value,proto.PriceBreakdown.deserializeBinaryFromReader);
632
+ msg.setPriceBreakdown(value);
633
+ break;
596
634
  default:
597
635
  reader.skipField();
598
636
  break;
@@ -692,8 +730,8 @@ proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
692
730
  f
693
731
  );
694
732
  }
695
- f = message.getPlannedDeliveryTime();
696
- if (f.length > 0) {
733
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
734
+ if (f != null) {
697
735
  writer.writeString(
698
736
  11,
699
737
  f
@@ -943,6 +981,28 @@ proto.ItemTransaction.serializeBinaryToWriter = function(message, writer) {
943
981
  f
944
982
  );
945
983
  }
984
+ f = message.getBudgetRemaining();
985
+ if (f.length > 0) {
986
+ writer.writeString(
987
+ 47,
988
+ f
989
+ );
990
+ }
991
+ f = message.getTotalPrice();
992
+ if (f !== 0.0) {
993
+ writer.writeDouble(
994
+ 48,
995
+ f
996
+ );
997
+ }
998
+ f = message.getPriceBreakdown();
999
+ if (f != null) {
1000
+ writer.writeMessage(
1001
+ 49,
1002
+ f,
1003
+ proto.PriceBreakdown.serializeBinaryToWriter
1004
+ );
1005
+ }
946
1006
  };
947
1007
 
948
1008
 
@@ -1140,7 +1200,25 @@ proto.ItemTransaction.prototype.getPlannedDeliveryTime = function() {
1140
1200
  * @return {!proto.ItemTransaction} returns this
1141
1201
  */
1142
1202
  proto.ItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
1143
- return jspb.Message.setProto3StringField(this, 11, value);
1203
+ return jspb.Message.setField(this, 11, value);
1204
+ };
1205
+
1206
+
1207
+ /**
1208
+ * Clears the field making it undefined.
1209
+ * @return {!proto.ItemTransaction} returns this
1210
+ */
1211
+ proto.ItemTransaction.prototype.clearPlannedDeliveryTime = function() {
1212
+ return jspb.Message.setField(this, 11, undefined);
1213
+ };
1214
+
1215
+
1216
+ /**
1217
+ * Returns whether this field is set.
1218
+ * @return {boolean}
1219
+ */
1220
+ proto.ItemTransaction.prototype.hasPlannedDeliveryTime = function() {
1221
+ return jspb.Message.getField(this, 11) != null;
1144
1222
  };
1145
1223
 
1146
1224
 
@@ -1874,6 +1952,389 @@ proto.ItemTransaction.prototype.setBudgetCode = function(value) {
1874
1952
  };
1875
1953
 
1876
1954
 
1955
+ /**
1956
+ * optional string budget_remaining = 47;
1957
+ * @return {string}
1958
+ */
1959
+ proto.ItemTransaction.prototype.getBudgetRemaining = function() {
1960
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 47, ""));
1961
+ };
1962
+
1963
+
1964
+ /**
1965
+ * @param {string} value
1966
+ * @return {!proto.ItemTransaction} returns this
1967
+ */
1968
+ proto.ItemTransaction.prototype.setBudgetRemaining = function(value) {
1969
+ return jspb.Message.setProto3StringField(this, 47, value);
1970
+ };
1971
+
1972
+
1973
+ /**
1974
+ * optional double total_price = 48;
1975
+ * @return {number}
1976
+ */
1977
+ proto.ItemTransaction.prototype.getTotalPrice = function() {
1978
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 48, 0.0));
1979
+ };
1980
+
1981
+
1982
+ /**
1983
+ * @param {number} value
1984
+ * @return {!proto.ItemTransaction} returns this
1985
+ */
1986
+ proto.ItemTransaction.prototype.setTotalPrice = function(value) {
1987
+ return jspb.Message.setProto3FloatField(this, 48, value);
1988
+ };
1989
+
1990
+
1991
+ /**
1992
+ * optional PriceBreakdown price_breakdown = 49;
1993
+ * @return {?proto.PriceBreakdown}
1994
+ */
1995
+ proto.ItemTransaction.prototype.getPriceBreakdown = function() {
1996
+ return /** @type{?proto.PriceBreakdown} */ (
1997
+ jspb.Message.getWrapperField(this, proto.PriceBreakdown, 49));
1998
+ };
1999
+
2000
+
2001
+ /**
2002
+ * @param {?proto.PriceBreakdown|undefined} value
2003
+ * @return {!proto.ItemTransaction} returns this
2004
+ */
2005
+ proto.ItemTransaction.prototype.setPriceBreakdown = function(value) {
2006
+ return jspb.Message.setWrapperField(this, 49, value);
2007
+ };
2008
+
2009
+
2010
+ /**
2011
+ * Clears the message field making it undefined.
2012
+ * @return {!proto.ItemTransaction} returns this
2013
+ */
2014
+ proto.ItemTransaction.prototype.clearPriceBreakdown = function() {
2015
+ return this.setPriceBreakdown(undefined);
2016
+ };
2017
+
2018
+
2019
+ /**
2020
+ * Returns whether this field is set.
2021
+ * @return {boolean}
2022
+ */
2023
+ proto.ItemTransaction.prototype.hasPriceBreakdown = function() {
2024
+ return jspb.Message.getField(this, 49) != null;
2025
+ };
2026
+
2027
+
2028
+
2029
+
2030
+
2031
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2032
+ /**
2033
+ * Creates an object representation of this proto.
2034
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2035
+ * Optional fields that are not set will be set to undefined.
2036
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2037
+ * For the list of reserved names please see:
2038
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2039
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2040
+ * JSPB instance for transitional soy proto support:
2041
+ * http://goto/soy-param-migration
2042
+ * @return {!Object}
2043
+ */
2044
+ proto.PriceBreakdown.prototype.toObject = function(opt_includeInstance) {
2045
+ return proto.PriceBreakdown.toObject(opt_includeInstance, this);
2046
+ };
2047
+
2048
+
2049
+ /**
2050
+ * Static version of the {@see toObject} method.
2051
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2052
+ * the JSPB instance for transitional soy proto support:
2053
+ * http://goto/soy-param-migration
2054
+ * @param {!proto.PriceBreakdown} msg The msg instance to transform.
2055
+ * @return {!Object}
2056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2057
+ */
2058
+ proto.PriceBreakdown.toObject = function(includeInstance, msg) {
2059
+ var f, obj = {
2060
+ subtotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
2061
+ ppnRate: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2062
+ ppnAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
2063
+ discountAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2064
+ downpaymentAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
2065
+ retention: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
2066
+ grandTotal: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
2067
+ };
2068
+
2069
+ if (includeInstance) {
2070
+ obj.$jspbMessageInstance = msg;
2071
+ }
2072
+ return obj;
2073
+ };
2074
+ }
2075
+
2076
+
2077
+ /**
2078
+ * Deserializes binary data (in protobuf wire format).
2079
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2080
+ * @return {!proto.PriceBreakdown}
2081
+ */
2082
+ proto.PriceBreakdown.deserializeBinary = function(bytes) {
2083
+ var reader = new jspb.BinaryReader(bytes);
2084
+ var msg = new proto.PriceBreakdown;
2085
+ return proto.PriceBreakdown.deserializeBinaryFromReader(msg, reader);
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * Deserializes binary data (in protobuf wire format) from the
2091
+ * given reader into the given message object.
2092
+ * @param {!proto.PriceBreakdown} msg The message object to deserialize into.
2093
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2094
+ * @return {!proto.PriceBreakdown}
2095
+ */
2096
+ proto.PriceBreakdown.deserializeBinaryFromReader = function(msg, reader) {
2097
+ while (reader.nextField()) {
2098
+ if (reader.isEndGroup()) {
2099
+ break;
2100
+ }
2101
+ var field = reader.getFieldNumber();
2102
+ switch (field) {
2103
+ case 1:
2104
+ var value = /** @type {number} */ (reader.readDouble());
2105
+ msg.setSubtotal(value);
2106
+ break;
2107
+ case 2:
2108
+ var value = /** @type {number} */ (reader.readDouble());
2109
+ msg.setPpnRate(value);
2110
+ break;
2111
+ case 3:
2112
+ var value = /** @type {number} */ (reader.readDouble());
2113
+ msg.setPpnAmount(value);
2114
+ break;
2115
+ case 4:
2116
+ var value = /** @type {number} */ (reader.readDouble());
2117
+ msg.setDiscountAmount(value);
2118
+ break;
2119
+ case 5:
2120
+ var value = /** @type {number} */ (reader.readDouble());
2121
+ msg.setDownpaymentAmount(value);
2122
+ break;
2123
+ case 6:
2124
+ var value = /** @type {number} */ (reader.readDouble());
2125
+ msg.setRetention(value);
2126
+ break;
2127
+ case 7:
2128
+ var value = /** @type {number} */ (reader.readDouble());
2129
+ msg.setGrandTotal(value);
2130
+ break;
2131
+ default:
2132
+ reader.skipField();
2133
+ break;
2134
+ }
2135
+ }
2136
+ return msg;
2137
+ };
2138
+
2139
+
2140
+ /**
2141
+ * Serializes the message to binary data (in protobuf wire format).
2142
+ * @return {!Uint8Array}
2143
+ */
2144
+ proto.PriceBreakdown.prototype.serializeBinary = function() {
2145
+ var writer = new jspb.BinaryWriter();
2146
+ proto.PriceBreakdown.serializeBinaryToWriter(this, writer);
2147
+ return writer.getResultBuffer();
2148
+ };
2149
+
2150
+
2151
+ /**
2152
+ * Serializes the given message to binary data (in protobuf wire
2153
+ * format), writing to the given BinaryWriter.
2154
+ * @param {!proto.PriceBreakdown} message
2155
+ * @param {!jspb.BinaryWriter} writer
2156
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2157
+ */
2158
+ proto.PriceBreakdown.serializeBinaryToWriter = function(message, writer) {
2159
+ var f = undefined;
2160
+ f = message.getSubtotal();
2161
+ if (f !== 0.0) {
2162
+ writer.writeDouble(
2163
+ 1,
2164
+ f
2165
+ );
2166
+ }
2167
+ f = message.getPpnRate();
2168
+ if (f !== 0.0) {
2169
+ writer.writeDouble(
2170
+ 2,
2171
+ f
2172
+ );
2173
+ }
2174
+ f = message.getPpnAmount();
2175
+ if (f !== 0.0) {
2176
+ writer.writeDouble(
2177
+ 3,
2178
+ f
2179
+ );
2180
+ }
2181
+ f = message.getDiscountAmount();
2182
+ if (f !== 0.0) {
2183
+ writer.writeDouble(
2184
+ 4,
2185
+ f
2186
+ );
2187
+ }
2188
+ f = message.getDownpaymentAmount();
2189
+ if (f !== 0.0) {
2190
+ writer.writeDouble(
2191
+ 5,
2192
+ f
2193
+ );
2194
+ }
2195
+ f = message.getRetention();
2196
+ if (f !== 0.0) {
2197
+ writer.writeDouble(
2198
+ 6,
2199
+ f
2200
+ );
2201
+ }
2202
+ f = message.getGrandTotal();
2203
+ if (f !== 0.0) {
2204
+ writer.writeDouble(
2205
+ 7,
2206
+ f
2207
+ );
2208
+ }
2209
+ };
2210
+
2211
+
2212
+ /**
2213
+ * optional double subtotal = 1;
2214
+ * @return {number}
2215
+ */
2216
+ proto.PriceBreakdown.prototype.getSubtotal = function() {
2217
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
2218
+ };
2219
+
2220
+
2221
+ /**
2222
+ * @param {number} value
2223
+ * @return {!proto.PriceBreakdown} returns this
2224
+ */
2225
+ proto.PriceBreakdown.prototype.setSubtotal = function(value) {
2226
+ return jspb.Message.setProto3FloatField(this, 1, value);
2227
+ };
2228
+
2229
+
2230
+ /**
2231
+ * optional double ppn_rate = 2;
2232
+ * @return {number}
2233
+ */
2234
+ proto.PriceBreakdown.prototype.getPpnRate = function() {
2235
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2236
+ };
2237
+
2238
+
2239
+ /**
2240
+ * @param {number} value
2241
+ * @return {!proto.PriceBreakdown} returns this
2242
+ */
2243
+ proto.PriceBreakdown.prototype.setPpnRate = function(value) {
2244
+ return jspb.Message.setProto3FloatField(this, 2, value);
2245
+ };
2246
+
2247
+
2248
+ /**
2249
+ * optional double ppn_amount = 3;
2250
+ * @return {number}
2251
+ */
2252
+ proto.PriceBreakdown.prototype.getPpnAmount = function() {
2253
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
2254
+ };
2255
+
2256
+
2257
+ /**
2258
+ * @param {number} value
2259
+ * @return {!proto.PriceBreakdown} returns this
2260
+ */
2261
+ proto.PriceBreakdown.prototype.setPpnAmount = function(value) {
2262
+ return jspb.Message.setProto3FloatField(this, 3, value);
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * optional double discount_amount = 4;
2268
+ * @return {number}
2269
+ */
2270
+ proto.PriceBreakdown.prototype.getDiscountAmount = function() {
2271
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2272
+ };
2273
+
2274
+
2275
+ /**
2276
+ * @param {number} value
2277
+ * @return {!proto.PriceBreakdown} returns this
2278
+ */
2279
+ proto.PriceBreakdown.prototype.setDiscountAmount = function(value) {
2280
+ return jspb.Message.setProto3FloatField(this, 4, value);
2281
+ };
2282
+
2283
+
2284
+ /**
2285
+ * optional double downpayment_amount = 5;
2286
+ * @return {number}
2287
+ */
2288
+ proto.PriceBreakdown.prototype.getDownpaymentAmount = function() {
2289
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
2290
+ };
2291
+
2292
+
2293
+ /**
2294
+ * @param {number} value
2295
+ * @return {!proto.PriceBreakdown} returns this
2296
+ */
2297
+ proto.PriceBreakdown.prototype.setDownpaymentAmount = function(value) {
2298
+ return jspb.Message.setProto3FloatField(this, 5, value);
2299
+ };
2300
+
2301
+
2302
+ /**
2303
+ * optional double retention = 6;
2304
+ * @return {number}
2305
+ */
2306
+ proto.PriceBreakdown.prototype.getRetention = function() {
2307
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
2308
+ };
2309
+
2310
+
2311
+ /**
2312
+ * @param {number} value
2313
+ * @return {!proto.PriceBreakdown} returns this
2314
+ */
2315
+ proto.PriceBreakdown.prototype.setRetention = function(value) {
2316
+ return jspb.Message.setProto3FloatField(this, 6, value);
2317
+ };
2318
+
2319
+
2320
+ /**
2321
+ * optional double grand_total = 7;
2322
+ * @return {number}
2323
+ */
2324
+ proto.PriceBreakdown.prototype.getGrandTotal = function() {
2325
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
2326
+ };
2327
+
2328
+
2329
+ /**
2330
+ * @param {number} value
2331
+ * @return {!proto.PriceBreakdown} returns this
2332
+ */
2333
+ proto.PriceBreakdown.prototype.setGrandTotal = function(value) {
2334
+ return jspb.Message.setProto3FloatField(this, 7, value);
2335
+ };
2336
+
2337
+
1877
2338
 
1878
2339
  /**
1879
2340
  * List of repeated fields within this message type.
@@ -2834,7 +3295,9 @@ previousReferences: jspb.Message.getFieldWithDefault(msg, 13, ""),
2834
3295
  remainingQuantity: jspb.Message.getFieldWithDefault(msg, 14, ""),
2835
3296
  goodsReceiptQuantity: jspb.Message.getFieldWithDefault(msg, 15, ""),
2836
3297
  invoiceQuantity: jspb.Message.getFieldWithDefault(msg, 16, ""),
2837
- purchaseOrderQuantity: jspb.Message.getFieldWithDefault(msg, 17, "")
3298
+ purchaseOrderQuantity: jspb.Message.getFieldWithDefault(msg, 17, ""),
3299
+ purchaseRequisitionQuantity: jspb.Message.getFieldWithDefault(msg, 28, ""),
3300
+ purchaseRequisitionPrice: jspb.Message.getFieldWithDefault(msg, 29, "")
2838
3301
  };
2839
3302
 
2840
3303
  if (includeInstance) {
@@ -2941,6 +3404,14 @@ proto.ItemTransactionService.deserializeBinaryFromReader = function(msg, reader)
2941
3404
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
2942
3405
  msg.setPurchaseOrderQuantity(value);
2943
3406
  break;
3407
+ case 28:
3408
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3409
+ msg.setPurchaseRequisitionQuantity(value);
3410
+ break;
3411
+ case 29:
3412
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
3413
+ msg.setPurchaseRequisitionPrice(value);
3414
+ break;
2944
3415
  default:
2945
3416
  reader.skipField();
2946
3417
  break;
@@ -3091,6 +3562,20 @@ proto.ItemTransactionService.serializeBinaryToWriter = function(message, writer)
3091
3562
  f
3092
3563
  );
3093
3564
  }
3565
+ f = message.getPurchaseRequisitionQuantity();
3566
+ if (f.length > 0) {
3567
+ writer.writeString(
3568
+ 28,
3569
+ f
3570
+ );
3571
+ }
3572
+ f = message.getPurchaseRequisitionPrice();
3573
+ if (f.length > 0) {
3574
+ writer.writeString(
3575
+ 29,
3576
+ f
3577
+ );
3578
+ }
3094
3579
  };
3095
3580
 
3096
3581
 
@@ -3440,6 +3925,42 @@ proto.ItemTransactionService.prototype.setPurchaseOrderQuantity = function(value
3440
3925
  };
3441
3926
 
3442
3927
 
3928
+ /**
3929
+ * optional string purchase_requisition_quantity = 28;
3930
+ * @return {string}
3931
+ */
3932
+ proto.ItemTransactionService.prototype.getPurchaseRequisitionQuantity = function() {
3933
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
3934
+ };
3935
+
3936
+
3937
+ /**
3938
+ * @param {string} value
3939
+ * @return {!proto.ItemTransactionService} returns this
3940
+ */
3941
+ proto.ItemTransactionService.prototype.setPurchaseRequisitionQuantity = function(value) {
3942
+ return jspb.Message.setProto3StringField(this, 28, value);
3943
+ };
3944
+
3945
+
3946
+ /**
3947
+ * optional string purchase_requisition_price = 29;
3948
+ * @return {string}
3949
+ */
3950
+ proto.ItemTransactionService.prototype.getPurchaseRequisitionPrice = function() {
3951
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
3952
+ };
3953
+
3954
+
3955
+ /**
3956
+ * @param {string} value
3957
+ * @return {!proto.ItemTransactionService} returns this
3958
+ */
3959
+ proto.ItemTransactionService.prototype.setPurchaseRequisitionPrice = function(value) {
3960
+ return jspb.Message.setProto3StringField(this, 29, value);
3961
+ };
3962
+
3963
+
3443
3964
 
3444
3965
 
3445
3966
 
@@ -5139,7 +5660,7 @@ quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
5139
5660
  unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 8, ""),
5140
5661
  estimatedUnitPrice: jspb.Message.getFieldWithDefault(msg, 9, ""),
5141
5662
  deliveryDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
5142
- plannedDeliveryTime: jspb.Message.getFieldWithDefault(msg, 11, ""),
5663
+ plannedDeliveryTime: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
5143
5664
  customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
5144
5665
  itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
5145
5666
  proto.BaseItemTransactionDetail.toObject, includeInstance),
@@ -5159,7 +5680,9 @@ purchaseRequisitionPrice: jspb.Message.getFieldWithDefault(msg, 23, ""),
5159
5680
  includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 34, false),
5160
5681
  incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 35, 0.0),
5161
5682
  priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 36, ""),
5162
- itemCategory: jspb.Message.getFieldWithDefault(msg, 37, "")
5683
+ itemCategory: jspb.Message.getFieldWithDefault(msg, 37, ""),
5684
+ budgetCode: jspb.Message.getFieldWithDefault(msg, 38, ""),
5685
+ budgetRemaining: jspb.Message.getFieldWithDefault(msg, 39, "")
5163
5686
  };
5164
5687
 
5165
5688
  if (includeInstance) {
@@ -5308,6 +5831,14 @@ proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
5308
5831
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
5309
5832
  msg.setItemCategory(value);
5310
5833
  break;
5834
+ case 38:
5835
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5836
+ msg.setBudgetCode(value);
5837
+ break;
5838
+ case 39:
5839
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
5840
+ msg.setBudgetRemaining(value);
5841
+ break;
5311
5842
  default:
5312
5843
  reader.skipField();
5313
5844
  break;
@@ -5407,8 +5938,8 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
5407
5938
  f
5408
5939
  );
5409
5940
  }
5410
- f = message.getPlannedDeliveryTime();
5411
- if (f.length > 0) {
5941
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
5942
+ if (f != null) {
5412
5943
  writer.writeString(
5413
5944
  11,
5414
5945
  f
@@ -5530,6 +6061,20 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
5530
6061
  f
5531
6062
  );
5532
6063
  }
6064
+ f = message.getBudgetCode();
6065
+ if (f.length > 0) {
6066
+ writer.writeString(
6067
+ 38,
6068
+ f
6069
+ );
6070
+ }
6071
+ f = message.getBudgetRemaining();
6072
+ if (f.length > 0) {
6073
+ writer.writeString(
6074
+ 39,
6075
+ f
6076
+ );
6077
+ }
5533
6078
  };
5534
6079
 
5535
6080
 
@@ -5727,7 +6272,25 @@ proto.BaseItemTransaction.prototype.getPlannedDeliveryTime = function() {
5727
6272
  * @return {!proto.BaseItemTransaction} returns this
5728
6273
  */
5729
6274
  proto.BaseItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
5730
- return jspb.Message.setProto3StringField(this, 11, value);
6275
+ return jspb.Message.setField(this, 11, value);
6276
+ };
6277
+
6278
+
6279
+ /**
6280
+ * Clears the field making it undefined.
6281
+ * @return {!proto.BaseItemTransaction} returns this
6282
+ */
6283
+ proto.BaseItemTransaction.prototype.clearPlannedDeliveryTime = function() {
6284
+ return jspb.Message.setField(this, 11, undefined);
6285
+ };
6286
+
6287
+
6288
+ /**
6289
+ * Returns whether this field is set.
6290
+ * @return {boolean}
6291
+ */
6292
+ proto.BaseItemTransaction.prototype.hasPlannedDeliveryTime = function() {
6293
+ return jspb.Message.getField(this, 11) != null;
5731
6294
  };
5732
6295
 
5733
6296
 
@@ -6099,6 +6662,42 @@ proto.BaseItemTransaction.prototype.setItemCategory = function(value) {
6099
6662
  };
6100
6663
 
6101
6664
 
6665
+ /**
6666
+ * optional string budget_code = 38;
6667
+ * @return {string}
6668
+ */
6669
+ proto.BaseItemTransaction.prototype.getBudgetCode = function() {
6670
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, ""));
6671
+ };
6672
+
6673
+
6674
+ /**
6675
+ * @param {string} value
6676
+ * @return {!proto.BaseItemTransaction} returns this
6677
+ */
6678
+ proto.BaseItemTransaction.prototype.setBudgetCode = function(value) {
6679
+ return jspb.Message.setProto3StringField(this, 38, value);
6680
+ };
6681
+
6682
+
6683
+ /**
6684
+ * optional string budget_remaining = 39;
6685
+ * @return {string}
6686
+ */
6687
+ proto.BaseItemTransaction.prototype.getBudgetRemaining = function() {
6688
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, ""));
6689
+ };
6690
+
6691
+
6692
+ /**
6693
+ * @param {string} value
6694
+ * @return {!proto.BaseItemTransaction} returns this
6695
+ */
6696
+ proto.BaseItemTransaction.prototype.setBudgetRemaining = function(value) {
6697
+ return jspb.Message.setProto3StringField(this, 39, value);
6698
+ };
6699
+
6700
+
6102
6701
 
6103
6702
  /**
6104
6703
  * List of repeated fields within this message type.