@aldiokta/protocgen 1.1.61 → 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.
- package/package.json +1 -1
- package/prisca/v1/budget/budget_pb.js +211 -1
- package/prisca/v1/budget_planning/budget_planning_grpc_pb.js +33 -0
- package/prisca/v1/budget_planning/budget_planning_pb.js +1199 -152
- package/prisca/v1/core/auth/auth_grpc_pb.js +1 -0
- package/prisca/v1/core/auth/auth_pb.js +115 -2
- package/prisca/v1/core/employee/employee_grpc_pb.js +22 -0
- package/prisca/v1/core/employee/employee_pb.js +214 -2
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +519 -10
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +22 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +303 -1
- package/prisca/v1/core/report/report_pb.js +31 -1
- package/prisca/v1/core/users/users_pb.js +31 -1
- package/prisca/v1/down_payment/down_payment_grpc_pb.js +201 -0
- package/prisca/v1/down_payment/down_payment_pb.js +3357 -0
- package/prisca/v1/general_configuration/general_configuration_grpc_pb.js +212 -0
- package/prisca/v1/general_configuration/general_configuration_pb.js +2886 -0
- package/prisca/v1/invoice/invoice_grpc_pb.js +77 -0
- package/prisca/v1/invoice/invoice_pb.js +2657 -434
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +34 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +2542 -57
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +22 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +743 -53
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +72 -12
- package/prisca/v1/webhook_builder/webhook_builder_grpc_pb.js +245 -0
- package/prisca/v1/webhook_builder/webhook_builder_pb.js +5084 -0
- package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_grpc_pb.js +245 -0
- package/prisca/v1/webhook_incoming_integration/webhook_incoming_integration_pb.js +3499 -0
- package/prisca/v1/webhook_integration/webhook_integration_grpc_pb.js +212 -0
- 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.
|
|
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 =
|
|
696
|
-
if (f
|
|
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.
|
|
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.
|
|
@@ -5199,7 +5660,7 @@ quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
|
5199
5660
|
unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
5200
5661
|
estimatedUnitPrice: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5201
5662
|
deliveryDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
5202
|
-
plannedDeliveryTime: jspb.Message.
|
|
5663
|
+
plannedDeliveryTime: (f = jspb.Message.getField(msg, 11)) == null ? undefined : f,
|
|
5203
5664
|
customTransaction: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
5204
5665
|
itemTransactionDetailList: jspb.Message.toObjectList(msg.getItemTransactionDetailList(),
|
|
5205
5666
|
proto.BaseItemTransactionDetail.toObject, includeInstance),
|
|
@@ -5220,7 +5681,8 @@ includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 34, false),
|
|
|
5220
5681
|
incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 35, 0.0),
|
|
5221
5682
|
priceBeforeTax: jspb.Message.getFieldWithDefault(msg, 36, ""),
|
|
5222
5683
|
itemCategory: jspb.Message.getFieldWithDefault(msg, 37, ""),
|
|
5223
|
-
budgetCode: jspb.Message.getFieldWithDefault(msg, 38, "")
|
|
5684
|
+
budgetCode: jspb.Message.getFieldWithDefault(msg, 38, ""),
|
|
5685
|
+
budgetRemaining: jspb.Message.getFieldWithDefault(msg, 39, "")
|
|
5224
5686
|
};
|
|
5225
5687
|
|
|
5226
5688
|
if (includeInstance) {
|
|
@@ -5373,6 +5835,10 @@ proto.BaseItemTransaction.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
5373
5835
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5374
5836
|
msg.setBudgetCode(value);
|
|
5375
5837
|
break;
|
|
5838
|
+
case 39:
|
|
5839
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
5840
|
+
msg.setBudgetRemaining(value);
|
|
5841
|
+
break;
|
|
5376
5842
|
default:
|
|
5377
5843
|
reader.skipField();
|
|
5378
5844
|
break;
|
|
@@ -5472,8 +5938,8 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
5472
5938
|
f
|
|
5473
5939
|
);
|
|
5474
5940
|
}
|
|
5475
|
-
f =
|
|
5476
|
-
if (f
|
|
5941
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
5942
|
+
if (f != null) {
|
|
5477
5943
|
writer.writeString(
|
|
5478
5944
|
11,
|
|
5479
5945
|
f
|
|
@@ -5602,6 +6068,13 @@ proto.BaseItemTransaction.serializeBinaryToWriter = function(message, writer) {
|
|
|
5602
6068
|
f
|
|
5603
6069
|
);
|
|
5604
6070
|
}
|
|
6071
|
+
f = message.getBudgetRemaining();
|
|
6072
|
+
if (f.length > 0) {
|
|
6073
|
+
writer.writeString(
|
|
6074
|
+
39,
|
|
6075
|
+
f
|
|
6076
|
+
);
|
|
6077
|
+
}
|
|
5605
6078
|
};
|
|
5606
6079
|
|
|
5607
6080
|
|
|
@@ -5799,7 +6272,25 @@ proto.BaseItemTransaction.prototype.getPlannedDeliveryTime = function() {
|
|
|
5799
6272
|
* @return {!proto.BaseItemTransaction} returns this
|
|
5800
6273
|
*/
|
|
5801
6274
|
proto.BaseItemTransaction.prototype.setPlannedDeliveryTime = function(value) {
|
|
5802
|
-
return jspb.Message.
|
|
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;
|
|
5803
6294
|
};
|
|
5804
6295
|
|
|
5805
6296
|
|
|
@@ -6189,6 +6680,24 @@ proto.BaseItemTransaction.prototype.setBudgetCode = function(value) {
|
|
|
6189
6680
|
};
|
|
6190
6681
|
|
|
6191
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
|
+
|
|
6192
6701
|
|
|
6193
6702
|
/**
|
|
6194
6703
|
* List of repeated fields within this message type.
|
|
@@ -106,6 +106,17 @@ function deserialize_GetListLineOfApprovalResponse(buffer_arg) {
|
|
|
106
106
|
return prisca_v1_core_line_of_approval_line_of_approval_pb.GetListLineOfApprovalResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
function serialize_GetListOverViewApprovalRes(arg) {
|
|
110
|
+
if (!(arg instanceof prisca_v1_core_line_of_approval_line_of_approval_pb.GetListOverViewApprovalRes)) {
|
|
111
|
+
throw new Error('Expected argument of type GetListOverViewApprovalRes');
|
|
112
|
+
}
|
|
113
|
+
return Buffer.from(arg.serializeBinary());
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function deserialize_GetListOverViewApprovalRes(buffer_arg) {
|
|
117
|
+
return prisca_v1_core_line_of_approval_line_of_approval_pb.GetListOverViewApprovalRes.deserializeBinary(new Uint8Array(buffer_arg));
|
|
118
|
+
}
|
|
119
|
+
|
|
109
120
|
function serialize_GetVendorLineOfApprovalResponse(arg) {
|
|
110
121
|
if (!(arg instanceof prisca_v1_core_line_of_approval_line_of_approval_pb.GetVendorLineOfApprovalResponse)) {
|
|
111
122
|
throw new Error('Expected argument of type GetVendorLineOfApprovalResponse');
|
|
@@ -229,6 +240,17 @@ var LineOfApprovalServiceService = exports.LineOfApprovalServiceService = {
|
|
|
229
240
|
responseSerialize: serialize_GetVendorLineOfApprovalResponse,
|
|
230
241
|
responseDeserialize: deserialize_GetVendorLineOfApprovalResponse,
|
|
231
242
|
},
|
|
243
|
+
getListOverView: {
|
|
244
|
+
path: '/LineOfApprovalService/GetListOverView',
|
|
245
|
+
requestStream: false,
|
|
246
|
+
responseStream: false,
|
|
247
|
+
requestType: prisca_v1_core_line_of_approval_line_of_approval_pb.GetListLineOfApprovalRequest,
|
|
248
|
+
responseType: prisca_v1_core_line_of_approval_line_of_approval_pb.GetListOverViewApprovalRes,
|
|
249
|
+
requestSerialize: serialize_GetListLineOfApprovalRequest,
|
|
250
|
+
requestDeserialize: deserialize_GetListLineOfApprovalRequest,
|
|
251
|
+
responseSerialize: serialize_GetListOverViewApprovalRes,
|
|
252
|
+
responseDeserialize: deserialize_GetListOverViewApprovalRes,
|
|
253
|
+
},
|
|
232
254
|
};
|
|
233
255
|
|
|
234
256
|
exports.LineOfApprovalServiceClient = grpc.makeGenericClientConstructor(LineOfApprovalServiceService, 'LineOfApprovalService');
|