@aldiokta/protocgen 1.1.29 → 1.1.31
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/bidding/bidding_grpc_pb.js +1 -0
- package/prisca/v1/bidding/bidding_pb.js +206 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +316 -16
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
- package/prisca/v1/core/messaging/notification_grpc_pb.js +22 -0
- package/prisca/v1/core/messaging/notification_pb.js +425 -42
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +31 -1
- package/prisca/v1/delivery_order/delivery_order_pb.js +20 -1140
- package/prisca/v1/document_type/document_type_grpc_pb.js +22 -0
- package/prisca/v1/document_type/document_type_pb.js +214 -2
- package/prisca/v1/good_receipt/good_receipt_pb.js +25 -1235
- package/prisca/v1/invoice/invoice_pb.js +1615 -1559
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +1 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +4186 -21
- package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
- package/prisca/v1/quotation/quotation_pb.js +381 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +31 -1
|
@@ -49,7 +49,9 @@ goog.exportSymbol('proto.GetInvoiceItemDetailPreload', null, global);
|
|
|
49
49
|
goog.exportSymbol('proto.GetInvoiceItemPreload', null, global);
|
|
50
50
|
goog.exportSymbol('proto.GetListInvoiceReq', null, global);
|
|
51
51
|
goog.exportSymbol('proto.GetListInvoiceRes', null, global);
|
|
52
|
-
goog.exportSymbol('proto.
|
|
52
|
+
goog.exportSymbol('proto.ItemGoodReceipt', null, global);
|
|
53
|
+
goog.exportSymbol('proto.ItemInvoiceReference', null, global);
|
|
54
|
+
goog.exportSymbol('proto.ItemPurchaseOrder', null, global);
|
|
53
55
|
goog.exportSymbol('proto.UpdateInvoiceReq', null, global);
|
|
54
56
|
goog.exportSymbol('proto.UpdateInvoiceRes', null, global);
|
|
55
57
|
/**
|
|
@@ -73,27 +75,6 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
73
75
|
*/
|
|
74
76
|
proto.BaseInvoice.displayName = 'proto.BaseInvoice';
|
|
75
77
|
}
|
|
76
|
-
/**
|
|
77
|
-
* Generated by JsPbCodeGenerator.
|
|
78
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
79
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
80
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
81
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
82
|
-
* valid.
|
|
83
|
-
* @extends {jspb.Message}
|
|
84
|
-
* @constructor
|
|
85
|
-
*/
|
|
86
|
-
proto.Invoice = function(opt_data) {
|
|
87
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.Invoice.repeatedFields_, null);
|
|
88
|
-
};
|
|
89
|
-
goog.inherits(proto.Invoice, jspb.Message);
|
|
90
|
-
if (goog.DEBUG && !COMPILED) {
|
|
91
|
-
/**
|
|
92
|
-
* @public
|
|
93
|
-
* @override
|
|
94
|
-
*/
|
|
95
|
-
proto.Invoice.displayName = 'proto.Invoice';
|
|
96
|
-
}
|
|
97
78
|
/**
|
|
98
79
|
* Generated by JsPbCodeGenerator.
|
|
99
80
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -241,6 +222,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
241
222
|
*/
|
|
242
223
|
proto.GetInvoiceDetailRes.displayName = 'proto.GetInvoiceDetailRes';
|
|
243
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Generated by JsPbCodeGenerator.
|
|
227
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
228
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
229
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
230
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
231
|
+
* valid.
|
|
232
|
+
* @extends {jspb.Message}
|
|
233
|
+
* @constructor
|
|
234
|
+
*/
|
|
235
|
+
proto.ItemInvoiceReference = function(opt_data) {
|
|
236
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ItemInvoiceReference.repeatedFields_, null);
|
|
237
|
+
};
|
|
238
|
+
goog.inherits(proto.ItemInvoiceReference, jspb.Message);
|
|
239
|
+
if (goog.DEBUG && !COMPILED) {
|
|
240
|
+
/**
|
|
241
|
+
* @public
|
|
242
|
+
* @override
|
|
243
|
+
*/
|
|
244
|
+
proto.ItemInvoiceReference.displayName = 'proto.ItemInvoiceReference';
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Generated by JsPbCodeGenerator.
|
|
248
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
249
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
250
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
251
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
252
|
+
* valid.
|
|
253
|
+
* @extends {jspb.Message}
|
|
254
|
+
* @constructor
|
|
255
|
+
*/
|
|
256
|
+
proto.ItemPurchaseOrder = function(opt_data) {
|
|
257
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ItemPurchaseOrder.repeatedFields_, null);
|
|
258
|
+
};
|
|
259
|
+
goog.inherits(proto.ItemPurchaseOrder, jspb.Message);
|
|
260
|
+
if (goog.DEBUG && !COMPILED) {
|
|
261
|
+
/**
|
|
262
|
+
* @public
|
|
263
|
+
* @override
|
|
264
|
+
*/
|
|
265
|
+
proto.ItemPurchaseOrder.displayName = 'proto.ItemPurchaseOrder';
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Generated by JsPbCodeGenerator.
|
|
269
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
270
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
271
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
272
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
273
|
+
* valid.
|
|
274
|
+
* @extends {jspb.Message}
|
|
275
|
+
* @constructor
|
|
276
|
+
*/
|
|
277
|
+
proto.ItemGoodReceipt = function(opt_data) {
|
|
278
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
279
|
+
};
|
|
280
|
+
goog.inherits(proto.ItemGoodReceipt, jspb.Message);
|
|
281
|
+
if (goog.DEBUG && !COMPILED) {
|
|
282
|
+
/**
|
|
283
|
+
* @public
|
|
284
|
+
* @override
|
|
285
|
+
*/
|
|
286
|
+
proto.ItemGoodReceipt.displayName = 'proto.ItemGoodReceipt';
|
|
287
|
+
}
|
|
244
288
|
/**
|
|
245
289
|
* Generated by JsPbCodeGenerator.
|
|
246
290
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -331,7 +375,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
331
375
|
* @private {!Array<number>}
|
|
332
376
|
* @const
|
|
333
377
|
*/
|
|
334
|
-
proto.BaseInvoice.repeatedFields_ = [8,9];
|
|
378
|
+
proto.BaseInvoice.repeatedFields_ = [8,9,14];
|
|
335
379
|
|
|
336
380
|
|
|
337
381
|
|
|
@@ -378,7 +422,10 @@ filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
|
378
422
|
transactionType: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
379
423
|
taxReferences: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
380
424
|
status: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
381
|
-
remarks: jspb.Message.getFieldWithDefault(msg, 13, "")
|
|
425
|
+
remarks: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
426
|
+
shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
|
|
427
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
428
|
+
customTransaction: jspb.Message.getFieldWithDefault(msg, 15, "")
|
|
382
429
|
};
|
|
383
430
|
|
|
384
431
|
if (includeInstance) {
|
|
@@ -469,6 +516,15 @@ proto.BaseInvoice.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
469
516
|
var value = /** @type {string} */ (reader.readString());
|
|
470
517
|
msg.setRemarks(value);
|
|
471
518
|
break;
|
|
519
|
+
case 14:
|
|
520
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
521
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
522
|
+
msg.addShippingFiles(value);
|
|
523
|
+
break;
|
|
524
|
+
case 15:
|
|
525
|
+
var value = /** @type {string} */ (reader.readString());
|
|
526
|
+
msg.setCustomTransaction(value);
|
|
527
|
+
break;
|
|
472
528
|
default:
|
|
473
529
|
reader.skipField();
|
|
474
530
|
break;
|
|
@@ -591,6 +647,21 @@ proto.BaseInvoice.serializeBinaryToWriter = function(message, writer) {
|
|
|
591
647
|
f
|
|
592
648
|
);
|
|
593
649
|
}
|
|
650
|
+
f = message.getShippingFilesList();
|
|
651
|
+
if (f.length > 0) {
|
|
652
|
+
writer.writeRepeatedMessage(
|
|
653
|
+
14,
|
|
654
|
+
f,
|
|
655
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
f = message.getCustomTransaction();
|
|
659
|
+
if (f.length > 0) {
|
|
660
|
+
writer.writeString(
|
|
661
|
+
15,
|
|
662
|
+
f
|
|
663
|
+
);
|
|
664
|
+
}
|
|
594
665
|
};
|
|
595
666
|
|
|
596
667
|
|
|
@@ -868,13 +939,62 @@ proto.BaseInvoice.prototype.setRemarks = function(value) {
|
|
|
868
939
|
};
|
|
869
940
|
|
|
870
941
|
|
|
942
|
+
/**
|
|
943
|
+
* repeated FileUploadReferencesReq shipping_files = 14;
|
|
944
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
945
|
+
*/
|
|
946
|
+
proto.BaseInvoice.prototype.getShippingFilesList = function() {
|
|
947
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
948
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 14));
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
954
|
+
* @return {!proto.BaseInvoice} returns this
|
|
955
|
+
*/
|
|
956
|
+
proto.BaseInvoice.prototype.setShippingFilesList = function(value) {
|
|
957
|
+
return jspb.Message.setRepeatedWrapperField(this, 14, value);
|
|
958
|
+
};
|
|
959
|
+
|
|
871
960
|
|
|
872
961
|
/**
|
|
873
|
-
*
|
|
874
|
-
* @
|
|
875
|
-
* @
|
|
962
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
963
|
+
* @param {number=} opt_index
|
|
964
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
965
|
+
*/
|
|
966
|
+
proto.BaseInvoice.prototype.addShippingFiles = function(opt_value, opt_index) {
|
|
967
|
+
return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
968
|
+
};
|
|
969
|
+
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Clears the list making it empty but non-null.
|
|
973
|
+
* @return {!proto.BaseInvoice} returns this
|
|
974
|
+
*/
|
|
975
|
+
proto.BaseInvoice.prototype.clearShippingFilesList = function() {
|
|
976
|
+
return this.setShippingFilesList([]);
|
|
977
|
+
};
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* optional string custom_transaction = 15;
|
|
982
|
+
* @return {string}
|
|
983
|
+
*/
|
|
984
|
+
proto.BaseInvoice.prototype.getCustomTransaction = function() {
|
|
985
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
986
|
+
};
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* @param {string} value
|
|
991
|
+
* @return {!proto.BaseInvoice} returns this
|
|
876
992
|
*/
|
|
877
|
-
proto.
|
|
993
|
+
proto.BaseInvoice.prototype.setCustomTransaction = function(value) {
|
|
994
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
|
|
878
998
|
|
|
879
999
|
|
|
880
1000
|
|
|
@@ -891,8 +1011,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
891
1011
|
* http://goto/soy-param-migration
|
|
892
1012
|
* @return {!Object}
|
|
893
1013
|
*/
|
|
894
|
-
proto.
|
|
895
|
-
return proto.
|
|
1014
|
+
proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
|
|
1015
|
+
return proto.CreateInvoiceReq.toObject(opt_includeInstance, this);
|
|
896
1016
|
};
|
|
897
1017
|
|
|
898
1018
|
|
|
@@ -901,49 +1021,13 @@ proto.Invoice.prototype.toObject = function(opt_includeInstance) {
|
|
|
901
1021
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
902
1022
|
* the JSPB instance for transitional soy proto support:
|
|
903
1023
|
* http://goto/soy-param-migration
|
|
904
|
-
* @param {!proto.
|
|
1024
|
+
* @param {!proto.CreateInvoiceReq} msg The msg instance to transform.
|
|
905
1025
|
* @return {!Object}
|
|
906
1026
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
907
1027
|
*/
|
|
908
|
-
proto.
|
|
1028
|
+
proto.CreateInvoiceReq.toObject = function(includeInstance, msg) {
|
|
909
1029
|
var f, obj = {
|
|
910
|
-
|
|
911
|
-
purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
912
|
-
goodReceiptReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
913
|
-
vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
914
|
-
invoiceSubject: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
915
|
-
invoiceType: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
916
|
-
plant: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
917
|
-
invoiceDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
918
|
-
invoiceNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
919
|
-
documentNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
920
|
-
remarks: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
921
|
-
taxReferences: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
922
|
-
externalNumber: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
923
|
-
goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
924
|
-
purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
925
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
926
|
-
status: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
927
|
-
createdAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
928
|
-
updatedAt: jspb.Message.getFieldWithDefault(msg, 19, ""),
|
|
929
|
-
createdBy: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
930
|
-
updateBy: jspb.Message.getFieldWithDefault(msg, 21, ""),
|
|
931
|
-
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
932
|
-
groupReferences: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
933
|
-
isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
|
|
934
|
-
fileIds: jspb.Message.getFieldWithDefault(msg, 25, ""),
|
|
935
|
-
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
936
|
-
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
937
|
-
company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
|
|
938
|
-
purchaseOrder: (f = msg.getPurchaseOrder()) && prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.toObject(includeInstance, f),
|
|
939
|
-
goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
|
|
940
|
-
prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.toObject, includeInstance),
|
|
941
|
-
vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
|
|
942
|
-
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
943
|
-
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
|
|
944
|
-
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
945
|
-
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
946
|
-
vendorName: jspb.Message.getFieldWithDefault(msg, 34, "")
|
|
1030
|
+
baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
|
|
947
1031
|
};
|
|
948
1032
|
|
|
949
1033
|
if (includeInstance) {
|
|
@@ -957,23 +1041,23 @@ vendorName: jspb.Message.getFieldWithDefault(msg, 34, "")
|
|
|
957
1041
|
/**
|
|
958
1042
|
* Deserializes binary data (in protobuf wire format).
|
|
959
1043
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
960
|
-
* @return {!proto.
|
|
1044
|
+
* @return {!proto.CreateInvoiceReq}
|
|
961
1045
|
*/
|
|
962
|
-
proto.
|
|
1046
|
+
proto.CreateInvoiceReq.deserializeBinary = function(bytes) {
|
|
963
1047
|
var reader = new jspb.BinaryReader(bytes);
|
|
964
|
-
var msg = new proto.
|
|
965
|
-
return proto.
|
|
1048
|
+
var msg = new proto.CreateInvoiceReq;
|
|
1049
|
+
return proto.CreateInvoiceReq.deserializeBinaryFromReader(msg, reader);
|
|
966
1050
|
};
|
|
967
1051
|
|
|
968
1052
|
|
|
969
1053
|
/**
|
|
970
1054
|
* Deserializes binary data (in protobuf wire format) from the
|
|
971
1055
|
* given reader into the given message object.
|
|
972
|
-
* @param {!proto.
|
|
1056
|
+
* @param {!proto.CreateInvoiceReq} msg The message object to deserialize into.
|
|
973
1057
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
974
|
-
* @return {!proto.
|
|
1058
|
+
* @return {!proto.CreateInvoiceReq}
|
|
975
1059
|
*/
|
|
976
|
-
proto.
|
|
1060
|
+
proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
977
1061
|
while (reader.nextField()) {
|
|
978
1062
|
if (reader.isEndGroup()) {
|
|
979
1063
|
break;
|
|
@@ -981,148 +1065,9 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
981
1065
|
var field = reader.getFieldNumber();
|
|
982
1066
|
switch (field) {
|
|
983
1067
|
case 1:
|
|
984
|
-
var value =
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
case 2:
|
|
988
|
-
var value = /** @type {string} */ (reader.readString());
|
|
989
|
-
msg.setPurchaseOrderReferencesId(value);
|
|
990
|
-
break;
|
|
991
|
-
case 3:
|
|
992
|
-
var value = /** @type {string} */ (reader.readString());
|
|
993
|
-
msg.setGoodReceiptReferencesId(value);
|
|
994
|
-
break;
|
|
995
|
-
case 4:
|
|
996
|
-
var value = /** @type {string} */ (reader.readString());
|
|
997
|
-
msg.setVendorReferencesId(value);
|
|
998
|
-
break;
|
|
999
|
-
case 5:
|
|
1000
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1001
|
-
msg.setInvoiceSubject(value);
|
|
1002
|
-
break;
|
|
1003
|
-
case 6:
|
|
1004
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1005
|
-
msg.setInvoiceType(value);
|
|
1006
|
-
break;
|
|
1007
|
-
case 7:
|
|
1008
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1009
|
-
msg.setPlant(value);
|
|
1010
|
-
break;
|
|
1011
|
-
case 8:
|
|
1012
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1013
|
-
msg.setInvoiceDate(value);
|
|
1014
|
-
break;
|
|
1015
|
-
case 9:
|
|
1016
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1017
|
-
msg.setInvoiceNumber(value);
|
|
1018
|
-
break;
|
|
1019
|
-
case 10:
|
|
1020
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1021
|
-
msg.setDocumentNumber(value);
|
|
1022
|
-
break;
|
|
1023
|
-
case 11:
|
|
1024
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1025
|
-
msg.setRemarks(value);
|
|
1026
|
-
break;
|
|
1027
|
-
case 12:
|
|
1028
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1029
|
-
msg.setTaxReferences(value);
|
|
1030
|
-
break;
|
|
1031
|
-
case 13:
|
|
1032
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1033
|
-
msg.setExternalNumber(value);
|
|
1034
|
-
break;
|
|
1035
|
-
case 14:
|
|
1036
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1037
|
-
msg.setGoodReceiptNumber(value);
|
|
1038
|
-
break;
|
|
1039
|
-
case 15:
|
|
1040
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1041
|
-
msg.setPurchaseOrderNumber(value);
|
|
1042
|
-
break;
|
|
1043
|
-
case 16:
|
|
1044
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1045
|
-
msg.setReferencesId(value);
|
|
1046
|
-
break;
|
|
1047
|
-
case 17:
|
|
1048
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1049
|
-
msg.setStatus(value);
|
|
1050
|
-
break;
|
|
1051
|
-
case 18:
|
|
1052
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1053
|
-
msg.setCreatedAt(value);
|
|
1054
|
-
break;
|
|
1055
|
-
case 19:
|
|
1056
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1057
|
-
msg.setUpdatedAt(value);
|
|
1058
|
-
break;
|
|
1059
|
-
case 20:
|
|
1060
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1061
|
-
msg.setCreatedBy(value);
|
|
1062
|
-
break;
|
|
1063
|
-
case 21:
|
|
1064
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1065
|
-
msg.setUpdateBy(value);
|
|
1066
|
-
break;
|
|
1067
|
-
case 22:
|
|
1068
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1069
|
-
msg.setCompaniesReferencesId(value);
|
|
1070
|
-
break;
|
|
1071
|
-
case 23:
|
|
1072
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1073
|
-
msg.setGroupReferences(value);
|
|
1074
|
-
break;
|
|
1075
|
-
case 24:
|
|
1076
|
-
var value = /** @type {boolean} */ (reader.readBool());
|
|
1077
|
-
msg.setIsExpired(value);
|
|
1078
|
-
break;
|
|
1079
|
-
case 25:
|
|
1080
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1081
|
-
msg.setFileIds(value);
|
|
1082
|
-
break;
|
|
1083
|
-
case 26:
|
|
1084
|
-
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
1085
|
-
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
1086
|
-
msg.addFiles(value);
|
|
1087
|
-
break;
|
|
1088
|
-
case 27:
|
|
1089
|
-
var value = new prisca_v1_core_company_company_pb.Company;
|
|
1090
|
-
reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
|
|
1091
|
-
msg.setCompany(value);
|
|
1092
|
-
break;
|
|
1093
|
-
case 28:
|
|
1094
|
-
var value = new prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder;
|
|
1095
|
-
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.deserializeBinaryFromReader);
|
|
1096
|
-
msg.setPurchaseOrder(value);
|
|
1097
|
-
break;
|
|
1098
|
-
case 29:
|
|
1099
|
-
var value = new prisca_v1_good_receipt_good_receipt_pb.GoodReceipt;
|
|
1100
|
-
reader.readMessage(value,prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.deserializeBinaryFromReader);
|
|
1101
|
-
msg.addGoodReceipts(value);
|
|
1102
|
-
break;
|
|
1103
|
-
case 30:
|
|
1104
|
-
var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
|
|
1105
|
-
reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
|
|
1106
|
-
msg.setVendor(value);
|
|
1107
|
-
break;
|
|
1108
|
-
case 31:
|
|
1109
|
-
var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
|
|
1110
|
-
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
|
|
1111
|
-
msg.addItemTransactions(value);
|
|
1112
|
-
break;
|
|
1113
|
-
case 32:
|
|
1114
|
-
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
1115
|
-
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
1116
|
-
msg.setCreatedByEmployee(value);
|
|
1117
|
-
break;
|
|
1118
|
-
case 33:
|
|
1119
|
-
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
1120
|
-
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
1121
|
-
msg.setUpdatedByEmployee(value);
|
|
1122
|
-
break;
|
|
1123
|
-
case 34:
|
|
1124
|
-
var value = /** @type {string} */ (reader.readString());
|
|
1125
|
-
msg.setVendorName(value);
|
|
1068
|
+
var value = new proto.BaseInvoice;
|
|
1069
|
+
reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
|
|
1070
|
+
msg.setBaseInvoice(value);
|
|
1126
1071
|
break;
|
|
1127
1072
|
default:
|
|
1128
1073
|
reader.skipField();
|
|
@@ -1137,9 +1082,9 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1137
1082
|
* Serializes the message to binary data (in protobuf wire format).
|
|
1138
1083
|
* @return {!Uint8Array}
|
|
1139
1084
|
*/
|
|
1140
|
-
proto.
|
|
1085
|
+
proto.CreateInvoiceReq.prototype.serializeBinary = function() {
|
|
1141
1086
|
var writer = new jspb.BinaryWriter();
|
|
1142
|
-
proto.
|
|
1087
|
+
proto.CreateInvoiceReq.serializeBinaryToWriter(this, writer);
|
|
1143
1088
|
return writer.getResultBuffer();
|
|
1144
1089
|
};
|
|
1145
1090
|
|
|
@@ -1147,774 +1092,633 @@ proto.Invoice.prototype.serializeBinary = function() {
|
|
|
1147
1092
|
/**
|
|
1148
1093
|
* Serializes the given message to binary data (in protobuf wire
|
|
1149
1094
|
* format), writing to the given BinaryWriter.
|
|
1150
|
-
* @param {!proto.
|
|
1095
|
+
* @param {!proto.CreateInvoiceReq} message
|
|
1151
1096
|
* @param {!jspb.BinaryWriter} writer
|
|
1152
1097
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1153
1098
|
*/
|
|
1154
|
-
proto.
|
|
1099
|
+
proto.CreateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
|
|
1155
1100
|
var f = undefined;
|
|
1156
|
-
f = message.
|
|
1157
|
-
if (f
|
|
1158
|
-
writer.
|
|
1101
|
+
f = message.getBaseInvoice();
|
|
1102
|
+
if (f != null) {
|
|
1103
|
+
writer.writeMessage(
|
|
1159
1104
|
1,
|
|
1160
|
-
f
|
|
1161
|
-
);
|
|
1162
|
-
}
|
|
1163
|
-
f = message.getPurchaseOrderReferencesId();
|
|
1164
|
-
if (f.length > 0) {
|
|
1165
|
-
writer.writeString(
|
|
1166
|
-
2,
|
|
1167
|
-
f
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
f = message.getGoodReceiptReferencesId();
|
|
1171
|
-
if (f.length > 0) {
|
|
1172
|
-
writer.writeString(
|
|
1173
|
-
3,
|
|
1174
|
-
f
|
|
1175
|
-
);
|
|
1176
|
-
}
|
|
1177
|
-
f = message.getVendorReferencesId();
|
|
1178
|
-
if (f.length > 0) {
|
|
1179
|
-
writer.writeString(
|
|
1180
|
-
4,
|
|
1181
|
-
f
|
|
1182
|
-
);
|
|
1183
|
-
}
|
|
1184
|
-
f = message.getInvoiceSubject();
|
|
1185
|
-
if (f.length > 0) {
|
|
1186
|
-
writer.writeString(
|
|
1187
|
-
5,
|
|
1188
|
-
f
|
|
1189
|
-
);
|
|
1190
|
-
}
|
|
1191
|
-
f = message.getInvoiceType();
|
|
1192
|
-
if (f.length > 0) {
|
|
1193
|
-
writer.writeString(
|
|
1194
|
-
6,
|
|
1195
|
-
f
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
f = message.getPlant();
|
|
1199
|
-
if (f.length > 0) {
|
|
1200
|
-
writer.writeString(
|
|
1201
|
-
7,
|
|
1202
|
-
f
|
|
1203
|
-
);
|
|
1204
|
-
}
|
|
1205
|
-
f = message.getInvoiceDate();
|
|
1206
|
-
if (f.length > 0) {
|
|
1207
|
-
writer.writeString(
|
|
1208
|
-
8,
|
|
1209
|
-
f
|
|
1210
|
-
);
|
|
1211
|
-
}
|
|
1212
|
-
f = message.getInvoiceNumber();
|
|
1213
|
-
if (f.length > 0) {
|
|
1214
|
-
writer.writeString(
|
|
1215
|
-
9,
|
|
1216
|
-
f
|
|
1217
|
-
);
|
|
1218
|
-
}
|
|
1219
|
-
f = message.getDocumentNumber();
|
|
1220
|
-
if (f.length > 0) {
|
|
1221
|
-
writer.writeString(
|
|
1222
|
-
10,
|
|
1223
|
-
f
|
|
1224
|
-
);
|
|
1225
|
-
}
|
|
1226
|
-
f = message.getRemarks();
|
|
1227
|
-
if (f.length > 0) {
|
|
1228
|
-
writer.writeString(
|
|
1229
|
-
11,
|
|
1230
|
-
f
|
|
1231
|
-
);
|
|
1232
|
-
}
|
|
1233
|
-
f = message.getTaxReferences();
|
|
1234
|
-
if (f.length > 0) {
|
|
1235
|
-
writer.writeString(
|
|
1236
|
-
12,
|
|
1237
|
-
f
|
|
1238
|
-
);
|
|
1239
|
-
}
|
|
1240
|
-
f = message.getExternalNumber();
|
|
1241
|
-
if (f.length > 0) {
|
|
1242
|
-
writer.writeString(
|
|
1243
|
-
13,
|
|
1244
|
-
f
|
|
1245
|
-
);
|
|
1246
|
-
}
|
|
1247
|
-
f = message.getGoodReceiptNumber();
|
|
1248
|
-
if (f.length > 0) {
|
|
1249
|
-
writer.writeString(
|
|
1250
|
-
14,
|
|
1251
|
-
f
|
|
1252
|
-
);
|
|
1253
|
-
}
|
|
1254
|
-
f = message.getPurchaseOrderNumber();
|
|
1255
|
-
if (f.length > 0) {
|
|
1256
|
-
writer.writeString(
|
|
1257
|
-
15,
|
|
1258
|
-
f
|
|
1259
|
-
);
|
|
1260
|
-
}
|
|
1261
|
-
f = message.getReferencesId();
|
|
1262
|
-
if (f.length > 0) {
|
|
1263
|
-
writer.writeString(
|
|
1264
|
-
16,
|
|
1265
|
-
f
|
|
1266
|
-
);
|
|
1267
|
-
}
|
|
1268
|
-
f = message.getStatus();
|
|
1269
|
-
if (f.length > 0) {
|
|
1270
|
-
writer.writeString(
|
|
1271
|
-
17,
|
|
1272
|
-
f
|
|
1273
|
-
);
|
|
1274
|
-
}
|
|
1275
|
-
f = message.getCreatedAt();
|
|
1276
|
-
if (f.length > 0) {
|
|
1277
|
-
writer.writeString(
|
|
1278
|
-
18,
|
|
1279
|
-
f
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
f = message.getUpdatedAt();
|
|
1283
|
-
if (f.length > 0) {
|
|
1284
|
-
writer.writeString(
|
|
1285
|
-
19,
|
|
1286
|
-
f
|
|
1287
|
-
);
|
|
1288
|
-
}
|
|
1289
|
-
f = message.getCreatedBy();
|
|
1290
|
-
if (f.length > 0) {
|
|
1291
|
-
writer.writeString(
|
|
1292
|
-
20,
|
|
1293
|
-
f
|
|
1294
|
-
);
|
|
1295
|
-
}
|
|
1296
|
-
f = message.getUpdateBy();
|
|
1297
|
-
if (f.length > 0) {
|
|
1298
|
-
writer.writeString(
|
|
1299
|
-
21,
|
|
1300
|
-
f
|
|
1301
|
-
);
|
|
1302
|
-
}
|
|
1303
|
-
f = message.getCompaniesReferencesId();
|
|
1304
|
-
if (f.length > 0) {
|
|
1305
|
-
writer.writeString(
|
|
1306
|
-
22,
|
|
1307
|
-
f
|
|
1308
|
-
);
|
|
1309
|
-
}
|
|
1310
|
-
f = message.getGroupReferences();
|
|
1311
|
-
if (f.length > 0) {
|
|
1312
|
-
writer.writeString(
|
|
1313
|
-
23,
|
|
1314
|
-
f
|
|
1315
|
-
);
|
|
1316
|
-
}
|
|
1317
|
-
f = message.getIsExpired();
|
|
1318
|
-
if (f) {
|
|
1319
|
-
writer.writeBool(
|
|
1320
|
-
24,
|
|
1321
|
-
f
|
|
1322
|
-
);
|
|
1323
|
-
}
|
|
1324
|
-
f = message.getFileIds();
|
|
1325
|
-
if (f.length > 0) {
|
|
1326
|
-
writer.writeString(
|
|
1327
|
-
25,
|
|
1328
|
-
f
|
|
1329
|
-
);
|
|
1330
|
-
}
|
|
1331
|
-
f = message.getFilesList();
|
|
1332
|
-
if (f.length > 0) {
|
|
1333
|
-
writer.writeRepeatedMessage(
|
|
1334
|
-
26,
|
|
1335
1105
|
f,
|
|
1336
|
-
|
|
1337
|
-
);
|
|
1338
|
-
}
|
|
1339
|
-
f = message.getCompany();
|
|
1340
|
-
if (f != null) {
|
|
1341
|
-
writer.writeMessage(
|
|
1342
|
-
27,
|
|
1343
|
-
f,
|
|
1344
|
-
prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
|
|
1345
|
-
);
|
|
1346
|
-
}
|
|
1347
|
-
f = message.getPurchaseOrder();
|
|
1348
|
-
if (f != null) {
|
|
1349
|
-
writer.writeMessage(
|
|
1350
|
-
28,
|
|
1351
|
-
f,
|
|
1352
|
-
prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder.serializeBinaryToWriter
|
|
1353
|
-
);
|
|
1354
|
-
}
|
|
1355
|
-
f = message.getGoodReceiptsList();
|
|
1356
|
-
if (f.length > 0) {
|
|
1357
|
-
writer.writeRepeatedMessage(
|
|
1358
|
-
29,
|
|
1359
|
-
f,
|
|
1360
|
-
prisca_v1_good_receipt_good_receipt_pb.GoodReceipt.serializeBinaryToWriter
|
|
1361
|
-
);
|
|
1362
|
-
}
|
|
1363
|
-
f = message.getVendor();
|
|
1364
|
-
if (f != null) {
|
|
1365
|
-
writer.writeMessage(
|
|
1366
|
-
30,
|
|
1367
|
-
f,
|
|
1368
|
-
prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
|
|
1369
|
-
);
|
|
1370
|
-
}
|
|
1371
|
-
f = message.getItemTransactionsList();
|
|
1372
|
-
if (f.length > 0) {
|
|
1373
|
-
writer.writeRepeatedMessage(
|
|
1374
|
-
31,
|
|
1375
|
-
f,
|
|
1376
|
-
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
|
|
1377
|
-
);
|
|
1378
|
-
}
|
|
1379
|
-
f = message.getCreatedByEmployee();
|
|
1380
|
-
if (f != null) {
|
|
1381
|
-
writer.writeMessage(
|
|
1382
|
-
32,
|
|
1383
|
-
f,
|
|
1384
|
-
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
1385
|
-
);
|
|
1386
|
-
}
|
|
1387
|
-
f = message.getUpdatedByEmployee();
|
|
1388
|
-
if (f != null) {
|
|
1389
|
-
writer.writeMessage(
|
|
1390
|
-
33,
|
|
1391
|
-
f,
|
|
1392
|
-
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
1393
|
-
);
|
|
1394
|
-
}
|
|
1395
|
-
f = message.getVendorName();
|
|
1396
|
-
if (f.length > 0) {
|
|
1397
|
-
writer.writeString(
|
|
1398
|
-
34,
|
|
1399
|
-
f
|
|
1106
|
+
proto.BaseInvoice.serializeBinaryToWriter
|
|
1400
1107
|
);
|
|
1401
1108
|
}
|
|
1402
1109
|
};
|
|
1403
1110
|
|
|
1404
1111
|
|
|
1405
1112
|
/**
|
|
1406
|
-
* optional
|
|
1407
|
-
* @return {
|
|
1408
|
-
*/
|
|
1409
|
-
proto.Invoice.prototype.getId = function() {
|
|
1410
|
-
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
1411
|
-
};
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
/**
|
|
1415
|
-
* @param {number} value
|
|
1416
|
-
* @return {!proto.Invoice} returns this
|
|
1417
|
-
*/
|
|
1418
|
-
proto.Invoice.prototype.setId = function(value) {
|
|
1419
|
-
return jspb.Message.setProto3IntField(this, 1, value);
|
|
1420
|
-
};
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
/**
|
|
1424
|
-
* optional string purchase_order_references_id = 2;
|
|
1425
|
-
* @return {string}
|
|
1426
|
-
*/
|
|
1427
|
-
proto.Invoice.prototype.getPurchaseOrderReferencesId = function() {
|
|
1428
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
1429
|
-
};
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* @param {string} value
|
|
1434
|
-
* @return {!proto.Invoice} returns this
|
|
1435
|
-
*/
|
|
1436
|
-
proto.Invoice.prototype.setPurchaseOrderReferencesId = function(value) {
|
|
1437
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
1438
|
-
};
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* optional string good_receipt_references_id = 3;
|
|
1443
|
-
* @return {string}
|
|
1444
|
-
*/
|
|
1445
|
-
proto.Invoice.prototype.getGoodReceiptReferencesId = function() {
|
|
1446
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
1447
|
-
};
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
/**
|
|
1451
|
-
* @param {string} value
|
|
1452
|
-
* @return {!proto.Invoice} returns this
|
|
1453
|
-
*/
|
|
1454
|
-
proto.Invoice.prototype.setGoodReceiptReferencesId = function(value) {
|
|
1455
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
1456
|
-
};
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
/**
|
|
1460
|
-
* optional string vendor_references_id = 4;
|
|
1461
|
-
* @return {string}
|
|
1462
|
-
*/
|
|
1463
|
-
proto.Invoice.prototype.getVendorReferencesId = function() {
|
|
1464
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
1465
|
-
};
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
/**
|
|
1469
|
-
* @param {string} value
|
|
1470
|
-
* @return {!proto.Invoice} returns this
|
|
1471
|
-
*/
|
|
1472
|
-
proto.Invoice.prototype.setVendorReferencesId = function(value) {
|
|
1473
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
1474
|
-
};
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
/**
|
|
1478
|
-
* optional string invoice_subject = 5;
|
|
1479
|
-
* @return {string}
|
|
1480
|
-
*/
|
|
1481
|
-
proto.Invoice.prototype.getInvoiceSubject = function() {
|
|
1482
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
/**
|
|
1487
|
-
* @param {string} value
|
|
1488
|
-
* @return {!proto.Invoice} returns this
|
|
1489
|
-
*/
|
|
1490
|
-
proto.Invoice.prototype.setInvoiceSubject = function(value) {
|
|
1491
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1492
|
-
};
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
/**
|
|
1496
|
-
* optional string invoice_type = 6;
|
|
1497
|
-
* @return {string}
|
|
1498
|
-
*/
|
|
1499
|
-
proto.Invoice.prototype.getInvoiceType = function() {
|
|
1500
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1501
|
-
};
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
/**
|
|
1505
|
-
* @param {string} value
|
|
1506
|
-
* @return {!proto.Invoice} returns this
|
|
1113
|
+
* optional BaseInvoice base_invoice = 1;
|
|
1114
|
+
* @return {?proto.BaseInvoice}
|
|
1507
1115
|
*/
|
|
1508
|
-
proto.
|
|
1509
|
-
return
|
|
1116
|
+
proto.CreateInvoiceReq.prototype.getBaseInvoice = function() {
|
|
1117
|
+
return /** @type{?proto.BaseInvoice} */ (
|
|
1118
|
+
jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
|
|
1510
1119
|
};
|
|
1511
1120
|
|
|
1512
1121
|
|
|
1513
1122
|
/**
|
|
1514
|
-
*
|
|
1515
|
-
* @return {
|
|
1516
|
-
|
|
1517
|
-
proto.
|
|
1518
|
-
return
|
|
1123
|
+
* @param {?proto.BaseInvoice|undefined} value
|
|
1124
|
+
* @return {!proto.CreateInvoiceReq} returns this
|
|
1125
|
+
*/
|
|
1126
|
+
proto.CreateInvoiceReq.prototype.setBaseInvoice = function(value) {
|
|
1127
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1519
1128
|
};
|
|
1520
1129
|
|
|
1521
1130
|
|
|
1522
1131
|
/**
|
|
1523
|
-
*
|
|
1524
|
-
* @return {!proto.
|
|
1132
|
+
* Clears the message field making it undefined.
|
|
1133
|
+
* @return {!proto.CreateInvoiceReq} returns this
|
|
1525
1134
|
*/
|
|
1526
|
-
proto.
|
|
1527
|
-
return
|
|
1135
|
+
proto.CreateInvoiceReq.prototype.clearBaseInvoice = function() {
|
|
1136
|
+
return this.setBaseInvoice(undefined);
|
|
1528
1137
|
};
|
|
1529
1138
|
|
|
1530
1139
|
|
|
1531
1140
|
/**
|
|
1532
|
-
*
|
|
1533
|
-
* @return {
|
|
1141
|
+
* Returns whether this field is set.
|
|
1142
|
+
* @return {boolean}
|
|
1534
1143
|
*/
|
|
1535
|
-
proto.
|
|
1536
|
-
return
|
|
1144
|
+
proto.CreateInvoiceReq.prototype.hasBaseInvoice = function() {
|
|
1145
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1537
1146
|
};
|
|
1538
1147
|
|
|
1539
1148
|
|
|
1540
|
-
/**
|
|
1541
|
-
* @param {string} value
|
|
1542
|
-
* @return {!proto.Invoice} returns this
|
|
1543
|
-
*/
|
|
1544
|
-
proto.Invoice.prototype.setInvoiceDate = function(value) {
|
|
1545
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1546
|
-
};
|
|
1547
1149
|
|
|
1548
1150
|
|
|
1549
|
-
/**
|
|
1550
|
-
* optional string invoice_number = 9;
|
|
1551
|
-
* @return {string}
|
|
1552
|
-
*/
|
|
1553
|
-
proto.Invoice.prototype.getInvoiceNumber = function() {
|
|
1554
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1557
1151
|
|
|
1152
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1558
1153
|
/**
|
|
1559
|
-
*
|
|
1560
|
-
*
|
|
1154
|
+
* Creates an object representation of this proto.
|
|
1155
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1156
|
+
* Optional fields that are not set will be set to undefined.
|
|
1157
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1158
|
+
* For the list of reserved names please see:
|
|
1159
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1160
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1161
|
+
* JSPB instance for transitional soy proto support:
|
|
1162
|
+
* http://goto/soy-param-migration
|
|
1163
|
+
* @return {!Object}
|
|
1561
1164
|
*/
|
|
1562
|
-
proto.
|
|
1563
|
-
return
|
|
1165
|
+
proto.CreateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
|
|
1166
|
+
return proto.CreateInvoiceRes.toObject(opt_includeInstance, this);
|
|
1564
1167
|
};
|
|
1565
1168
|
|
|
1566
1169
|
|
|
1567
1170
|
/**
|
|
1568
|
-
*
|
|
1569
|
-
* @
|
|
1171
|
+
* Static version of the {@see toObject} method.
|
|
1172
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1173
|
+
* the JSPB instance for transitional soy proto support:
|
|
1174
|
+
* http://goto/soy-param-migration
|
|
1175
|
+
* @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
|
|
1176
|
+
* @return {!Object}
|
|
1177
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1570
1178
|
*/
|
|
1571
|
-
proto.
|
|
1572
|
-
|
|
1179
|
+
proto.CreateInvoiceRes.toObject = function(includeInstance, msg) {
|
|
1180
|
+
var f, obj = {
|
|
1181
|
+
invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
|
|
1182
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
if (includeInstance) {
|
|
1186
|
+
obj.$jspbMessageInstance = msg;
|
|
1187
|
+
}
|
|
1188
|
+
return obj;
|
|
1573
1189
|
};
|
|
1190
|
+
}
|
|
1574
1191
|
|
|
1575
1192
|
|
|
1576
1193
|
/**
|
|
1577
|
-
*
|
|
1578
|
-
* @
|
|
1194
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1195
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1196
|
+
* @return {!proto.CreateInvoiceRes}
|
|
1579
1197
|
*/
|
|
1580
|
-
proto.
|
|
1581
|
-
|
|
1198
|
+
proto.CreateInvoiceRes.deserializeBinary = function(bytes) {
|
|
1199
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1200
|
+
var msg = new proto.CreateInvoiceRes;
|
|
1201
|
+
return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
|
|
1582
1202
|
};
|
|
1583
1203
|
|
|
1584
1204
|
|
|
1585
1205
|
/**
|
|
1586
|
-
*
|
|
1587
|
-
*
|
|
1206
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1207
|
+
* given reader into the given message object.
|
|
1208
|
+
* @param {!proto.CreateInvoiceRes} msg The message object to deserialize into.
|
|
1209
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1210
|
+
* @return {!proto.CreateInvoiceRes}
|
|
1588
1211
|
*/
|
|
1589
|
-
proto.
|
|
1590
|
-
|
|
1212
|
+
proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
1213
|
+
while (reader.nextField()) {
|
|
1214
|
+
if (reader.isEndGroup()) {
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
var field = reader.getFieldNumber();
|
|
1218
|
+
switch (field) {
|
|
1219
|
+
case 1:
|
|
1220
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
|
|
1221
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
|
|
1222
|
+
msg.setInvoice(value);
|
|
1223
|
+
break;
|
|
1224
|
+
case 2:
|
|
1225
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
1226
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
1227
|
+
msg.setMeta(value);
|
|
1228
|
+
break;
|
|
1229
|
+
default:
|
|
1230
|
+
reader.skipField();
|
|
1231
|
+
break;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
return msg;
|
|
1591
1235
|
};
|
|
1592
1236
|
|
|
1593
1237
|
|
|
1594
1238
|
/**
|
|
1595
|
-
*
|
|
1596
|
-
* @return {!
|
|
1239
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1240
|
+
* @return {!Uint8Array}
|
|
1597
1241
|
*/
|
|
1598
|
-
proto.
|
|
1599
|
-
|
|
1242
|
+
proto.CreateInvoiceRes.prototype.serializeBinary = function() {
|
|
1243
|
+
var writer = new jspb.BinaryWriter();
|
|
1244
|
+
proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
|
|
1245
|
+
return writer.getResultBuffer();
|
|
1600
1246
|
};
|
|
1601
1247
|
|
|
1602
1248
|
|
|
1603
1249
|
/**
|
|
1604
|
-
*
|
|
1605
|
-
*
|
|
1250
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1251
|
+
* format), writing to the given BinaryWriter.
|
|
1252
|
+
* @param {!proto.CreateInvoiceRes} message
|
|
1253
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1254
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1606
1255
|
*/
|
|
1607
|
-
proto.
|
|
1608
|
-
|
|
1256
|
+
proto.CreateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
|
|
1257
|
+
var f = undefined;
|
|
1258
|
+
f = message.getInvoice();
|
|
1259
|
+
if (f != null) {
|
|
1260
|
+
writer.writeMessage(
|
|
1261
|
+
1,
|
|
1262
|
+
f,
|
|
1263
|
+
prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
|
|
1264
|
+
);
|
|
1265
|
+
}
|
|
1266
|
+
f = message.getMeta();
|
|
1267
|
+
if (f != null) {
|
|
1268
|
+
writer.writeMessage(
|
|
1269
|
+
2,
|
|
1270
|
+
f,
|
|
1271
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1609
1274
|
};
|
|
1610
1275
|
|
|
1611
1276
|
|
|
1612
1277
|
/**
|
|
1613
|
-
*
|
|
1614
|
-
* @return {
|
|
1278
|
+
* optional Invoice invoice = 1;
|
|
1279
|
+
* @return {?proto.Invoice}
|
|
1615
1280
|
*/
|
|
1616
|
-
proto.
|
|
1617
|
-
return
|
|
1281
|
+
proto.CreateInvoiceRes.prototype.getInvoice = function() {
|
|
1282
|
+
return /** @type{?proto.Invoice} */ (
|
|
1283
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
|
|
1618
1284
|
};
|
|
1619
1285
|
|
|
1620
1286
|
|
|
1621
1287
|
/**
|
|
1622
|
-
*
|
|
1623
|
-
* @return {
|
|
1624
|
-
|
|
1625
|
-
proto.
|
|
1626
|
-
return
|
|
1288
|
+
* @param {?proto.Invoice|undefined} value
|
|
1289
|
+
* @return {!proto.CreateInvoiceRes} returns this
|
|
1290
|
+
*/
|
|
1291
|
+
proto.CreateInvoiceRes.prototype.setInvoice = function(value) {
|
|
1292
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1627
1293
|
};
|
|
1628
1294
|
|
|
1629
1295
|
|
|
1630
1296
|
/**
|
|
1631
|
-
*
|
|
1632
|
-
* @return {!proto.
|
|
1297
|
+
* Clears the message field making it undefined.
|
|
1298
|
+
* @return {!proto.CreateInvoiceRes} returns this
|
|
1633
1299
|
*/
|
|
1634
|
-
proto.
|
|
1635
|
-
return
|
|
1300
|
+
proto.CreateInvoiceRes.prototype.clearInvoice = function() {
|
|
1301
|
+
return this.setInvoice(undefined);
|
|
1636
1302
|
};
|
|
1637
1303
|
|
|
1638
1304
|
|
|
1639
1305
|
/**
|
|
1640
|
-
*
|
|
1641
|
-
* @return {
|
|
1306
|
+
* Returns whether this field is set.
|
|
1307
|
+
* @return {boolean}
|
|
1642
1308
|
*/
|
|
1643
|
-
proto.
|
|
1644
|
-
return
|
|
1309
|
+
proto.CreateInvoiceRes.prototype.hasInvoice = function() {
|
|
1310
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1645
1311
|
};
|
|
1646
1312
|
|
|
1647
1313
|
|
|
1648
1314
|
/**
|
|
1649
|
-
*
|
|
1650
|
-
* @return {
|
|
1315
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
1316
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
1651
1317
|
*/
|
|
1652
|
-
proto.
|
|
1653
|
-
return
|
|
1318
|
+
proto.CreateInvoiceRes.prototype.getMeta = function() {
|
|
1319
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
1320
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
1654
1321
|
};
|
|
1655
1322
|
|
|
1656
1323
|
|
|
1657
1324
|
/**
|
|
1658
|
-
*
|
|
1659
|
-
* @return {
|
|
1660
|
-
|
|
1661
|
-
proto.
|
|
1662
|
-
return
|
|
1325
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
1326
|
+
* @return {!proto.CreateInvoiceRes} returns this
|
|
1327
|
+
*/
|
|
1328
|
+
proto.CreateInvoiceRes.prototype.setMeta = function(value) {
|
|
1329
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1663
1330
|
};
|
|
1664
1331
|
|
|
1665
1332
|
|
|
1666
1333
|
/**
|
|
1667
|
-
*
|
|
1668
|
-
* @return {!proto.
|
|
1334
|
+
* Clears the message field making it undefined.
|
|
1335
|
+
* @return {!proto.CreateInvoiceRes} returns this
|
|
1669
1336
|
*/
|
|
1670
|
-
proto.
|
|
1671
|
-
return
|
|
1337
|
+
proto.CreateInvoiceRes.prototype.clearMeta = function() {
|
|
1338
|
+
return this.setMeta(undefined);
|
|
1672
1339
|
};
|
|
1673
1340
|
|
|
1674
1341
|
|
|
1675
1342
|
/**
|
|
1676
|
-
*
|
|
1677
|
-
* @return {
|
|
1343
|
+
* Returns whether this field is set.
|
|
1344
|
+
* @return {boolean}
|
|
1678
1345
|
*/
|
|
1679
|
-
proto.
|
|
1680
|
-
return
|
|
1346
|
+
proto.CreateInvoiceRes.prototype.hasMeta = function() {
|
|
1347
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1681
1348
|
};
|
|
1682
1349
|
|
|
1683
1350
|
|
|
1684
|
-
/**
|
|
1685
|
-
* @param {string} value
|
|
1686
|
-
* @return {!proto.Invoice} returns this
|
|
1687
|
-
*/
|
|
1688
|
-
proto.Invoice.prototype.setReferencesId = function(value) {
|
|
1689
|
-
return jspb.Message.setProto3StringField(this, 16, value);
|
|
1690
|
-
};
|
|
1691
1351
|
|
|
1692
1352
|
|
|
1353
|
+
|
|
1354
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1693
1355
|
/**
|
|
1694
|
-
*
|
|
1695
|
-
*
|
|
1356
|
+
* Creates an object representation of this proto.
|
|
1357
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1358
|
+
* Optional fields that are not set will be set to undefined.
|
|
1359
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1360
|
+
* For the list of reserved names please see:
|
|
1361
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1362
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1363
|
+
* JSPB instance for transitional soy proto support:
|
|
1364
|
+
* http://goto/soy-param-migration
|
|
1365
|
+
* @return {!Object}
|
|
1696
1366
|
*/
|
|
1697
|
-
proto.
|
|
1698
|
-
return
|
|
1367
|
+
proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
|
|
1368
|
+
return proto.UpdateInvoiceReq.toObject(opt_includeInstance, this);
|
|
1699
1369
|
};
|
|
1700
1370
|
|
|
1701
1371
|
|
|
1702
1372
|
/**
|
|
1703
|
-
* @
|
|
1704
|
-
* @
|
|
1373
|
+
* Static version of the {@see toObject} method.
|
|
1374
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1375
|
+
* the JSPB instance for transitional soy proto support:
|
|
1376
|
+
* http://goto/soy-param-migration
|
|
1377
|
+
* @param {!proto.UpdateInvoiceReq} msg The msg instance to transform.
|
|
1378
|
+
* @return {!Object}
|
|
1379
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1705
1380
|
*/
|
|
1706
|
-
proto.
|
|
1707
|
-
|
|
1381
|
+
proto.UpdateInvoiceReq.toObject = function(includeInstance, msg) {
|
|
1382
|
+
var f, obj = {
|
|
1383
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1384
|
+
baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeInstance, f)
|
|
1385
|
+
};
|
|
1386
|
+
|
|
1387
|
+
if (includeInstance) {
|
|
1388
|
+
obj.$jspbMessageInstance = msg;
|
|
1389
|
+
}
|
|
1390
|
+
return obj;
|
|
1708
1391
|
};
|
|
1392
|
+
}
|
|
1709
1393
|
|
|
1710
1394
|
|
|
1711
1395
|
/**
|
|
1712
|
-
*
|
|
1713
|
-
* @
|
|
1396
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1397
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1398
|
+
* @return {!proto.UpdateInvoiceReq}
|
|
1714
1399
|
*/
|
|
1715
|
-
proto.
|
|
1716
|
-
|
|
1400
|
+
proto.UpdateInvoiceReq.deserializeBinary = function(bytes) {
|
|
1401
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1402
|
+
var msg = new proto.UpdateInvoiceReq;
|
|
1403
|
+
return proto.UpdateInvoiceReq.deserializeBinaryFromReader(msg, reader);
|
|
1717
1404
|
};
|
|
1718
1405
|
|
|
1719
1406
|
|
|
1720
1407
|
/**
|
|
1721
|
-
*
|
|
1722
|
-
*
|
|
1408
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1409
|
+
* given reader into the given message object.
|
|
1410
|
+
* @param {!proto.UpdateInvoiceReq} msg The message object to deserialize into.
|
|
1411
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1412
|
+
* @return {!proto.UpdateInvoiceReq}
|
|
1723
1413
|
*/
|
|
1724
|
-
proto.
|
|
1725
|
-
|
|
1414
|
+
proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1415
|
+
while (reader.nextField()) {
|
|
1416
|
+
if (reader.isEndGroup()) {
|
|
1417
|
+
break;
|
|
1418
|
+
}
|
|
1419
|
+
var field = reader.getFieldNumber();
|
|
1420
|
+
switch (field) {
|
|
1421
|
+
case 1:
|
|
1422
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1423
|
+
msg.setReferencesId(value);
|
|
1424
|
+
break;
|
|
1425
|
+
case 2:
|
|
1426
|
+
var value = new proto.BaseInvoice;
|
|
1427
|
+
reader.readMessage(value,proto.BaseInvoice.deserializeBinaryFromReader);
|
|
1428
|
+
msg.setBaseInvoice(value);
|
|
1429
|
+
break;
|
|
1430
|
+
default:
|
|
1431
|
+
reader.skipField();
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
return msg;
|
|
1726
1436
|
};
|
|
1727
1437
|
|
|
1728
1438
|
|
|
1729
1439
|
/**
|
|
1730
|
-
*
|
|
1731
|
-
* @return {
|
|
1440
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1441
|
+
* @return {!Uint8Array}
|
|
1732
1442
|
*/
|
|
1733
|
-
proto.
|
|
1734
|
-
|
|
1443
|
+
proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
|
|
1444
|
+
var writer = new jspb.BinaryWriter();
|
|
1445
|
+
proto.UpdateInvoiceReq.serializeBinaryToWriter(this, writer);
|
|
1446
|
+
return writer.getResultBuffer();
|
|
1735
1447
|
};
|
|
1736
1448
|
|
|
1737
1449
|
|
|
1738
1450
|
/**
|
|
1739
|
-
*
|
|
1740
|
-
*
|
|
1451
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1452
|
+
* format), writing to the given BinaryWriter.
|
|
1453
|
+
* @param {!proto.UpdateInvoiceReq} message
|
|
1454
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1455
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1741
1456
|
*/
|
|
1742
|
-
proto.
|
|
1743
|
-
|
|
1457
|
+
proto.UpdateInvoiceReq.serializeBinaryToWriter = function(message, writer) {
|
|
1458
|
+
var f = undefined;
|
|
1459
|
+
f = message.getReferencesId();
|
|
1460
|
+
if (f.length > 0) {
|
|
1461
|
+
writer.writeString(
|
|
1462
|
+
1,
|
|
1463
|
+
f
|
|
1464
|
+
);
|
|
1465
|
+
}
|
|
1466
|
+
f = message.getBaseInvoice();
|
|
1467
|
+
if (f != null) {
|
|
1468
|
+
writer.writeMessage(
|
|
1469
|
+
2,
|
|
1470
|
+
f,
|
|
1471
|
+
proto.BaseInvoice.serializeBinaryToWriter
|
|
1472
|
+
);
|
|
1473
|
+
}
|
|
1744
1474
|
};
|
|
1745
1475
|
|
|
1746
1476
|
|
|
1747
1477
|
/**
|
|
1748
|
-
* optional string
|
|
1478
|
+
* optional string references_id = 1;
|
|
1749
1479
|
* @return {string}
|
|
1750
1480
|
*/
|
|
1751
|
-
proto.
|
|
1752
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this,
|
|
1481
|
+
proto.UpdateInvoiceReq.prototype.getReferencesId = function() {
|
|
1482
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1753
1483
|
};
|
|
1754
1484
|
|
|
1755
1485
|
|
|
1756
1486
|
/**
|
|
1757
1487
|
* @param {string} value
|
|
1758
|
-
* @return {!proto.
|
|
1488
|
+
* @return {!proto.UpdateInvoiceReq} returns this
|
|
1759
1489
|
*/
|
|
1760
|
-
proto.
|
|
1761
|
-
return jspb.Message.setProto3StringField(this,
|
|
1490
|
+
proto.UpdateInvoiceReq.prototype.setReferencesId = function(value) {
|
|
1491
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1762
1492
|
};
|
|
1763
1493
|
|
|
1764
1494
|
|
|
1765
1495
|
/**
|
|
1766
|
-
* optional
|
|
1767
|
-
* @return {
|
|
1496
|
+
* optional BaseInvoice base_invoice = 2;
|
|
1497
|
+
* @return {?proto.BaseInvoice}
|
|
1768
1498
|
*/
|
|
1769
|
-
proto.
|
|
1770
|
-
return /** @type
|
|
1499
|
+
proto.UpdateInvoiceReq.prototype.getBaseInvoice = function() {
|
|
1500
|
+
return /** @type{?proto.BaseInvoice} */ (
|
|
1501
|
+
jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
|
|
1771
1502
|
};
|
|
1772
1503
|
|
|
1773
1504
|
|
|
1774
1505
|
/**
|
|
1775
|
-
* @param {
|
|
1776
|
-
* @return {!proto.
|
|
1777
|
-
|
|
1778
|
-
proto.
|
|
1779
|
-
return jspb.Message.
|
|
1506
|
+
* @param {?proto.BaseInvoice|undefined} value
|
|
1507
|
+
* @return {!proto.UpdateInvoiceReq} returns this
|
|
1508
|
+
*/
|
|
1509
|
+
proto.UpdateInvoiceReq.prototype.setBaseInvoice = function(value) {
|
|
1510
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1780
1511
|
};
|
|
1781
1512
|
|
|
1782
1513
|
|
|
1783
1514
|
/**
|
|
1784
|
-
*
|
|
1785
|
-
* @return {
|
|
1515
|
+
* Clears the message field making it undefined.
|
|
1516
|
+
* @return {!proto.UpdateInvoiceReq} returns this
|
|
1786
1517
|
*/
|
|
1787
|
-
proto.
|
|
1788
|
-
return
|
|
1518
|
+
proto.UpdateInvoiceReq.prototype.clearBaseInvoice = function() {
|
|
1519
|
+
return this.setBaseInvoice(undefined);
|
|
1789
1520
|
};
|
|
1790
1521
|
|
|
1791
1522
|
|
|
1792
1523
|
/**
|
|
1793
|
-
*
|
|
1794
|
-
* @return {
|
|
1524
|
+
* Returns whether this field is set.
|
|
1525
|
+
* @return {boolean}
|
|
1795
1526
|
*/
|
|
1796
|
-
proto.
|
|
1797
|
-
return jspb.Message.
|
|
1527
|
+
proto.UpdateInvoiceReq.prototype.hasBaseInvoice = function() {
|
|
1528
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1798
1529
|
};
|
|
1799
1530
|
|
|
1800
1531
|
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1801
1536
|
/**
|
|
1802
|
-
*
|
|
1803
|
-
*
|
|
1537
|
+
* Creates an object representation of this proto.
|
|
1538
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1539
|
+
* Optional fields that are not set will be set to undefined.
|
|
1540
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1541
|
+
* For the list of reserved names please see:
|
|
1542
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1543
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1544
|
+
* JSPB instance for transitional soy proto support:
|
|
1545
|
+
* http://goto/soy-param-migration
|
|
1546
|
+
* @return {!Object}
|
|
1804
1547
|
*/
|
|
1805
|
-
proto.
|
|
1806
|
-
return
|
|
1548
|
+
proto.UpdateInvoiceRes.prototype.toObject = function(opt_includeInstance) {
|
|
1549
|
+
return proto.UpdateInvoiceRes.toObject(opt_includeInstance, this);
|
|
1807
1550
|
};
|
|
1808
1551
|
|
|
1809
1552
|
|
|
1810
1553
|
/**
|
|
1811
|
-
* @
|
|
1812
|
-
* @
|
|
1554
|
+
* Static version of the {@see toObject} method.
|
|
1555
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1556
|
+
* the JSPB instance for transitional soy proto support:
|
|
1557
|
+
* http://goto/soy-param-migration
|
|
1558
|
+
* @param {!proto.UpdateInvoiceRes} msg The msg instance to transform.
|
|
1559
|
+
* @return {!Object}
|
|
1560
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1813
1561
|
*/
|
|
1814
|
-
proto.
|
|
1815
|
-
|
|
1562
|
+
proto.UpdateInvoiceRes.toObject = function(includeInstance, msg) {
|
|
1563
|
+
var f, obj = {
|
|
1564
|
+
invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
|
|
1565
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1568
|
+
if (includeInstance) {
|
|
1569
|
+
obj.$jspbMessageInstance = msg;
|
|
1570
|
+
}
|
|
1571
|
+
return obj;
|
|
1816
1572
|
};
|
|
1573
|
+
}
|
|
1817
1574
|
|
|
1818
1575
|
|
|
1819
1576
|
/**
|
|
1820
|
-
*
|
|
1821
|
-
* @
|
|
1577
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1578
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1579
|
+
* @return {!proto.UpdateInvoiceRes}
|
|
1822
1580
|
*/
|
|
1823
|
-
proto.
|
|
1824
|
-
|
|
1581
|
+
proto.UpdateInvoiceRes.deserializeBinary = function(bytes) {
|
|
1582
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1583
|
+
var msg = new proto.UpdateInvoiceRes;
|
|
1584
|
+
return proto.UpdateInvoiceRes.deserializeBinaryFromReader(msg, reader);
|
|
1825
1585
|
};
|
|
1826
1586
|
|
|
1827
1587
|
|
|
1828
1588
|
/**
|
|
1829
|
-
*
|
|
1830
|
-
*
|
|
1589
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1590
|
+
* given reader into the given message object.
|
|
1591
|
+
* @param {!proto.UpdateInvoiceRes} msg The message object to deserialize into.
|
|
1592
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1593
|
+
* @return {!proto.UpdateInvoiceRes}
|
|
1831
1594
|
*/
|
|
1832
|
-
proto.
|
|
1833
|
-
|
|
1595
|
+
proto.UpdateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
1596
|
+
while (reader.nextField()) {
|
|
1597
|
+
if (reader.isEndGroup()) {
|
|
1598
|
+
break;
|
|
1599
|
+
}
|
|
1600
|
+
var field = reader.getFieldNumber();
|
|
1601
|
+
switch (field) {
|
|
1602
|
+
case 1:
|
|
1603
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
|
|
1604
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
|
|
1605
|
+
msg.setInvoice(value);
|
|
1606
|
+
break;
|
|
1607
|
+
case 2:
|
|
1608
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
1609
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
1610
|
+
msg.setMeta(value);
|
|
1611
|
+
break;
|
|
1612
|
+
default:
|
|
1613
|
+
reader.skipField();
|
|
1614
|
+
break;
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
return msg;
|
|
1834
1618
|
};
|
|
1835
1619
|
|
|
1836
1620
|
|
|
1837
1621
|
/**
|
|
1838
|
-
*
|
|
1839
|
-
* @return {
|
|
1622
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1623
|
+
* @return {!Uint8Array}
|
|
1840
1624
|
*/
|
|
1841
|
-
proto.
|
|
1842
|
-
|
|
1625
|
+
proto.UpdateInvoiceRes.prototype.serializeBinary = function() {
|
|
1626
|
+
var writer = new jspb.BinaryWriter();
|
|
1627
|
+
proto.UpdateInvoiceRes.serializeBinaryToWriter(this, writer);
|
|
1628
|
+
return writer.getResultBuffer();
|
|
1843
1629
|
};
|
|
1844
1630
|
|
|
1845
1631
|
|
|
1846
1632
|
/**
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1633
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1634
|
+
* format), writing to the given BinaryWriter.
|
|
1635
|
+
* @param {!proto.UpdateInvoiceRes} message
|
|
1636
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1637
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1849
1638
|
*/
|
|
1850
|
-
proto.
|
|
1851
|
-
|
|
1639
|
+
proto.UpdateInvoiceRes.serializeBinaryToWriter = function(message, writer) {
|
|
1640
|
+
var f = undefined;
|
|
1641
|
+
f = message.getInvoice();
|
|
1642
|
+
if (f != null) {
|
|
1643
|
+
writer.writeMessage(
|
|
1644
|
+
1,
|
|
1645
|
+
f,
|
|
1646
|
+
prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
|
|
1647
|
+
);
|
|
1648
|
+
}
|
|
1649
|
+
f = message.getMeta();
|
|
1650
|
+
if (f != null) {
|
|
1651
|
+
writer.writeMessage(
|
|
1652
|
+
2,
|
|
1653
|
+
f,
|
|
1654
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
1655
|
+
);
|
|
1656
|
+
}
|
|
1852
1657
|
};
|
|
1853
1658
|
|
|
1854
1659
|
|
|
1855
1660
|
/**
|
|
1856
|
-
*
|
|
1857
|
-
* @return {
|
|
1661
|
+
* optional Invoice invoice = 1;
|
|
1662
|
+
* @return {?proto.Invoice}
|
|
1858
1663
|
*/
|
|
1859
|
-
proto.
|
|
1860
|
-
return /** @type{
|
|
1861
|
-
jspb.Message.
|
|
1664
|
+
proto.UpdateInvoiceRes.prototype.getInvoice = function() {
|
|
1665
|
+
return /** @type{?proto.Invoice} */ (
|
|
1666
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
|
|
1862
1667
|
};
|
|
1863
1668
|
|
|
1864
1669
|
|
|
1865
1670
|
/**
|
|
1866
|
-
* @param {
|
|
1867
|
-
* @return {!proto.
|
|
1671
|
+
* @param {?proto.Invoice|undefined} value
|
|
1672
|
+
* @return {!proto.UpdateInvoiceRes} returns this
|
|
1868
1673
|
*/
|
|
1869
|
-
proto.
|
|
1870
|
-
return jspb.Message.
|
|
1674
|
+
proto.UpdateInvoiceRes.prototype.setInvoice = function(value) {
|
|
1675
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
1871
1676
|
};
|
|
1872
1677
|
|
|
1873
1678
|
|
|
1874
1679
|
/**
|
|
1875
|
-
*
|
|
1876
|
-
* @
|
|
1877
|
-
* @return {!proto.FileUploadReferencesReq}
|
|
1680
|
+
* Clears the message field making it undefined.
|
|
1681
|
+
* @return {!proto.UpdateInvoiceRes} returns this
|
|
1878
1682
|
*/
|
|
1879
|
-
proto.
|
|
1880
|
-
return
|
|
1683
|
+
proto.UpdateInvoiceRes.prototype.clearInvoice = function() {
|
|
1684
|
+
return this.setInvoice(undefined);
|
|
1881
1685
|
};
|
|
1882
1686
|
|
|
1883
1687
|
|
|
1884
1688
|
/**
|
|
1885
|
-
*
|
|
1886
|
-
* @return {
|
|
1689
|
+
* Returns whether this field is set.
|
|
1690
|
+
* @return {boolean}
|
|
1887
1691
|
*/
|
|
1888
|
-
proto.
|
|
1889
|
-
return
|
|
1692
|
+
proto.UpdateInvoiceRes.prototype.hasInvoice = function() {
|
|
1693
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1890
1694
|
};
|
|
1891
1695
|
|
|
1892
1696
|
|
|
1893
1697
|
/**
|
|
1894
|
-
* optional
|
|
1895
|
-
* @return {?proto.
|
|
1698
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
1699
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
1896
1700
|
*/
|
|
1897
|
-
proto.
|
|
1898
|
-
return /** @type{?proto.
|
|
1899
|
-
jspb.Message.getWrapperField(this,
|
|
1701
|
+
proto.UpdateInvoiceRes.prototype.getMeta = function() {
|
|
1702
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
1703
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
1900
1704
|
};
|
|
1901
1705
|
|
|
1902
1706
|
|
|
1903
1707
|
/**
|
|
1904
|
-
* @param {?proto.
|
|
1905
|
-
* @return {!proto.
|
|
1708
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
1709
|
+
* @return {!proto.UpdateInvoiceRes} returns this
|
|
1906
1710
|
*/
|
|
1907
|
-
proto.
|
|
1908
|
-
return jspb.Message.setWrapperField(this,
|
|
1711
|
+
proto.UpdateInvoiceRes.prototype.setMeta = function(value) {
|
|
1712
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
1909
1713
|
};
|
|
1910
1714
|
|
|
1911
1715
|
|
|
1912
1716
|
/**
|
|
1913
1717
|
* Clears the message field making it undefined.
|
|
1914
|
-
* @return {!proto.
|
|
1718
|
+
* @return {!proto.UpdateInvoiceRes} returns this
|
|
1915
1719
|
*/
|
|
1916
|
-
proto.
|
|
1917
|
-
return this.
|
|
1720
|
+
proto.UpdateInvoiceRes.prototype.clearMeta = function() {
|
|
1721
|
+
return this.setMeta(undefined);
|
|
1918
1722
|
};
|
|
1919
1723
|
|
|
1920
1724
|
|
|
@@ -1922,186 +1726,294 @@ proto.Invoice.prototype.clearCompany = function() {
|
|
|
1922
1726
|
* Returns whether this field is set.
|
|
1923
1727
|
* @return {boolean}
|
|
1924
1728
|
*/
|
|
1925
|
-
proto.
|
|
1926
|
-
return jspb.Message.getField(this,
|
|
1729
|
+
proto.UpdateInvoiceRes.prototype.hasMeta = function() {
|
|
1730
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1927
1731
|
};
|
|
1928
1732
|
|
|
1929
1733
|
|
|
1930
|
-
/**
|
|
1931
|
-
* optional PurchaseOrder purchase_order = 28;
|
|
1932
|
-
* @return {?proto.PurchaseOrder}
|
|
1933
|
-
*/
|
|
1934
|
-
proto.Invoice.prototype.getPurchaseOrder = function() {
|
|
1935
|
-
return /** @type{?proto.PurchaseOrder} */ (
|
|
1936
|
-
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.PurchaseOrder, 28));
|
|
1937
|
-
};
|
|
1938
1734
|
|
|
1939
1735
|
|
|
1736
|
+
|
|
1737
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1940
1738
|
/**
|
|
1941
|
-
*
|
|
1942
|
-
*
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1739
|
+
* Creates an object representation of this proto.
|
|
1740
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1741
|
+
* Optional fields that are not set will be set to undefined.
|
|
1742
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1743
|
+
* For the list of reserved names please see:
|
|
1744
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1745
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1746
|
+
* JSPB instance for transitional soy proto support:
|
|
1747
|
+
* http://goto/soy-param-migration
|
|
1748
|
+
* @return {!Object}
|
|
1749
|
+
*/
|
|
1750
|
+
proto.GetInvoiceByIdReq.prototype.toObject = function(opt_includeInstance) {
|
|
1751
|
+
return proto.GetInvoiceByIdReq.toObject(opt_includeInstance, this);
|
|
1946
1752
|
};
|
|
1947
1753
|
|
|
1948
1754
|
|
|
1949
1755
|
/**
|
|
1950
|
-
*
|
|
1951
|
-
* @
|
|
1756
|
+
* Static version of the {@see toObject} method.
|
|
1757
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1758
|
+
* the JSPB instance for transitional soy proto support:
|
|
1759
|
+
* http://goto/soy-param-migration
|
|
1760
|
+
* @param {!proto.GetInvoiceByIdReq} msg The msg instance to transform.
|
|
1761
|
+
* @return {!Object}
|
|
1762
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1952
1763
|
*/
|
|
1953
|
-
proto.
|
|
1954
|
-
|
|
1764
|
+
proto.GetInvoiceByIdReq.toObject = function(includeInstance, msg) {
|
|
1765
|
+
var f, obj = {
|
|
1766
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
1767
|
+
};
|
|
1768
|
+
|
|
1769
|
+
if (includeInstance) {
|
|
1770
|
+
obj.$jspbMessageInstance = msg;
|
|
1771
|
+
}
|
|
1772
|
+
return obj;
|
|
1955
1773
|
};
|
|
1774
|
+
}
|
|
1956
1775
|
|
|
1957
1776
|
|
|
1958
1777
|
/**
|
|
1959
|
-
*
|
|
1960
|
-
* @
|
|
1778
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1779
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1780
|
+
* @return {!proto.GetInvoiceByIdReq}
|
|
1961
1781
|
*/
|
|
1962
|
-
proto.
|
|
1963
|
-
|
|
1782
|
+
proto.GetInvoiceByIdReq.deserializeBinary = function(bytes) {
|
|
1783
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1784
|
+
var msg = new proto.GetInvoiceByIdReq;
|
|
1785
|
+
return proto.GetInvoiceByIdReq.deserializeBinaryFromReader(msg, reader);
|
|
1964
1786
|
};
|
|
1965
1787
|
|
|
1966
1788
|
|
|
1967
1789
|
/**
|
|
1968
|
-
*
|
|
1969
|
-
*
|
|
1790
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1791
|
+
* given reader into the given message object.
|
|
1792
|
+
* @param {!proto.GetInvoiceByIdReq} msg The message object to deserialize into.
|
|
1793
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1794
|
+
* @return {!proto.GetInvoiceByIdReq}
|
|
1970
1795
|
*/
|
|
1971
|
-
proto.
|
|
1972
|
-
|
|
1973
|
-
|
|
1796
|
+
proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
1797
|
+
while (reader.nextField()) {
|
|
1798
|
+
if (reader.isEndGroup()) {
|
|
1799
|
+
break;
|
|
1800
|
+
}
|
|
1801
|
+
var field = reader.getFieldNumber();
|
|
1802
|
+
switch (field) {
|
|
1803
|
+
case 1:
|
|
1804
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1805
|
+
msg.setReferencesId(value);
|
|
1806
|
+
break;
|
|
1807
|
+
default:
|
|
1808
|
+
reader.skipField();
|
|
1809
|
+
break;
|
|
1810
|
+
}
|
|
1811
|
+
}
|
|
1812
|
+
return msg;
|
|
1974
1813
|
};
|
|
1975
1814
|
|
|
1976
1815
|
|
|
1977
1816
|
/**
|
|
1978
|
-
*
|
|
1979
|
-
* @return {!
|
|
1980
|
-
*/
|
|
1981
|
-
proto.
|
|
1982
|
-
|
|
1817
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1818
|
+
* @return {!Uint8Array}
|
|
1819
|
+
*/
|
|
1820
|
+
proto.GetInvoiceByIdReq.prototype.serializeBinary = function() {
|
|
1821
|
+
var writer = new jspb.BinaryWriter();
|
|
1822
|
+
proto.GetInvoiceByIdReq.serializeBinaryToWriter(this, writer);
|
|
1823
|
+
return writer.getResultBuffer();
|
|
1983
1824
|
};
|
|
1984
1825
|
|
|
1985
1826
|
|
|
1986
1827
|
/**
|
|
1987
|
-
*
|
|
1988
|
-
*
|
|
1989
|
-
* @
|
|
1828
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1829
|
+
* format), writing to the given BinaryWriter.
|
|
1830
|
+
* @param {!proto.GetInvoiceByIdReq} message
|
|
1831
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1832
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1990
1833
|
*/
|
|
1991
|
-
proto.
|
|
1992
|
-
|
|
1834
|
+
proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
|
|
1835
|
+
var f = undefined;
|
|
1836
|
+
f = message.getReferencesId();
|
|
1837
|
+
if (f.length > 0) {
|
|
1838
|
+
writer.writeString(
|
|
1839
|
+
1,
|
|
1840
|
+
f
|
|
1841
|
+
);
|
|
1842
|
+
}
|
|
1993
1843
|
};
|
|
1994
1844
|
|
|
1995
1845
|
|
|
1996
1846
|
/**
|
|
1997
|
-
*
|
|
1998
|
-
* @return {
|
|
1847
|
+
* optional string references_id = 1;
|
|
1848
|
+
* @return {string}
|
|
1999
1849
|
*/
|
|
2000
|
-
proto.
|
|
2001
|
-
return
|
|
1850
|
+
proto.GetInvoiceByIdReq.prototype.getReferencesId = function() {
|
|
1851
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2002
1852
|
};
|
|
2003
1853
|
|
|
2004
1854
|
|
|
2005
1855
|
/**
|
|
2006
|
-
*
|
|
2007
|
-
* @return {
|
|
1856
|
+
* @param {string} value
|
|
1857
|
+
* @return {!proto.GetInvoiceByIdReq} returns this
|
|
2008
1858
|
*/
|
|
2009
|
-
proto.
|
|
2010
|
-
return
|
|
2011
|
-
jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 30));
|
|
1859
|
+
proto.GetInvoiceByIdReq.prototype.setReferencesId = function(value) {
|
|
1860
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2012
1861
|
};
|
|
2013
1862
|
|
|
2014
1863
|
|
|
2015
|
-
/**
|
|
2016
|
-
* @param {?proto.Vendor|undefined} value
|
|
2017
|
-
* @return {!proto.Invoice} returns this
|
|
2018
|
-
*/
|
|
2019
|
-
proto.Invoice.prototype.setVendor = function(value) {
|
|
2020
|
-
return jspb.Message.setWrapperField(this, 30, value);
|
|
2021
|
-
};
|
|
2022
1864
|
|
|
2023
1865
|
|
|
1866
|
+
|
|
1867
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2024
1868
|
/**
|
|
2025
|
-
*
|
|
2026
|
-
*
|
|
1869
|
+
* Creates an object representation of this proto.
|
|
1870
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1871
|
+
* Optional fields that are not set will be set to undefined.
|
|
1872
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1873
|
+
* For the list of reserved names please see:
|
|
1874
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1875
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1876
|
+
* JSPB instance for transitional soy proto support:
|
|
1877
|
+
* http://goto/soy-param-migration
|
|
1878
|
+
* @return {!Object}
|
|
2027
1879
|
*/
|
|
2028
|
-
proto.
|
|
2029
|
-
return
|
|
1880
|
+
proto.GetInvoiceByIdRes.prototype.toObject = function(opt_includeInstance) {
|
|
1881
|
+
return proto.GetInvoiceByIdRes.toObject(opt_includeInstance, this);
|
|
2030
1882
|
};
|
|
2031
1883
|
|
|
2032
1884
|
|
|
2033
1885
|
/**
|
|
2034
|
-
*
|
|
2035
|
-
* @
|
|
1886
|
+
* Static version of the {@see toObject} method.
|
|
1887
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1888
|
+
* the JSPB instance for transitional soy proto support:
|
|
1889
|
+
* http://goto/soy-param-migration
|
|
1890
|
+
* @param {!proto.GetInvoiceByIdRes} msg The msg instance to transform.
|
|
1891
|
+
* @return {!Object}
|
|
1892
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2036
1893
|
*/
|
|
2037
|
-
proto.
|
|
2038
|
-
|
|
1894
|
+
proto.GetInvoiceByIdRes.toObject = function(includeInstance, msg) {
|
|
1895
|
+
var f, obj = {
|
|
1896
|
+
invoice: (f = msg.getInvoice()) && prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject(includeInstance, f),
|
|
1897
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
1898
|
+
};
|
|
1899
|
+
|
|
1900
|
+
if (includeInstance) {
|
|
1901
|
+
obj.$jspbMessageInstance = msg;
|
|
1902
|
+
}
|
|
1903
|
+
return obj;
|
|
2039
1904
|
};
|
|
1905
|
+
}
|
|
2040
1906
|
|
|
2041
1907
|
|
|
2042
1908
|
/**
|
|
2043
|
-
*
|
|
2044
|
-
* @
|
|
1909
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1910
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1911
|
+
* @return {!proto.GetInvoiceByIdRes}
|
|
2045
1912
|
*/
|
|
2046
|
-
proto.
|
|
2047
|
-
|
|
2048
|
-
|
|
1913
|
+
proto.GetInvoiceByIdRes.deserializeBinary = function(bytes) {
|
|
1914
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1915
|
+
var msg = new proto.GetInvoiceByIdRes;
|
|
1916
|
+
return proto.GetInvoiceByIdRes.deserializeBinaryFromReader(msg, reader);
|
|
2049
1917
|
};
|
|
2050
1918
|
|
|
2051
1919
|
|
|
2052
1920
|
/**
|
|
2053
|
-
*
|
|
2054
|
-
*
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
1921
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1922
|
+
* given reader into the given message object.
|
|
1923
|
+
* @param {!proto.GetInvoiceByIdRes} msg The message object to deserialize into.
|
|
1924
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1925
|
+
* @return {!proto.GetInvoiceByIdRes}
|
|
1926
|
+
*/
|
|
1927
|
+
proto.GetInvoiceByIdRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
1928
|
+
while (reader.nextField()) {
|
|
1929
|
+
if (reader.isEndGroup()) {
|
|
1930
|
+
break;
|
|
1931
|
+
}
|
|
1932
|
+
var field = reader.getFieldNumber();
|
|
1933
|
+
switch (field) {
|
|
1934
|
+
case 1:
|
|
1935
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
|
|
1936
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
|
|
1937
|
+
msg.setInvoice(value);
|
|
1938
|
+
break;
|
|
1939
|
+
case 2:
|
|
1940
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
1941
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
1942
|
+
msg.setMeta(value);
|
|
1943
|
+
break;
|
|
1944
|
+
default:
|
|
1945
|
+
reader.skipField();
|
|
1946
|
+
break;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
return msg;
|
|
2058
1950
|
};
|
|
2059
1951
|
|
|
2060
1952
|
|
|
2061
1953
|
/**
|
|
2062
|
-
*
|
|
2063
|
-
* @
|
|
2064
|
-
* @return {!proto.ItemTransaction}
|
|
1954
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1955
|
+
* @return {!Uint8Array}
|
|
2065
1956
|
*/
|
|
2066
|
-
proto.
|
|
2067
|
-
|
|
1957
|
+
proto.GetInvoiceByIdRes.prototype.serializeBinary = function() {
|
|
1958
|
+
var writer = new jspb.BinaryWriter();
|
|
1959
|
+
proto.GetInvoiceByIdRes.serializeBinaryToWriter(this, writer);
|
|
1960
|
+
return writer.getResultBuffer();
|
|
2068
1961
|
};
|
|
2069
1962
|
|
|
2070
1963
|
|
|
2071
1964
|
/**
|
|
2072
|
-
*
|
|
2073
|
-
*
|
|
1965
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1966
|
+
* format), writing to the given BinaryWriter.
|
|
1967
|
+
* @param {!proto.GetInvoiceByIdRes} message
|
|
1968
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1969
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2074
1970
|
*/
|
|
2075
|
-
proto.
|
|
2076
|
-
|
|
1971
|
+
proto.GetInvoiceByIdRes.serializeBinaryToWriter = function(message, writer) {
|
|
1972
|
+
var f = undefined;
|
|
1973
|
+
f = message.getInvoice();
|
|
1974
|
+
if (f != null) {
|
|
1975
|
+
writer.writeMessage(
|
|
1976
|
+
1,
|
|
1977
|
+
f,
|
|
1978
|
+
prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
|
|
1979
|
+
);
|
|
1980
|
+
}
|
|
1981
|
+
f = message.getMeta();
|
|
1982
|
+
if (f != null) {
|
|
1983
|
+
writer.writeMessage(
|
|
1984
|
+
2,
|
|
1985
|
+
f,
|
|
1986
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
1987
|
+
);
|
|
1988
|
+
}
|
|
2077
1989
|
};
|
|
2078
1990
|
|
|
2079
1991
|
|
|
2080
1992
|
/**
|
|
2081
|
-
* optional
|
|
2082
|
-
* @return {?proto.
|
|
1993
|
+
* optional Invoice invoice = 1;
|
|
1994
|
+
* @return {?proto.Invoice}
|
|
2083
1995
|
*/
|
|
2084
|
-
proto.
|
|
2085
|
-
return /** @type{?proto.
|
|
2086
|
-
jspb.Message.getWrapperField(this,
|
|
1996
|
+
proto.GetInvoiceByIdRes.prototype.getInvoice = function() {
|
|
1997
|
+
return /** @type{?proto.Invoice} */ (
|
|
1998
|
+
jspb.Message.getWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
|
|
2087
1999
|
};
|
|
2088
2000
|
|
|
2089
2001
|
|
|
2090
2002
|
/**
|
|
2091
|
-
* @param {?proto.
|
|
2092
|
-
* @return {!proto.
|
|
2003
|
+
* @param {?proto.Invoice|undefined} value
|
|
2004
|
+
* @return {!proto.GetInvoiceByIdRes} returns this
|
|
2093
2005
|
*/
|
|
2094
|
-
proto.
|
|
2095
|
-
return jspb.Message.setWrapperField(this,
|
|
2006
|
+
proto.GetInvoiceByIdRes.prototype.setInvoice = function(value) {
|
|
2007
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
2096
2008
|
};
|
|
2097
2009
|
|
|
2098
2010
|
|
|
2099
2011
|
/**
|
|
2100
2012
|
* Clears the message field making it undefined.
|
|
2101
|
-
* @return {!proto.
|
|
2013
|
+
* @return {!proto.GetInvoiceByIdRes} returns this
|
|
2102
2014
|
*/
|
|
2103
|
-
proto.
|
|
2104
|
-
return this.
|
|
2015
|
+
proto.GetInvoiceByIdRes.prototype.clearInvoice = function() {
|
|
2016
|
+
return this.setInvoice(undefined);
|
|
2105
2017
|
};
|
|
2106
2018
|
|
|
2107
2019
|
|
|
@@ -2109,36 +2021,36 @@ proto.Invoice.prototype.clearCreatedByEmployee = function() {
|
|
|
2109
2021
|
* Returns whether this field is set.
|
|
2110
2022
|
* @return {boolean}
|
|
2111
2023
|
*/
|
|
2112
|
-
proto.
|
|
2113
|
-
return jspb.Message.getField(this,
|
|
2024
|
+
proto.GetInvoiceByIdRes.prototype.hasInvoice = function() {
|
|
2025
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2114
2026
|
};
|
|
2115
2027
|
|
|
2116
2028
|
|
|
2117
2029
|
/**
|
|
2118
|
-
* optional
|
|
2119
|
-
* @return {?proto.
|
|
2030
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
2031
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
2120
2032
|
*/
|
|
2121
|
-
proto.
|
|
2122
|
-
return /** @type{?proto.
|
|
2123
|
-
jspb.Message.getWrapperField(this,
|
|
2033
|
+
proto.GetInvoiceByIdRes.prototype.getMeta = function() {
|
|
2034
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
2035
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
2124
2036
|
};
|
|
2125
2037
|
|
|
2126
2038
|
|
|
2127
2039
|
/**
|
|
2128
|
-
* @param {?proto.
|
|
2129
|
-
* @return {!proto.
|
|
2040
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
2041
|
+
* @return {!proto.GetInvoiceByIdRes} returns this
|
|
2130
2042
|
*/
|
|
2131
|
-
proto.
|
|
2132
|
-
return jspb.Message.setWrapperField(this,
|
|
2043
|
+
proto.GetInvoiceByIdRes.prototype.setMeta = function(value) {
|
|
2044
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2133
2045
|
};
|
|
2134
2046
|
|
|
2135
2047
|
|
|
2136
2048
|
/**
|
|
2137
2049
|
* Clears the message field making it undefined.
|
|
2138
|
-
* @return {!proto.
|
|
2050
|
+
* @return {!proto.GetInvoiceByIdRes} returns this
|
|
2139
2051
|
*/
|
|
2140
|
-
proto.
|
|
2141
|
-
return this.
|
|
2052
|
+
proto.GetInvoiceByIdRes.prototype.clearMeta = function() {
|
|
2053
|
+
return this.setMeta(undefined);
|
|
2142
2054
|
};
|
|
2143
2055
|
|
|
2144
2056
|
|
|
@@ -2146,29 +2058,18 @@ proto.Invoice.prototype.clearUpdatedByEmployee = function() {
|
|
|
2146
2058
|
* Returns whether this field is set.
|
|
2147
2059
|
* @return {boolean}
|
|
2148
2060
|
*/
|
|
2149
|
-
proto.
|
|
2150
|
-
return jspb.Message.getField(this,
|
|
2061
|
+
proto.GetInvoiceByIdRes.prototype.hasMeta = function() {
|
|
2062
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2151
2063
|
};
|
|
2152
2064
|
|
|
2153
2065
|
|
|
2154
|
-
/**
|
|
2155
|
-
* optional string vendor_name = 34;
|
|
2156
|
-
* @return {string}
|
|
2157
|
-
*/
|
|
2158
|
-
proto.Invoice.prototype.getVendorName = function() {
|
|
2159
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
|
|
2160
|
-
};
|
|
2161
|
-
|
|
2162
2066
|
|
|
2163
2067
|
/**
|
|
2164
|
-
*
|
|
2165
|
-
* @
|
|
2068
|
+
* List of repeated fields within this message type.
|
|
2069
|
+
* @private {!Array<number>}
|
|
2070
|
+
* @const
|
|
2166
2071
|
*/
|
|
2167
|
-
proto.
|
|
2168
|
-
return jspb.Message.setProto3StringField(this, 34, value);
|
|
2169
|
-
};
|
|
2170
|
-
|
|
2171
|
-
|
|
2072
|
+
proto.GetInvoiceDetailRes.repeatedFields_ = [1,2,3,4,5];
|
|
2172
2073
|
|
|
2173
2074
|
|
|
2174
2075
|
|
|
@@ -2185,8 +2086,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2185
2086
|
* http://goto/soy-param-migration
|
|
2186
2087
|
* @return {!Object}
|
|
2187
2088
|
*/
|
|
2188
|
-
proto.
|
|
2189
|
-
return proto.
|
|
2089
|
+
proto.GetInvoiceDetailRes.prototype.toObject = function(opt_includeInstance) {
|
|
2090
|
+
return proto.GetInvoiceDetailRes.toObject(opt_includeInstance, this);
|
|
2190
2091
|
};
|
|
2191
2092
|
|
|
2192
2093
|
|
|
@@ -2195,13 +2096,22 @@ proto.CreateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
|
|
|
2195
2096
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2196
2097
|
* the JSPB instance for transitional soy proto support:
|
|
2197
2098
|
* http://goto/soy-param-migration
|
|
2198
|
-
* @param {!proto.
|
|
2099
|
+
* @param {!proto.GetInvoiceDetailRes} msg The msg instance to transform.
|
|
2199
2100
|
* @return {!Object}
|
|
2200
2101
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2201
2102
|
*/
|
|
2202
|
-
proto.
|
|
2103
|
+
proto.GetInvoiceDetailRes.toObject = function(includeInstance, msg) {
|
|
2203
2104
|
var f, obj = {
|
|
2204
|
-
|
|
2105
|
+
transactionBuilderList: jspb.Message.toObjectList(msg.getTransactionBuilderList(),
|
|
2106
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.toObject, includeInstance),
|
|
2107
|
+
transactionBuilderItemsList: jspb.Message.toObjectList(msg.getTransactionBuilderItemsList(),
|
|
2108
|
+
proto.GetInvoiceItemPreload.toObject, includeInstance),
|
|
2109
|
+
itemInvoiceReferencesList: jspb.Message.toObjectList(msg.getItemInvoiceReferencesList(),
|
|
2110
|
+
proto.ItemInvoiceReference.toObject, includeInstance),
|
|
2111
|
+
itemPurchaseOrdersList: jspb.Message.toObjectList(msg.getItemPurchaseOrdersList(),
|
|
2112
|
+
proto.ItemPurchaseOrder.toObject, includeInstance),
|
|
2113
|
+
itemGoodReceiptsList: jspb.Message.toObjectList(msg.getItemGoodReceiptsList(),
|
|
2114
|
+
proto.ItemGoodReceipt.toObject, includeInstance)
|
|
2205
2115
|
};
|
|
2206
2116
|
|
|
2207
2117
|
if (includeInstance) {
|
|
@@ -2215,23 +2125,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
|
|
|
2215
2125
|
/**
|
|
2216
2126
|
* Deserializes binary data (in protobuf wire format).
|
|
2217
2127
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2218
|
-
* @return {!proto.
|
|
2128
|
+
* @return {!proto.GetInvoiceDetailRes}
|
|
2219
2129
|
*/
|
|
2220
|
-
proto.
|
|
2130
|
+
proto.GetInvoiceDetailRes.deserializeBinary = function(bytes) {
|
|
2221
2131
|
var reader = new jspb.BinaryReader(bytes);
|
|
2222
|
-
var msg = new proto.
|
|
2223
|
-
return proto.
|
|
2132
|
+
var msg = new proto.GetInvoiceDetailRes;
|
|
2133
|
+
return proto.GetInvoiceDetailRes.deserializeBinaryFromReader(msg, reader);
|
|
2224
2134
|
};
|
|
2225
2135
|
|
|
2226
2136
|
|
|
2227
2137
|
/**
|
|
2228
2138
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2229
2139
|
* given reader into the given message object.
|
|
2230
|
-
* @param {!proto.
|
|
2140
|
+
* @param {!proto.GetInvoiceDetailRes} msg The message object to deserialize into.
|
|
2231
2141
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2232
|
-
* @return {!proto.
|
|
2142
|
+
* @return {!proto.GetInvoiceDetailRes}
|
|
2233
2143
|
*/
|
|
2234
|
-
proto.
|
|
2144
|
+
proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
2235
2145
|
while (reader.nextField()) {
|
|
2236
2146
|
if (reader.isEndGroup()) {
|
|
2237
2147
|
break;
|
|
@@ -2239,9 +2149,29 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2239
2149
|
var field = reader.getFieldNumber();
|
|
2240
2150
|
switch (field) {
|
|
2241
2151
|
case 1:
|
|
2242
|
-
var value = new
|
|
2243
|
-
reader.readMessage(value,
|
|
2244
|
-
msg.
|
|
2152
|
+
var value = new prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail;
|
|
2153
|
+
reader.readMessage(value,prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.deserializeBinaryFromReader);
|
|
2154
|
+
msg.addTransactionBuilder(value);
|
|
2155
|
+
break;
|
|
2156
|
+
case 2:
|
|
2157
|
+
var value = new proto.GetInvoiceItemPreload;
|
|
2158
|
+
reader.readMessage(value,proto.GetInvoiceItemPreload.deserializeBinaryFromReader);
|
|
2159
|
+
msg.addTransactionBuilderItems(value);
|
|
2160
|
+
break;
|
|
2161
|
+
case 3:
|
|
2162
|
+
var value = new proto.ItemInvoiceReference;
|
|
2163
|
+
reader.readMessage(value,proto.ItemInvoiceReference.deserializeBinaryFromReader);
|
|
2164
|
+
msg.addItemInvoiceReferences(value);
|
|
2165
|
+
break;
|
|
2166
|
+
case 4:
|
|
2167
|
+
var value = new proto.ItemPurchaseOrder;
|
|
2168
|
+
reader.readMessage(value,proto.ItemPurchaseOrder.deserializeBinaryFromReader);
|
|
2169
|
+
msg.addItemPurchaseOrders(value);
|
|
2170
|
+
break;
|
|
2171
|
+
case 5:
|
|
2172
|
+
var value = new proto.ItemGoodReceipt;
|
|
2173
|
+
reader.readMessage(value,proto.ItemGoodReceipt.deserializeBinaryFromReader);
|
|
2174
|
+
msg.addItemGoodReceipts(value);
|
|
2245
2175
|
break;
|
|
2246
2176
|
default:
|
|
2247
2177
|
reader.skipField();
|
|
@@ -2256,9 +2186,9 @@ proto.CreateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2256
2186
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2257
2187
|
* @return {!Uint8Array}
|
|
2258
2188
|
*/
|
|
2259
|
-
proto.
|
|
2189
|
+
proto.GetInvoiceDetailRes.prototype.serializeBinary = function() {
|
|
2260
2190
|
var writer = new jspb.BinaryWriter();
|
|
2261
|
-
proto.
|
|
2191
|
+
proto.GetInvoiceDetailRes.serializeBinaryToWriter(this, writer);
|
|
2262
2192
|
return writer.getResultBuffer();
|
|
2263
2193
|
};
|
|
2264
2194
|
|
|
@@ -2266,263 +2196,253 @@ proto.CreateInvoiceReq.prototype.serializeBinary = function() {
|
|
|
2266
2196
|
/**
|
|
2267
2197
|
* Serializes the given message to binary data (in protobuf wire
|
|
2268
2198
|
* format), writing to the given BinaryWriter.
|
|
2269
|
-
* @param {!proto.
|
|
2199
|
+
* @param {!proto.GetInvoiceDetailRes} message
|
|
2270
2200
|
* @param {!jspb.BinaryWriter} writer
|
|
2271
2201
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2272
2202
|
*/
|
|
2273
|
-
proto.
|
|
2203
|
+
proto.GetInvoiceDetailRes.serializeBinaryToWriter = function(message, writer) {
|
|
2274
2204
|
var f = undefined;
|
|
2275
|
-
f = message.
|
|
2276
|
-
if (f
|
|
2277
|
-
writer.
|
|
2205
|
+
f = message.getTransactionBuilderList();
|
|
2206
|
+
if (f.length > 0) {
|
|
2207
|
+
writer.writeRepeatedMessage(
|
|
2278
2208
|
1,
|
|
2279
2209
|
f,
|
|
2280
|
-
|
|
2210
|
+
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
|
|
2211
|
+
);
|
|
2212
|
+
}
|
|
2213
|
+
f = message.getTransactionBuilderItemsList();
|
|
2214
|
+
if (f.length > 0) {
|
|
2215
|
+
writer.writeRepeatedMessage(
|
|
2216
|
+
2,
|
|
2217
|
+
f,
|
|
2218
|
+
proto.GetInvoiceItemPreload.serializeBinaryToWriter
|
|
2219
|
+
);
|
|
2220
|
+
}
|
|
2221
|
+
f = message.getItemInvoiceReferencesList();
|
|
2222
|
+
if (f.length > 0) {
|
|
2223
|
+
writer.writeRepeatedMessage(
|
|
2224
|
+
3,
|
|
2225
|
+
f,
|
|
2226
|
+
proto.ItemInvoiceReference.serializeBinaryToWriter
|
|
2227
|
+
);
|
|
2228
|
+
}
|
|
2229
|
+
f = message.getItemPurchaseOrdersList();
|
|
2230
|
+
if (f.length > 0) {
|
|
2231
|
+
writer.writeRepeatedMessage(
|
|
2232
|
+
4,
|
|
2233
|
+
f,
|
|
2234
|
+
proto.ItemPurchaseOrder.serializeBinaryToWriter
|
|
2281
2235
|
);
|
|
2282
2236
|
}
|
|
2237
|
+
f = message.getItemGoodReceiptsList();
|
|
2238
|
+
if (f.length > 0) {
|
|
2239
|
+
writer.writeRepeatedMessage(
|
|
2240
|
+
5,
|
|
2241
|
+
f,
|
|
2242
|
+
proto.ItemGoodReceipt.serializeBinaryToWriter
|
|
2243
|
+
);
|
|
2244
|
+
}
|
|
2245
|
+
};
|
|
2246
|
+
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* repeated TransactionBuilderFieldsDetail transaction_builder = 1;
|
|
2250
|
+
* @return {!Array<!proto.TransactionBuilderFieldsDetail>}
|
|
2251
|
+
*/
|
|
2252
|
+
proto.GetInvoiceDetailRes.prototype.getTransactionBuilderList = function() {
|
|
2253
|
+
return /** @type{!Array<!proto.TransactionBuilderFieldsDetail>} */ (
|
|
2254
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
|
|
2283
2255
|
};
|
|
2284
2256
|
|
|
2285
2257
|
|
|
2286
2258
|
/**
|
|
2287
|
-
*
|
|
2288
|
-
* @return {
|
|
2289
|
-
|
|
2290
|
-
proto.
|
|
2291
|
-
return
|
|
2292
|
-
jspb.Message.getWrapperField(this, proto.BaseInvoice, 1));
|
|
2259
|
+
* @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
|
|
2260
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2261
|
+
*/
|
|
2262
|
+
proto.GetInvoiceDetailRes.prototype.setTransactionBuilderList = function(value) {
|
|
2263
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
2293
2264
|
};
|
|
2294
2265
|
|
|
2295
2266
|
|
|
2296
2267
|
/**
|
|
2297
|
-
* @param {
|
|
2298
|
-
* @
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2268
|
+
* @param {!proto.TransactionBuilderFieldsDetail=} opt_value
|
|
2269
|
+
* @param {number=} opt_index
|
|
2270
|
+
* @return {!proto.TransactionBuilderFieldsDetail}
|
|
2271
|
+
*/
|
|
2272
|
+
proto.GetInvoiceDetailRes.prototype.addTransactionBuilder = function(opt_value, opt_index) {
|
|
2273
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.TransactionBuilderFieldsDetail, opt_index);
|
|
2302
2274
|
};
|
|
2303
2275
|
|
|
2304
2276
|
|
|
2305
2277
|
/**
|
|
2306
|
-
* Clears the
|
|
2307
|
-
* @return {!proto.
|
|
2278
|
+
* Clears the list making it empty but non-null.
|
|
2279
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2308
2280
|
*/
|
|
2309
|
-
proto.
|
|
2310
|
-
return this.
|
|
2281
|
+
proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderList = function() {
|
|
2282
|
+
return this.setTransactionBuilderList([]);
|
|
2311
2283
|
};
|
|
2312
2284
|
|
|
2313
2285
|
|
|
2314
2286
|
/**
|
|
2315
|
-
*
|
|
2316
|
-
* @return {
|
|
2287
|
+
* repeated GetInvoiceItemPreload transaction_builder_items = 2;
|
|
2288
|
+
* @return {!Array<!proto.GetInvoiceItemPreload>}
|
|
2317
2289
|
*/
|
|
2318
|
-
proto.
|
|
2319
|
-
return
|
|
2290
|
+
proto.GetInvoiceDetailRes.prototype.getTransactionBuilderItemsList = function() {
|
|
2291
|
+
return /** @type{!Array<!proto.GetInvoiceItemPreload>} */ (
|
|
2292
|
+
jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 2));
|
|
2320
2293
|
};
|
|
2321
2294
|
|
|
2322
2295
|
|
|
2296
|
+
/**
|
|
2297
|
+
* @param {!Array<!proto.GetInvoiceItemPreload>} value
|
|
2298
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2299
|
+
*/
|
|
2300
|
+
proto.GetInvoiceDetailRes.prototype.setTransactionBuilderItemsList = function(value) {
|
|
2301
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
2302
|
+
};
|
|
2323
2303
|
|
|
2324
2304
|
|
|
2325
|
-
|
|
2326
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2327
2305
|
/**
|
|
2328
|
-
*
|
|
2329
|
-
*
|
|
2330
|
-
*
|
|
2331
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2332
|
-
* For the list of reserved names please see:
|
|
2333
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2334
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2335
|
-
* JSPB instance for transitional soy proto support:
|
|
2336
|
-
* http://goto/soy-param-migration
|
|
2337
|
-
* @return {!Object}
|
|
2306
|
+
* @param {!proto.GetInvoiceItemPreload=} opt_value
|
|
2307
|
+
* @param {number=} opt_index
|
|
2308
|
+
* @return {!proto.GetInvoiceItemPreload}
|
|
2338
2309
|
*/
|
|
2339
|
-
proto.
|
|
2340
|
-
return
|
|
2310
|
+
proto.GetInvoiceDetailRes.prototype.addTransactionBuilderItems = function(opt_value, opt_index) {
|
|
2311
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.GetInvoiceItemPreload, opt_index);
|
|
2341
2312
|
};
|
|
2342
2313
|
|
|
2343
2314
|
|
|
2344
2315
|
/**
|
|
2345
|
-
*
|
|
2346
|
-
* @
|
|
2347
|
-
* the JSPB instance for transitional soy proto support:
|
|
2348
|
-
* http://goto/soy-param-migration
|
|
2349
|
-
* @param {!proto.CreateInvoiceRes} msg The msg instance to transform.
|
|
2350
|
-
* @return {!Object}
|
|
2351
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2316
|
+
* Clears the list making it empty but non-null.
|
|
2317
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2352
2318
|
*/
|
|
2353
|
-
proto.
|
|
2354
|
-
|
|
2355
|
-
invoice: (f = msg.getInvoice()) && proto.Invoice.toObject(includeInstance, f),
|
|
2356
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2357
|
-
};
|
|
2358
|
-
|
|
2359
|
-
if (includeInstance) {
|
|
2360
|
-
obj.$jspbMessageInstance = msg;
|
|
2361
|
-
}
|
|
2362
|
-
return obj;
|
|
2319
|
+
proto.GetInvoiceDetailRes.prototype.clearTransactionBuilderItemsList = function() {
|
|
2320
|
+
return this.setTransactionBuilderItemsList([]);
|
|
2363
2321
|
};
|
|
2364
|
-
}
|
|
2365
2322
|
|
|
2366
2323
|
|
|
2367
2324
|
/**
|
|
2368
|
-
*
|
|
2369
|
-
* @
|
|
2370
|
-
* @return {!proto.CreateInvoiceRes}
|
|
2325
|
+
* repeated ItemInvoiceReference item_invoice_references = 3;
|
|
2326
|
+
* @return {!Array<!proto.ItemInvoiceReference>}
|
|
2371
2327
|
*/
|
|
2372
|
-
proto.
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
return proto.CreateInvoiceRes.deserializeBinaryFromReader(msg, reader);
|
|
2328
|
+
proto.GetInvoiceDetailRes.prototype.getItemInvoiceReferencesList = function() {
|
|
2329
|
+
return /** @type{!Array<!proto.ItemInvoiceReference>} */ (
|
|
2330
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ItemInvoiceReference, 3));
|
|
2376
2331
|
};
|
|
2377
2332
|
|
|
2378
2333
|
|
|
2379
2334
|
/**
|
|
2380
|
-
*
|
|
2381
|
-
*
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
*/
|
|
2386
|
-
proto.CreateInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
2387
|
-
while (reader.nextField()) {
|
|
2388
|
-
if (reader.isEndGroup()) {
|
|
2389
|
-
break;
|
|
2390
|
-
}
|
|
2391
|
-
var field = reader.getFieldNumber();
|
|
2392
|
-
switch (field) {
|
|
2393
|
-
case 1:
|
|
2394
|
-
var value = new proto.Invoice;
|
|
2395
|
-
reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
|
|
2396
|
-
msg.setInvoice(value);
|
|
2397
|
-
break;
|
|
2398
|
-
case 2:
|
|
2399
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2400
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2401
|
-
msg.setMeta(value);
|
|
2402
|
-
break;
|
|
2403
|
-
default:
|
|
2404
|
-
reader.skipField();
|
|
2405
|
-
break;
|
|
2406
|
-
}
|
|
2407
|
-
}
|
|
2408
|
-
return msg;
|
|
2335
|
+
* @param {!Array<!proto.ItemInvoiceReference>} value
|
|
2336
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2337
|
+
*/
|
|
2338
|
+
proto.GetInvoiceDetailRes.prototype.setItemInvoiceReferencesList = function(value) {
|
|
2339
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
2409
2340
|
};
|
|
2410
2341
|
|
|
2411
2342
|
|
|
2412
2343
|
/**
|
|
2413
|
-
*
|
|
2414
|
-
* @
|
|
2344
|
+
* @param {!proto.ItemInvoiceReference=} opt_value
|
|
2345
|
+
* @param {number=} opt_index
|
|
2346
|
+
* @return {!proto.ItemInvoiceReference}
|
|
2415
2347
|
*/
|
|
2416
|
-
proto.
|
|
2417
|
-
|
|
2418
|
-
proto.CreateInvoiceRes.serializeBinaryToWriter(this, writer);
|
|
2419
|
-
return writer.getResultBuffer();
|
|
2348
|
+
proto.GetInvoiceDetailRes.prototype.addItemInvoiceReferences = function(opt_value, opt_index) {
|
|
2349
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ItemInvoiceReference, opt_index);
|
|
2420
2350
|
};
|
|
2421
2351
|
|
|
2422
2352
|
|
|
2423
2353
|
/**
|
|
2424
|
-
*
|
|
2425
|
-
*
|
|
2426
|
-
* @param {!proto.CreateInvoiceRes} message
|
|
2427
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2428
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2354
|
+
* Clears the list making it empty but non-null.
|
|
2355
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2429
2356
|
*/
|
|
2430
|
-
proto.
|
|
2431
|
-
|
|
2432
|
-
f = message.getInvoice();
|
|
2433
|
-
if (f != null) {
|
|
2434
|
-
writer.writeMessage(
|
|
2435
|
-
1,
|
|
2436
|
-
f,
|
|
2437
|
-
proto.Invoice.serializeBinaryToWriter
|
|
2438
|
-
);
|
|
2439
|
-
}
|
|
2440
|
-
f = message.getMeta();
|
|
2441
|
-
if (f != null) {
|
|
2442
|
-
writer.writeMessage(
|
|
2443
|
-
2,
|
|
2444
|
-
f,
|
|
2445
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
2446
|
-
);
|
|
2447
|
-
}
|
|
2357
|
+
proto.GetInvoiceDetailRes.prototype.clearItemInvoiceReferencesList = function() {
|
|
2358
|
+
return this.setItemInvoiceReferencesList([]);
|
|
2448
2359
|
};
|
|
2449
2360
|
|
|
2450
2361
|
|
|
2451
2362
|
/**
|
|
2452
|
-
*
|
|
2453
|
-
* @return {
|
|
2363
|
+
* repeated ItemPurchaseOrder item_purchase_orders = 4;
|
|
2364
|
+
* @return {!Array<!proto.ItemPurchaseOrder>}
|
|
2454
2365
|
*/
|
|
2455
|
-
proto.
|
|
2456
|
-
return /** @type{
|
|
2457
|
-
jspb.Message.
|
|
2366
|
+
proto.GetInvoiceDetailRes.prototype.getItemPurchaseOrdersList = function() {
|
|
2367
|
+
return /** @type{!Array<!proto.ItemPurchaseOrder>} */ (
|
|
2368
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ItemPurchaseOrder, 4));
|
|
2458
2369
|
};
|
|
2459
2370
|
|
|
2460
2371
|
|
|
2461
2372
|
/**
|
|
2462
|
-
* @param {
|
|
2463
|
-
* @return {!proto.
|
|
2373
|
+
* @param {!Array<!proto.ItemPurchaseOrder>} value
|
|
2374
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2464
2375
|
*/
|
|
2465
|
-
proto.
|
|
2466
|
-
return jspb.Message.
|
|
2376
|
+
proto.GetInvoiceDetailRes.prototype.setItemPurchaseOrdersList = function(value) {
|
|
2377
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2467
2378
|
};
|
|
2468
2379
|
|
|
2469
2380
|
|
|
2470
2381
|
/**
|
|
2471
|
-
*
|
|
2472
|
-
* @
|
|
2382
|
+
* @param {!proto.ItemPurchaseOrder=} opt_value
|
|
2383
|
+
* @param {number=} opt_index
|
|
2384
|
+
* @return {!proto.ItemPurchaseOrder}
|
|
2473
2385
|
*/
|
|
2474
|
-
proto.
|
|
2475
|
-
return this.
|
|
2386
|
+
proto.GetInvoiceDetailRes.prototype.addItemPurchaseOrders = function(opt_value, opt_index) {
|
|
2387
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.ItemPurchaseOrder, opt_index);
|
|
2476
2388
|
};
|
|
2477
2389
|
|
|
2478
2390
|
|
|
2479
2391
|
/**
|
|
2480
|
-
*
|
|
2481
|
-
* @return {
|
|
2392
|
+
* Clears the list making it empty but non-null.
|
|
2393
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2482
2394
|
*/
|
|
2483
|
-
proto.
|
|
2484
|
-
return
|
|
2395
|
+
proto.GetInvoiceDetailRes.prototype.clearItemPurchaseOrdersList = function() {
|
|
2396
|
+
return this.setItemPurchaseOrdersList([]);
|
|
2485
2397
|
};
|
|
2486
2398
|
|
|
2487
2399
|
|
|
2488
2400
|
/**
|
|
2489
|
-
*
|
|
2490
|
-
* @return {
|
|
2401
|
+
* repeated ItemGoodReceipt item_good_receipts = 5;
|
|
2402
|
+
* @return {!Array<!proto.ItemGoodReceipt>}
|
|
2491
2403
|
*/
|
|
2492
|
-
proto.
|
|
2493
|
-
return /** @type{
|
|
2494
|
-
jspb.Message.
|
|
2404
|
+
proto.GetInvoiceDetailRes.prototype.getItemGoodReceiptsList = function() {
|
|
2405
|
+
return /** @type{!Array<!proto.ItemGoodReceipt>} */ (
|
|
2406
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ItemGoodReceipt, 5));
|
|
2495
2407
|
};
|
|
2496
2408
|
|
|
2497
2409
|
|
|
2498
2410
|
/**
|
|
2499
|
-
* @param {
|
|
2500
|
-
* @return {!proto.
|
|
2411
|
+
* @param {!Array<!proto.ItemGoodReceipt>} value
|
|
2412
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2501
2413
|
*/
|
|
2502
|
-
proto.
|
|
2503
|
-
return jspb.Message.
|
|
2414
|
+
proto.GetInvoiceDetailRes.prototype.setItemGoodReceiptsList = function(value) {
|
|
2415
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
2504
2416
|
};
|
|
2505
2417
|
|
|
2506
2418
|
|
|
2507
2419
|
/**
|
|
2508
|
-
*
|
|
2509
|
-
* @
|
|
2420
|
+
* @param {!proto.ItemGoodReceipt=} opt_value
|
|
2421
|
+
* @param {number=} opt_index
|
|
2422
|
+
* @return {!proto.ItemGoodReceipt}
|
|
2510
2423
|
*/
|
|
2511
|
-
proto.
|
|
2512
|
-
return this.
|
|
2424
|
+
proto.GetInvoiceDetailRes.prototype.addItemGoodReceipts = function(opt_value, opt_index) {
|
|
2425
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.ItemGoodReceipt, opt_index);
|
|
2513
2426
|
};
|
|
2514
2427
|
|
|
2515
2428
|
|
|
2516
2429
|
/**
|
|
2517
|
-
*
|
|
2518
|
-
* @return {
|
|
2430
|
+
* Clears the list making it empty but non-null.
|
|
2431
|
+
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
2519
2432
|
*/
|
|
2520
|
-
proto.
|
|
2521
|
-
return
|
|
2433
|
+
proto.GetInvoiceDetailRes.prototype.clearItemGoodReceiptsList = function() {
|
|
2434
|
+
return this.setItemGoodReceiptsList([]);
|
|
2522
2435
|
};
|
|
2523
2436
|
|
|
2524
2437
|
|
|
2525
2438
|
|
|
2439
|
+
/**
|
|
2440
|
+
* List of repeated fields within this message type.
|
|
2441
|
+
* @private {!Array<number>}
|
|
2442
|
+
* @const
|
|
2443
|
+
*/
|
|
2444
|
+
proto.ItemInvoiceReference.repeatedFields_ = [12];
|
|
2445
|
+
|
|
2526
2446
|
|
|
2527
2447
|
|
|
2528
2448
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2538,8 +2458,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2538
2458
|
* http://goto/soy-param-migration
|
|
2539
2459
|
* @return {!Object}
|
|
2540
2460
|
*/
|
|
2541
|
-
proto.
|
|
2542
|
-
return proto.
|
|
2461
|
+
proto.ItemInvoiceReference.prototype.toObject = function(opt_includeInstance) {
|
|
2462
|
+
return proto.ItemInvoiceReference.toObject(opt_includeInstance, this);
|
|
2543
2463
|
};
|
|
2544
2464
|
|
|
2545
2465
|
|
|
@@ -2548,14 +2468,25 @@ proto.UpdateInvoiceReq.prototype.toObject = function(opt_includeInstance) {
|
|
|
2548
2468
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2549
2469
|
* the JSPB instance for transitional soy proto support:
|
|
2550
2470
|
* http://goto/soy-param-migration
|
|
2551
|
-
* @param {!proto.
|
|
2471
|
+
* @param {!proto.ItemInvoiceReference} msg The msg instance to transform.
|
|
2552
2472
|
* @return {!Object}
|
|
2553
2473
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2554
2474
|
*/
|
|
2555
|
-
proto.
|
|
2475
|
+
proto.ItemInvoiceReference.toObject = function(includeInstance, msg) {
|
|
2556
2476
|
var f, obj = {
|
|
2557
|
-
|
|
2558
|
-
|
|
2477
|
+
invoiceNumber: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2478
|
+
documentNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2479
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2480
|
+
invoiceReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2481
|
+
remarks: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2482
|
+
invoiceDate: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2483
|
+
description: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2484
|
+
detailDescription: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
2485
|
+
includeVat: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
2486
|
+
incomeTax: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
|
|
2487
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
2488
|
+
priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
|
|
2489
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
|
|
2559
2490
|
};
|
|
2560
2491
|
|
|
2561
2492
|
if (includeInstance) {
|
|
@@ -2569,23 +2500,23 @@ baseInvoice: (f = msg.getBaseInvoice()) && proto.BaseInvoice.toObject(includeIns
|
|
|
2569
2500
|
/**
|
|
2570
2501
|
* Deserializes binary data (in protobuf wire format).
|
|
2571
2502
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2572
|
-
* @return {!proto.
|
|
2503
|
+
* @return {!proto.ItemInvoiceReference}
|
|
2573
2504
|
*/
|
|
2574
|
-
proto.
|
|
2505
|
+
proto.ItemInvoiceReference.deserializeBinary = function(bytes) {
|
|
2575
2506
|
var reader = new jspb.BinaryReader(bytes);
|
|
2576
|
-
var msg = new proto.
|
|
2577
|
-
return proto.
|
|
2507
|
+
var msg = new proto.ItemInvoiceReference;
|
|
2508
|
+
return proto.ItemInvoiceReference.deserializeBinaryFromReader(msg, reader);
|
|
2578
2509
|
};
|
|
2579
2510
|
|
|
2580
2511
|
|
|
2581
2512
|
/**
|
|
2582
2513
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2583
2514
|
* given reader into the given message object.
|
|
2584
|
-
* @param {!proto.
|
|
2515
|
+
* @param {!proto.ItemInvoiceReference} msg The message object to deserialize into.
|
|
2585
2516
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2586
|
-
* @return {!proto.
|
|
2517
|
+
* @return {!proto.ItemInvoiceReference}
|
|
2587
2518
|
*/
|
|
2588
|
-
proto.
|
|
2519
|
+
proto.ItemInvoiceReference.deserializeBinaryFromReader = function(msg, reader) {
|
|
2589
2520
|
while (reader.nextField()) {
|
|
2590
2521
|
if (reader.isEndGroup()) {
|
|
2591
2522
|
break;
|
|
@@ -2594,12 +2525,52 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2594
2525
|
switch (field) {
|
|
2595
2526
|
case 1:
|
|
2596
2527
|
var value = /** @type {string} */ (reader.readString());
|
|
2597
|
-
msg.
|
|
2528
|
+
msg.setInvoiceNumber(value);
|
|
2598
2529
|
break;
|
|
2599
2530
|
case 2:
|
|
2600
|
-
var value =
|
|
2601
|
-
|
|
2602
|
-
|
|
2531
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2532
|
+
msg.setDocumentNumber(value);
|
|
2533
|
+
break;
|
|
2534
|
+
case 3:
|
|
2535
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2536
|
+
msg.setReferencesId(value);
|
|
2537
|
+
break;
|
|
2538
|
+
case 4:
|
|
2539
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2540
|
+
msg.setInvoiceReferencesId(value);
|
|
2541
|
+
break;
|
|
2542
|
+
case 5:
|
|
2543
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2544
|
+
msg.setRemarks(value);
|
|
2545
|
+
break;
|
|
2546
|
+
case 6:
|
|
2547
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2548
|
+
msg.setInvoiceDate(value);
|
|
2549
|
+
break;
|
|
2550
|
+
case 7:
|
|
2551
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2552
|
+
msg.setDescription(value);
|
|
2553
|
+
break;
|
|
2554
|
+
case 8:
|
|
2555
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2556
|
+
msg.setDetailDescription(value);
|
|
2557
|
+
break;
|
|
2558
|
+
case 9:
|
|
2559
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
2560
|
+
msg.setIncludeVat(value);
|
|
2561
|
+
break;
|
|
2562
|
+
case 10:
|
|
2563
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
2564
|
+
msg.setIncomeTax(value);
|
|
2565
|
+
break;
|
|
2566
|
+
case 11:
|
|
2567
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2568
|
+
msg.setQuantity(value);
|
|
2569
|
+
break;
|
|
2570
|
+
case 12:
|
|
2571
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition;
|
|
2572
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
|
|
2573
|
+
msg.addPriceCondition(value);
|
|
2603
2574
|
break;
|
|
2604
2575
|
default:
|
|
2605
2576
|
reader.skipField();
|
|
@@ -2614,9 +2585,9 @@ proto.UpdateInvoiceReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2614
2585
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2615
2586
|
* @return {!Uint8Array}
|
|
2616
2587
|
*/
|
|
2617
|
-
proto.
|
|
2588
|
+
proto.ItemInvoiceReference.prototype.serializeBinary = function() {
|
|
2618
2589
|
var writer = new jspb.BinaryWriter();
|
|
2619
|
-
proto.
|
|
2590
|
+
proto.ItemInvoiceReference.serializeBinaryToWriter(this, writer);
|
|
2620
2591
|
return writer.getResultBuffer();
|
|
2621
2592
|
};
|
|
2622
2593
|
|
|
@@ -2624,288 +2595,344 @@ proto.UpdateInvoiceReq.prototype.serializeBinary = function() {
|
|
|
2624
2595
|
/**
|
|
2625
2596
|
* Serializes the given message to binary data (in protobuf wire
|
|
2626
2597
|
* format), writing to the given BinaryWriter.
|
|
2627
|
-
* @param {!proto.
|
|
2598
|
+
* @param {!proto.ItemInvoiceReference} message
|
|
2628
2599
|
* @param {!jspb.BinaryWriter} writer
|
|
2629
2600
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2630
2601
|
*/
|
|
2631
|
-
proto.
|
|
2602
|
+
proto.ItemInvoiceReference.serializeBinaryToWriter = function(message, writer) {
|
|
2632
2603
|
var f = undefined;
|
|
2633
|
-
f = message.
|
|
2604
|
+
f = message.getInvoiceNumber();
|
|
2634
2605
|
if (f.length > 0) {
|
|
2635
2606
|
writer.writeString(
|
|
2636
2607
|
1,
|
|
2637
2608
|
f
|
|
2638
2609
|
);
|
|
2639
2610
|
}
|
|
2640
|
-
f = message.
|
|
2641
|
-
if (f
|
|
2642
|
-
writer.
|
|
2611
|
+
f = message.getDocumentNumber();
|
|
2612
|
+
if (f.length > 0) {
|
|
2613
|
+
writer.writeString(
|
|
2643
2614
|
2,
|
|
2615
|
+
f
|
|
2616
|
+
);
|
|
2617
|
+
}
|
|
2618
|
+
f = message.getReferencesId();
|
|
2619
|
+
if (f.length > 0) {
|
|
2620
|
+
writer.writeString(
|
|
2621
|
+
3,
|
|
2622
|
+
f
|
|
2623
|
+
);
|
|
2624
|
+
}
|
|
2625
|
+
f = message.getInvoiceReferencesId();
|
|
2626
|
+
if (f.length > 0) {
|
|
2627
|
+
writer.writeString(
|
|
2628
|
+
4,
|
|
2629
|
+
f
|
|
2630
|
+
);
|
|
2631
|
+
}
|
|
2632
|
+
f = message.getRemarks();
|
|
2633
|
+
if (f.length > 0) {
|
|
2634
|
+
writer.writeString(
|
|
2635
|
+
5,
|
|
2636
|
+
f
|
|
2637
|
+
);
|
|
2638
|
+
}
|
|
2639
|
+
f = message.getInvoiceDate();
|
|
2640
|
+
if (f.length > 0) {
|
|
2641
|
+
writer.writeString(
|
|
2642
|
+
6,
|
|
2643
|
+
f
|
|
2644
|
+
);
|
|
2645
|
+
}
|
|
2646
|
+
f = message.getDescription();
|
|
2647
|
+
if (f.length > 0) {
|
|
2648
|
+
writer.writeString(
|
|
2649
|
+
7,
|
|
2650
|
+
f
|
|
2651
|
+
);
|
|
2652
|
+
}
|
|
2653
|
+
f = message.getDetailDescription();
|
|
2654
|
+
if (f.length > 0) {
|
|
2655
|
+
writer.writeString(
|
|
2656
|
+
8,
|
|
2657
|
+
f
|
|
2658
|
+
);
|
|
2659
|
+
}
|
|
2660
|
+
f = message.getIncludeVat();
|
|
2661
|
+
if (f) {
|
|
2662
|
+
writer.writeBool(
|
|
2663
|
+
9,
|
|
2664
|
+
f
|
|
2665
|
+
);
|
|
2666
|
+
}
|
|
2667
|
+
f = message.getIncomeTax();
|
|
2668
|
+
if (f !== 0.0) {
|
|
2669
|
+
writer.writeDouble(
|
|
2670
|
+
10,
|
|
2671
|
+
f
|
|
2672
|
+
);
|
|
2673
|
+
}
|
|
2674
|
+
f = message.getQuantity();
|
|
2675
|
+
if (f.length > 0) {
|
|
2676
|
+
writer.writeString(
|
|
2677
|
+
11,
|
|
2678
|
+
f
|
|
2679
|
+
);
|
|
2680
|
+
}
|
|
2681
|
+
f = message.getPriceConditionList();
|
|
2682
|
+
if (f.length > 0) {
|
|
2683
|
+
writer.writeRepeatedMessage(
|
|
2684
|
+
12,
|
|
2644
2685
|
f,
|
|
2645
|
-
|
|
2686
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
|
|
2646
2687
|
);
|
|
2647
2688
|
}
|
|
2648
2689
|
};
|
|
2649
2690
|
|
|
2650
2691
|
|
|
2651
2692
|
/**
|
|
2652
|
-
* optional string
|
|
2693
|
+
* optional string invoice_number = 1;
|
|
2653
2694
|
* @return {string}
|
|
2654
2695
|
*/
|
|
2655
|
-
proto.
|
|
2696
|
+
proto.ItemInvoiceReference.prototype.getInvoiceNumber = function() {
|
|
2656
2697
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2657
2698
|
};
|
|
2658
2699
|
|
|
2659
2700
|
|
|
2660
2701
|
/**
|
|
2661
2702
|
* @param {string} value
|
|
2662
|
-
* @return {!proto.
|
|
2703
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2663
2704
|
*/
|
|
2664
|
-
proto.
|
|
2705
|
+
proto.ItemInvoiceReference.prototype.setInvoiceNumber = function(value) {
|
|
2665
2706
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2666
2707
|
};
|
|
2667
2708
|
|
|
2668
2709
|
|
|
2669
2710
|
/**
|
|
2670
|
-
* optional
|
|
2671
|
-
* @return {
|
|
2711
|
+
* optional string document_number = 2;
|
|
2712
|
+
* @return {string}
|
|
2672
2713
|
*/
|
|
2673
|
-
proto.
|
|
2674
|
-
return /** @type{
|
|
2675
|
-
jspb.Message.getWrapperField(this, proto.BaseInvoice, 2));
|
|
2714
|
+
proto.ItemInvoiceReference.prototype.getDocumentNumber = function() {
|
|
2715
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
2676
2716
|
};
|
|
2677
2717
|
|
|
2678
2718
|
|
|
2679
2719
|
/**
|
|
2680
|
-
* @param {
|
|
2681
|
-
* @return {!proto.
|
|
2682
|
-
*/
|
|
2683
|
-
proto.
|
|
2684
|
-
return jspb.Message.
|
|
2720
|
+
* @param {string} value
|
|
2721
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2722
|
+
*/
|
|
2723
|
+
proto.ItemInvoiceReference.prototype.setDocumentNumber = function(value) {
|
|
2724
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
2685
2725
|
};
|
|
2686
2726
|
|
|
2687
2727
|
|
|
2688
2728
|
/**
|
|
2689
|
-
*
|
|
2690
|
-
* @return {
|
|
2729
|
+
* optional string references_id = 3;
|
|
2730
|
+
* @return {string}
|
|
2691
2731
|
*/
|
|
2692
|
-
proto.
|
|
2693
|
-
return
|
|
2732
|
+
proto.ItemInvoiceReference.prototype.getReferencesId = function() {
|
|
2733
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2694
2734
|
};
|
|
2695
2735
|
|
|
2696
2736
|
|
|
2697
2737
|
/**
|
|
2698
|
-
*
|
|
2699
|
-
* @return {
|
|
2738
|
+
* @param {string} value
|
|
2739
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2700
2740
|
*/
|
|
2701
|
-
proto.
|
|
2702
|
-
return jspb.Message.
|
|
2741
|
+
proto.ItemInvoiceReference.prototype.setReferencesId = function(value) {
|
|
2742
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2703
2743
|
};
|
|
2704
2744
|
|
|
2705
2745
|
|
|
2746
|
+
/**
|
|
2747
|
+
* optional string invoice_references_id = 4;
|
|
2748
|
+
* @return {string}
|
|
2749
|
+
*/
|
|
2750
|
+
proto.ItemInvoiceReference.prototype.getInvoiceReferencesId = function() {
|
|
2751
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2752
|
+
};
|
|
2753
|
+
|
|
2706
2754
|
|
|
2755
|
+
/**
|
|
2756
|
+
* @param {string} value
|
|
2757
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2758
|
+
*/
|
|
2759
|
+
proto.ItemInvoiceReference.prototype.setInvoiceReferencesId = function(value) {
|
|
2760
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2761
|
+
};
|
|
2707
2762
|
|
|
2708
2763
|
|
|
2709
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2710
2764
|
/**
|
|
2711
|
-
*
|
|
2712
|
-
*
|
|
2713
|
-
* Optional fields that are not set will be set to undefined.
|
|
2714
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2715
|
-
* For the list of reserved names please see:
|
|
2716
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2717
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2718
|
-
* JSPB instance for transitional soy proto support:
|
|
2719
|
-
* http://goto/soy-param-migration
|
|
2720
|
-
* @return {!Object}
|
|
2765
|
+
* optional string remarks = 5;
|
|
2766
|
+
* @return {string}
|
|
2721
2767
|
*/
|
|
2722
|
-
proto.
|
|
2723
|
-
return
|
|
2768
|
+
proto.ItemInvoiceReference.prototype.getRemarks = function() {
|
|
2769
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
2724
2770
|
};
|
|
2725
2771
|
|
|
2726
2772
|
|
|
2727
2773
|
/**
|
|
2728
|
-
*
|
|
2729
|
-
* @
|
|
2730
|
-
* the JSPB instance for transitional soy proto support:
|
|
2731
|
-
* http://goto/soy-param-migration
|
|
2732
|
-
* @param {!proto.UpdateInvoiceRes} msg The msg instance to transform.
|
|
2733
|
-
* @return {!Object}
|
|
2734
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2774
|
+
* @param {string} value
|
|
2775
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2735
2776
|
*/
|
|
2736
|
-
proto.
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
2740
|
-
};
|
|
2777
|
+
proto.ItemInvoiceReference.prototype.setRemarks = function(value) {
|
|
2778
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
2779
|
+
};
|
|
2741
2780
|
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2781
|
+
|
|
2782
|
+
/**
|
|
2783
|
+
* optional string invoice_date = 6;
|
|
2784
|
+
* @return {string}
|
|
2785
|
+
*/
|
|
2786
|
+
proto.ItemInvoiceReference.prototype.getInvoiceDate = function() {
|
|
2787
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
2746
2788
|
};
|
|
2747
|
-
}
|
|
2748
2789
|
|
|
2749
2790
|
|
|
2750
2791
|
/**
|
|
2751
|
-
*
|
|
2752
|
-
* @
|
|
2753
|
-
* @return {!proto.UpdateInvoiceRes}
|
|
2792
|
+
* @param {string} value
|
|
2793
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2754
2794
|
*/
|
|
2755
|
-
proto.
|
|
2756
|
-
|
|
2757
|
-
var msg = new proto.UpdateInvoiceRes;
|
|
2758
|
-
return proto.UpdateInvoiceRes.deserializeBinaryFromReader(msg, reader);
|
|
2795
|
+
proto.ItemInvoiceReference.prototype.setInvoiceDate = function(value) {
|
|
2796
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
2759
2797
|
};
|
|
2760
2798
|
|
|
2761
2799
|
|
|
2762
2800
|
/**
|
|
2763
|
-
*
|
|
2764
|
-
*
|
|
2765
|
-
* @param {!proto.UpdateInvoiceRes} msg The message object to deserialize into.
|
|
2766
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2767
|
-
* @return {!proto.UpdateInvoiceRes}
|
|
2801
|
+
* optional string description = 7;
|
|
2802
|
+
* @return {string}
|
|
2768
2803
|
*/
|
|
2769
|
-
proto.
|
|
2770
|
-
|
|
2771
|
-
if (reader.isEndGroup()) {
|
|
2772
|
-
break;
|
|
2773
|
-
}
|
|
2774
|
-
var field = reader.getFieldNumber();
|
|
2775
|
-
switch (field) {
|
|
2776
|
-
case 1:
|
|
2777
|
-
var value = new proto.Invoice;
|
|
2778
|
-
reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
|
|
2779
|
-
msg.setInvoice(value);
|
|
2780
|
-
break;
|
|
2781
|
-
case 2:
|
|
2782
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
2783
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
2784
|
-
msg.setMeta(value);
|
|
2785
|
-
break;
|
|
2786
|
-
default:
|
|
2787
|
-
reader.skipField();
|
|
2788
|
-
break;
|
|
2789
|
-
}
|
|
2790
|
-
}
|
|
2791
|
-
return msg;
|
|
2804
|
+
proto.ItemInvoiceReference.prototype.getDescription = function() {
|
|
2805
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
2792
2806
|
};
|
|
2793
2807
|
|
|
2794
2808
|
|
|
2795
2809
|
/**
|
|
2796
|
-
*
|
|
2797
|
-
* @return {!
|
|
2810
|
+
* @param {string} value
|
|
2811
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2798
2812
|
*/
|
|
2799
|
-
proto.
|
|
2800
|
-
|
|
2801
|
-
proto.UpdateInvoiceRes.serializeBinaryToWriter(this, writer);
|
|
2802
|
-
return writer.getResultBuffer();
|
|
2813
|
+
proto.ItemInvoiceReference.prototype.setDescription = function(value) {
|
|
2814
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
2803
2815
|
};
|
|
2804
2816
|
|
|
2805
2817
|
|
|
2806
2818
|
/**
|
|
2807
|
-
*
|
|
2808
|
-
*
|
|
2809
|
-
* @param {!proto.UpdateInvoiceRes} message
|
|
2810
|
-
* @param {!jspb.BinaryWriter} writer
|
|
2811
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2819
|
+
* optional string detail_description = 8;
|
|
2820
|
+
* @return {string}
|
|
2812
2821
|
*/
|
|
2813
|
-
proto.
|
|
2814
|
-
|
|
2815
|
-
f = message.getInvoice();
|
|
2816
|
-
if (f != null) {
|
|
2817
|
-
writer.writeMessage(
|
|
2818
|
-
1,
|
|
2819
|
-
f,
|
|
2820
|
-
proto.Invoice.serializeBinaryToWriter
|
|
2821
|
-
);
|
|
2822
|
-
}
|
|
2823
|
-
f = message.getMeta();
|
|
2824
|
-
if (f != null) {
|
|
2825
|
-
writer.writeMessage(
|
|
2826
|
-
2,
|
|
2827
|
-
f,
|
|
2828
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
2829
|
-
);
|
|
2830
|
-
}
|
|
2822
|
+
proto.ItemInvoiceReference.prototype.getDetailDescription = function() {
|
|
2823
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
2831
2824
|
};
|
|
2832
2825
|
|
|
2833
2826
|
|
|
2834
2827
|
/**
|
|
2835
|
-
*
|
|
2836
|
-
* @return {
|
|
2828
|
+
* @param {string} value
|
|
2829
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2837
2830
|
*/
|
|
2838
|
-
proto.
|
|
2839
|
-
return
|
|
2840
|
-
jspb.Message.getWrapperField(this, proto.Invoice, 1));
|
|
2831
|
+
proto.ItemInvoiceReference.prototype.setDetailDescription = function(value) {
|
|
2832
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
2841
2833
|
};
|
|
2842
2834
|
|
|
2843
2835
|
|
|
2844
2836
|
/**
|
|
2845
|
-
*
|
|
2846
|
-
* @return {
|
|
2847
|
-
*/
|
|
2848
|
-
proto.
|
|
2849
|
-
return jspb.Message.
|
|
2837
|
+
* optional bool include_vat = 9;
|
|
2838
|
+
* @return {boolean}
|
|
2839
|
+
*/
|
|
2840
|
+
proto.ItemInvoiceReference.prototype.getIncludeVat = function() {
|
|
2841
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false));
|
|
2850
2842
|
};
|
|
2851
2843
|
|
|
2852
2844
|
|
|
2853
2845
|
/**
|
|
2854
|
-
*
|
|
2855
|
-
* @return {!proto.
|
|
2846
|
+
* @param {boolean} value
|
|
2847
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2848
|
+
*/
|
|
2849
|
+
proto.ItemInvoiceReference.prototype.setIncludeVat = function(value) {
|
|
2850
|
+
return jspb.Message.setProto3BooleanField(this, 9, value);
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
/**
|
|
2855
|
+
* optional double income_tax = 10;
|
|
2856
|
+
* @return {number}
|
|
2857
|
+
*/
|
|
2858
|
+
proto.ItemInvoiceReference.prototype.getIncomeTax = function() {
|
|
2859
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
|
|
2863
|
+
/**
|
|
2864
|
+
* @param {number} value
|
|
2865
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2866
|
+
*/
|
|
2867
|
+
proto.ItemInvoiceReference.prototype.setIncomeTax = function(value) {
|
|
2868
|
+
return jspb.Message.setProto3FloatField(this, 10, value);
|
|
2869
|
+
};
|
|
2870
|
+
|
|
2871
|
+
|
|
2872
|
+
/**
|
|
2873
|
+
* optional string quantity = 11;
|
|
2874
|
+
* @return {string}
|
|
2856
2875
|
*/
|
|
2857
|
-
proto.
|
|
2858
|
-
return
|
|
2876
|
+
proto.ItemInvoiceReference.prototype.getQuantity = function() {
|
|
2877
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
2859
2878
|
};
|
|
2860
2879
|
|
|
2861
2880
|
|
|
2862
2881
|
/**
|
|
2863
|
-
*
|
|
2864
|
-
* @return {
|
|
2882
|
+
* @param {string} value
|
|
2883
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2865
2884
|
*/
|
|
2866
|
-
proto.
|
|
2867
|
-
return jspb.Message.
|
|
2885
|
+
proto.ItemInvoiceReference.prototype.setQuantity = function(value) {
|
|
2886
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
2868
2887
|
};
|
|
2869
2888
|
|
|
2870
2889
|
|
|
2871
2890
|
/**
|
|
2872
|
-
*
|
|
2873
|
-
* @return {
|
|
2891
|
+
* repeated ItemTransactionPriceCondition price_condition = 12;
|
|
2892
|
+
* @return {!Array<!proto.ItemTransactionPriceCondition>}
|
|
2874
2893
|
*/
|
|
2875
|
-
proto.
|
|
2876
|
-
return /** @type{
|
|
2877
|
-
jspb.Message.
|
|
2894
|
+
proto.ItemInvoiceReference.prototype.getPriceConditionList = function() {
|
|
2895
|
+
return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
|
|
2896
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition, 12));
|
|
2878
2897
|
};
|
|
2879
2898
|
|
|
2880
2899
|
|
|
2881
2900
|
/**
|
|
2882
|
-
* @param {
|
|
2883
|
-
* @return {!proto.
|
|
2901
|
+
* @param {!Array<!proto.ItemTransactionPriceCondition>} value
|
|
2902
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2884
2903
|
*/
|
|
2885
|
-
proto.
|
|
2886
|
-
return jspb.Message.
|
|
2904
|
+
proto.ItemInvoiceReference.prototype.setPriceConditionList = function(value) {
|
|
2905
|
+
return jspb.Message.setRepeatedWrapperField(this, 12, value);
|
|
2887
2906
|
};
|
|
2888
2907
|
|
|
2889
2908
|
|
|
2890
2909
|
/**
|
|
2891
|
-
*
|
|
2892
|
-
* @
|
|
2910
|
+
* @param {!proto.ItemTransactionPriceCondition=} opt_value
|
|
2911
|
+
* @param {number=} opt_index
|
|
2912
|
+
* @return {!proto.ItemTransactionPriceCondition}
|
|
2893
2913
|
*/
|
|
2894
|
-
proto.
|
|
2895
|
-
return this.
|
|
2914
|
+
proto.ItemInvoiceReference.prototype.addPriceCondition = function(opt_value, opt_index) {
|
|
2915
|
+
return jspb.Message.addToRepeatedWrapperField(this, 12, opt_value, proto.ItemTransactionPriceCondition, opt_index);
|
|
2896
2916
|
};
|
|
2897
2917
|
|
|
2898
2918
|
|
|
2899
2919
|
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @return {
|
|
2920
|
+
* Clears the list making it empty but non-null.
|
|
2921
|
+
* @return {!proto.ItemInvoiceReference} returns this
|
|
2902
2922
|
*/
|
|
2903
|
-
proto.
|
|
2904
|
-
return
|
|
2923
|
+
proto.ItemInvoiceReference.prototype.clearPriceConditionList = function() {
|
|
2924
|
+
return this.setPriceConditionList([]);
|
|
2905
2925
|
};
|
|
2906
2926
|
|
|
2907
2927
|
|
|
2908
2928
|
|
|
2929
|
+
/**
|
|
2930
|
+
* List of repeated fields within this message type.
|
|
2931
|
+
* @private {!Array<number>}
|
|
2932
|
+
* @const
|
|
2933
|
+
*/
|
|
2934
|
+
proto.ItemPurchaseOrder.repeatedFields_ = [8];
|
|
2935
|
+
|
|
2909
2936
|
|
|
2910
2937
|
|
|
2911
2938
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -2921,8 +2948,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
2921
2948
|
* http://goto/soy-param-migration
|
|
2922
2949
|
* @return {!Object}
|
|
2923
2950
|
*/
|
|
2924
|
-
proto.
|
|
2925
|
-
return proto.
|
|
2951
|
+
proto.ItemPurchaseOrder.prototype.toObject = function(opt_includeInstance) {
|
|
2952
|
+
return proto.ItemPurchaseOrder.toObject(opt_includeInstance, this);
|
|
2926
2953
|
};
|
|
2927
2954
|
|
|
2928
2955
|
|
|
@@ -2931,13 +2958,21 @@ proto.GetInvoiceByIdReq.prototype.toObject = function(opt_includeInstance) {
|
|
|
2931
2958
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
2932
2959
|
* the JSPB instance for transitional soy proto support:
|
|
2933
2960
|
* http://goto/soy-param-migration
|
|
2934
|
-
* @param {!proto.
|
|
2961
|
+
* @param {!proto.ItemPurchaseOrder} msg The msg instance to transform.
|
|
2935
2962
|
* @return {!Object}
|
|
2936
2963
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2937
2964
|
*/
|
|
2938
|
-
proto.
|
|
2965
|
+
proto.ItemPurchaseOrder.toObject = function(includeInstance, msg) {
|
|
2939
2966
|
var f, obj = {
|
|
2940
|
-
referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
2967
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
2968
|
+
purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
2969
|
+
purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
2970
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
2971
|
+
detailDescription: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2972
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
2973
|
+
unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2974
|
+
priceConditionList: jspb.Message.toObjectList(msg.getPriceConditionList(),
|
|
2975
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.toObject, includeInstance)
|
|
2941
2976
|
};
|
|
2942
2977
|
|
|
2943
2978
|
if (includeInstance) {
|
|
@@ -2951,23 +2986,23 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
|
2951
2986
|
/**
|
|
2952
2987
|
* Deserializes binary data (in protobuf wire format).
|
|
2953
2988
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
2954
|
-
* @return {!proto.
|
|
2989
|
+
* @return {!proto.ItemPurchaseOrder}
|
|
2955
2990
|
*/
|
|
2956
|
-
proto.
|
|
2991
|
+
proto.ItemPurchaseOrder.deserializeBinary = function(bytes) {
|
|
2957
2992
|
var reader = new jspb.BinaryReader(bytes);
|
|
2958
|
-
var msg = new proto.
|
|
2959
|
-
return proto.
|
|
2993
|
+
var msg = new proto.ItemPurchaseOrder;
|
|
2994
|
+
return proto.ItemPurchaseOrder.deserializeBinaryFromReader(msg, reader);
|
|
2960
2995
|
};
|
|
2961
2996
|
|
|
2962
2997
|
|
|
2963
2998
|
/**
|
|
2964
2999
|
* Deserializes binary data (in protobuf wire format) from the
|
|
2965
3000
|
* given reader into the given message object.
|
|
2966
|
-
* @param {!proto.
|
|
3001
|
+
* @param {!proto.ItemPurchaseOrder} msg The message object to deserialize into.
|
|
2967
3002
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
2968
|
-
* @return {!proto.
|
|
3003
|
+
* @return {!proto.ItemPurchaseOrder}
|
|
2969
3004
|
*/
|
|
2970
|
-
proto.
|
|
3005
|
+
proto.ItemPurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
|
|
2971
3006
|
while (reader.nextField()) {
|
|
2972
3007
|
if (reader.isEndGroup()) {
|
|
2973
3008
|
break;
|
|
@@ -2978,6 +3013,35 @@ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2978
3013
|
var value = /** @type {string} */ (reader.readString());
|
|
2979
3014
|
msg.setReferencesId(value);
|
|
2980
3015
|
break;
|
|
3016
|
+
case 2:
|
|
3017
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3018
|
+
msg.setPurchaseOrderNumber(value);
|
|
3019
|
+
break;
|
|
3020
|
+
case 3:
|
|
3021
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3022
|
+
msg.setPurchaseOrderReferencesId(value);
|
|
3023
|
+
break;
|
|
3024
|
+
case 4:
|
|
3025
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3026
|
+
msg.setDescription(value);
|
|
3027
|
+
break;
|
|
3028
|
+
case 5:
|
|
3029
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3030
|
+
msg.setDetailDescription(value);
|
|
3031
|
+
break;
|
|
3032
|
+
case 6:
|
|
3033
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3034
|
+
msg.setQuantity(value);
|
|
3035
|
+
break;
|
|
3036
|
+
case 7:
|
|
3037
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3038
|
+
msg.setUnitOfMeasure(value);
|
|
3039
|
+
break;
|
|
3040
|
+
case 8:
|
|
3041
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition;
|
|
3042
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.deserializeBinaryFromReader);
|
|
3043
|
+
msg.addPriceCondition(value);
|
|
3044
|
+
break;
|
|
2981
3045
|
default:
|
|
2982
3046
|
reader.skipField();
|
|
2983
3047
|
break;
|
|
@@ -2991,9 +3055,9 @@ proto.GetInvoiceByIdReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
2991
3055
|
* Serializes the message to binary data (in protobuf wire format).
|
|
2992
3056
|
* @return {!Uint8Array}
|
|
2993
3057
|
*/
|
|
2994
|
-
proto.
|
|
3058
|
+
proto.ItemPurchaseOrder.prototype.serializeBinary = function() {
|
|
2995
3059
|
var writer = new jspb.BinaryWriter();
|
|
2996
|
-
proto.
|
|
3060
|
+
proto.ItemPurchaseOrder.serializeBinaryToWriter(this, writer);
|
|
2997
3061
|
return writer.getResultBuffer();
|
|
2998
3062
|
};
|
|
2999
3063
|
|
|
@@ -3001,11 +3065,11 @@ proto.GetInvoiceByIdReq.prototype.serializeBinary = function() {
|
|
|
3001
3065
|
/**
|
|
3002
3066
|
* Serializes the given message to binary data (in protobuf wire
|
|
3003
3067
|
* format), writing to the given BinaryWriter.
|
|
3004
|
-
* @param {!proto.
|
|
3068
|
+
* @param {!proto.ItemPurchaseOrder} message
|
|
3005
3069
|
* @param {!jspb.BinaryWriter} writer
|
|
3006
3070
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3007
3071
|
*/
|
|
3008
|
-
proto.
|
|
3072
|
+
proto.ItemPurchaseOrder.serializeBinaryToWriter = function(message, writer) {
|
|
3009
3073
|
var f = undefined;
|
|
3010
3074
|
f = message.getReferencesId();
|
|
3011
3075
|
if (f.length > 0) {
|
|
@@ -3014,6 +3078,56 @@ proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
|
|
|
3014
3078
|
f
|
|
3015
3079
|
);
|
|
3016
3080
|
}
|
|
3081
|
+
f = message.getPurchaseOrderNumber();
|
|
3082
|
+
if (f.length > 0) {
|
|
3083
|
+
writer.writeString(
|
|
3084
|
+
2,
|
|
3085
|
+
f
|
|
3086
|
+
);
|
|
3087
|
+
}
|
|
3088
|
+
f = message.getPurchaseOrderReferencesId();
|
|
3089
|
+
if (f.length > 0) {
|
|
3090
|
+
writer.writeString(
|
|
3091
|
+
3,
|
|
3092
|
+
f
|
|
3093
|
+
);
|
|
3094
|
+
}
|
|
3095
|
+
f = message.getDescription();
|
|
3096
|
+
if (f.length > 0) {
|
|
3097
|
+
writer.writeString(
|
|
3098
|
+
4,
|
|
3099
|
+
f
|
|
3100
|
+
);
|
|
3101
|
+
}
|
|
3102
|
+
f = message.getDetailDescription();
|
|
3103
|
+
if (f.length > 0) {
|
|
3104
|
+
writer.writeString(
|
|
3105
|
+
5,
|
|
3106
|
+
f
|
|
3107
|
+
);
|
|
3108
|
+
}
|
|
3109
|
+
f = message.getQuantity();
|
|
3110
|
+
if (f.length > 0) {
|
|
3111
|
+
writer.writeString(
|
|
3112
|
+
6,
|
|
3113
|
+
f
|
|
3114
|
+
);
|
|
3115
|
+
}
|
|
3116
|
+
f = message.getUnitOfMeasure();
|
|
3117
|
+
if (f.length > 0) {
|
|
3118
|
+
writer.writeString(
|
|
3119
|
+
7,
|
|
3120
|
+
f
|
|
3121
|
+
);
|
|
3122
|
+
}
|
|
3123
|
+
f = message.getPriceConditionList();
|
|
3124
|
+
if (f.length > 0) {
|
|
3125
|
+
writer.writeRepeatedMessage(
|
|
3126
|
+
8,
|
|
3127
|
+
f,
|
|
3128
|
+
prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition.serializeBinaryToWriter
|
|
3129
|
+
);
|
|
3130
|
+
}
|
|
3017
3131
|
};
|
|
3018
3132
|
|
|
3019
3133
|
|
|
@@ -3021,230 +3135,167 @@ proto.GetInvoiceByIdReq.serializeBinaryToWriter = function(message, writer) {
|
|
|
3021
3135
|
* optional string references_id = 1;
|
|
3022
3136
|
* @return {string}
|
|
3023
3137
|
*/
|
|
3024
|
-
proto.
|
|
3138
|
+
proto.ItemPurchaseOrder.prototype.getReferencesId = function() {
|
|
3025
3139
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3026
3140
|
};
|
|
3027
3141
|
|
|
3028
3142
|
|
|
3029
3143
|
/**
|
|
3030
3144
|
* @param {string} value
|
|
3031
|
-
* @return {!proto.
|
|
3145
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3032
3146
|
*/
|
|
3033
|
-
proto.
|
|
3147
|
+
proto.ItemPurchaseOrder.prototype.setReferencesId = function(value) {
|
|
3034
3148
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3035
3149
|
};
|
|
3036
3150
|
|
|
3037
3151
|
|
|
3152
|
+
/**
|
|
3153
|
+
* optional string purchase_order_number = 2;
|
|
3154
|
+
* @return {string}
|
|
3155
|
+
*/
|
|
3156
|
+
proto.ItemPurchaseOrder.prototype.getPurchaseOrderNumber = function() {
|
|
3157
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3158
|
+
};
|
|
3038
3159
|
|
|
3039
3160
|
|
|
3040
|
-
|
|
3041
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3042
3161
|
/**
|
|
3043
|
-
*
|
|
3044
|
-
*
|
|
3045
|
-
* Optional fields that are not set will be set to undefined.
|
|
3046
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3047
|
-
* For the list of reserved names please see:
|
|
3048
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3049
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3050
|
-
* JSPB instance for transitional soy proto support:
|
|
3051
|
-
* http://goto/soy-param-migration
|
|
3052
|
-
* @return {!Object}
|
|
3162
|
+
* @param {string} value
|
|
3163
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3053
3164
|
*/
|
|
3054
|
-
proto.
|
|
3055
|
-
return
|
|
3165
|
+
proto.ItemPurchaseOrder.prototype.setPurchaseOrderNumber = function(value) {
|
|
3166
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3056
3167
|
};
|
|
3057
3168
|
|
|
3058
3169
|
|
|
3059
3170
|
/**
|
|
3060
|
-
*
|
|
3061
|
-
* @
|
|
3062
|
-
* the JSPB instance for transitional soy proto support:
|
|
3063
|
-
* http://goto/soy-param-migration
|
|
3064
|
-
* @param {!proto.GetInvoiceByIdRes} msg The msg instance to transform.
|
|
3065
|
-
* @return {!Object}
|
|
3066
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3171
|
+
* optional string purchase_order_references_id = 3;
|
|
3172
|
+
* @return {string}
|
|
3067
3173
|
*/
|
|
3068
|
-
proto.
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3072
|
-
};
|
|
3174
|
+
proto.ItemPurchaseOrder.prototype.getPurchaseOrderReferencesId = function() {
|
|
3175
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3176
|
+
};
|
|
3073
3177
|
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3178
|
+
|
|
3179
|
+
/**
|
|
3180
|
+
* @param {string} value
|
|
3181
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3182
|
+
*/
|
|
3183
|
+
proto.ItemPurchaseOrder.prototype.setPurchaseOrderReferencesId = function(value) {
|
|
3184
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3078
3185
|
};
|
|
3079
|
-
}
|
|
3080
3186
|
|
|
3081
3187
|
|
|
3082
3188
|
/**
|
|
3083
|
-
*
|
|
3084
|
-
* @
|
|
3085
|
-
* @return {!proto.GetInvoiceByIdRes}
|
|
3189
|
+
* optional string description = 4;
|
|
3190
|
+
* @return {string}
|
|
3086
3191
|
*/
|
|
3087
|
-
proto.
|
|
3088
|
-
|
|
3089
|
-
var msg = new proto.GetInvoiceByIdRes;
|
|
3090
|
-
return proto.GetInvoiceByIdRes.deserializeBinaryFromReader(msg, reader);
|
|
3192
|
+
proto.ItemPurchaseOrder.prototype.getDescription = function() {
|
|
3193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3091
3194
|
};
|
|
3092
3195
|
|
|
3093
3196
|
|
|
3094
3197
|
/**
|
|
3095
|
-
*
|
|
3096
|
-
*
|
|
3097
|
-
* @param {!proto.GetInvoiceByIdRes} msg The message object to deserialize into.
|
|
3098
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3099
|
-
* @return {!proto.GetInvoiceByIdRes}
|
|
3198
|
+
* @param {string} value
|
|
3199
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3100
3200
|
*/
|
|
3101
|
-
proto.
|
|
3102
|
-
|
|
3103
|
-
if (reader.isEndGroup()) {
|
|
3104
|
-
break;
|
|
3105
|
-
}
|
|
3106
|
-
var field = reader.getFieldNumber();
|
|
3107
|
-
switch (field) {
|
|
3108
|
-
case 1:
|
|
3109
|
-
var value = new proto.Invoice;
|
|
3110
|
-
reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
|
|
3111
|
-
msg.setInvoice(value);
|
|
3112
|
-
break;
|
|
3113
|
-
case 2:
|
|
3114
|
-
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3115
|
-
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3116
|
-
msg.setMeta(value);
|
|
3117
|
-
break;
|
|
3118
|
-
default:
|
|
3119
|
-
reader.skipField();
|
|
3120
|
-
break;
|
|
3121
|
-
}
|
|
3122
|
-
}
|
|
3123
|
-
return msg;
|
|
3201
|
+
proto.ItemPurchaseOrder.prototype.setDescription = function(value) {
|
|
3202
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3124
3203
|
};
|
|
3125
3204
|
|
|
3126
3205
|
|
|
3127
3206
|
/**
|
|
3128
|
-
*
|
|
3129
|
-
* @return {
|
|
3207
|
+
* optional string detail_description = 5;
|
|
3208
|
+
* @return {string}
|
|
3130
3209
|
*/
|
|
3131
|
-
proto.
|
|
3132
|
-
|
|
3133
|
-
proto.GetInvoiceByIdRes.serializeBinaryToWriter(this, writer);
|
|
3134
|
-
return writer.getResultBuffer();
|
|
3210
|
+
proto.ItemPurchaseOrder.prototype.getDetailDescription = function() {
|
|
3211
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3135
3212
|
};
|
|
3136
3213
|
|
|
3137
3214
|
|
|
3138
3215
|
/**
|
|
3139
|
-
*
|
|
3140
|
-
*
|
|
3141
|
-
* @param {!proto.GetInvoiceByIdRes} message
|
|
3142
|
-
* @param {!jspb.BinaryWriter} writer
|
|
3143
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3216
|
+
* @param {string} value
|
|
3217
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3144
3218
|
*/
|
|
3145
|
-
proto.
|
|
3146
|
-
|
|
3147
|
-
f = message.getInvoice();
|
|
3148
|
-
if (f != null) {
|
|
3149
|
-
writer.writeMessage(
|
|
3150
|
-
1,
|
|
3151
|
-
f,
|
|
3152
|
-
proto.Invoice.serializeBinaryToWriter
|
|
3153
|
-
);
|
|
3154
|
-
}
|
|
3155
|
-
f = message.getMeta();
|
|
3156
|
-
if (f != null) {
|
|
3157
|
-
writer.writeMessage(
|
|
3158
|
-
2,
|
|
3159
|
-
f,
|
|
3160
|
-
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3161
|
-
);
|
|
3162
|
-
}
|
|
3219
|
+
proto.ItemPurchaseOrder.prototype.setDetailDescription = function(value) {
|
|
3220
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3163
3221
|
};
|
|
3164
3222
|
|
|
3165
3223
|
|
|
3166
3224
|
/**
|
|
3167
|
-
* optional
|
|
3168
|
-
* @return {
|
|
3225
|
+
* optional string quantity = 6;
|
|
3226
|
+
* @return {string}
|
|
3169
3227
|
*/
|
|
3170
|
-
proto.
|
|
3171
|
-
return /** @type{
|
|
3172
|
-
jspb.Message.getWrapperField(this, proto.Invoice, 1));
|
|
3228
|
+
proto.ItemPurchaseOrder.prototype.getQuantity = function() {
|
|
3229
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
3173
3230
|
};
|
|
3174
3231
|
|
|
3175
3232
|
|
|
3176
3233
|
/**
|
|
3177
|
-
* @param {
|
|
3178
|
-
* @return {!proto.
|
|
3179
|
-
*/
|
|
3180
|
-
proto.
|
|
3181
|
-
return jspb.Message.
|
|
3234
|
+
* @param {string} value
|
|
3235
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3236
|
+
*/
|
|
3237
|
+
proto.ItemPurchaseOrder.prototype.setQuantity = function(value) {
|
|
3238
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
3182
3239
|
};
|
|
3183
3240
|
|
|
3184
3241
|
|
|
3185
3242
|
/**
|
|
3186
|
-
*
|
|
3187
|
-
* @return {
|
|
3243
|
+
* optional string unit_of_measure = 7;
|
|
3244
|
+
* @return {string}
|
|
3188
3245
|
*/
|
|
3189
|
-
proto.
|
|
3190
|
-
return
|
|
3246
|
+
proto.ItemPurchaseOrder.prototype.getUnitOfMeasure = function() {
|
|
3247
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3191
3248
|
};
|
|
3192
3249
|
|
|
3193
3250
|
|
|
3194
3251
|
/**
|
|
3195
|
-
*
|
|
3196
|
-
* @return {
|
|
3252
|
+
* @param {string} value
|
|
3253
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3197
3254
|
*/
|
|
3198
|
-
proto.
|
|
3199
|
-
return jspb.Message.
|
|
3255
|
+
proto.ItemPurchaseOrder.prototype.setUnitOfMeasure = function(value) {
|
|
3256
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3200
3257
|
};
|
|
3201
3258
|
|
|
3202
3259
|
|
|
3203
3260
|
/**
|
|
3204
|
-
*
|
|
3205
|
-
* @return {
|
|
3261
|
+
* repeated ItemTransactionPriceCondition price_condition = 8;
|
|
3262
|
+
* @return {!Array<!proto.ItemTransactionPriceCondition>}
|
|
3206
3263
|
*/
|
|
3207
|
-
proto.
|
|
3208
|
-
return /** @type{
|
|
3209
|
-
jspb.Message.
|
|
3264
|
+
proto.ItemPurchaseOrder.prototype.getPriceConditionList = function() {
|
|
3265
|
+
return /** @type{!Array<!proto.ItemTransactionPriceCondition>} */ (
|
|
3266
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransactionPriceCondition, 8));
|
|
3210
3267
|
};
|
|
3211
3268
|
|
|
3212
3269
|
|
|
3213
3270
|
/**
|
|
3214
|
-
* @param {
|
|
3215
|
-
* @return {!proto.
|
|
3271
|
+
* @param {!Array<!proto.ItemTransactionPriceCondition>} value
|
|
3272
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3216
3273
|
*/
|
|
3217
|
-
proto.
|
|
3218
|
-
return jspb.Message.
|
|
3274
|
+
proto.ItemPurchaseOrder.prototype.setPriceConditionList = function(value) {
|
|
3275
|
+
return jspb.Message.setRepeatedWrapperField(this, 8, value);
|
|
3219
3276
|
};
|
|
3220
3277
|
|
|
3221
3278
|
|
|
3222
3279
|
/**
|
|
3223
|
-
*
|
|
3224
|
-
* @
|
|
3280
|
+
* @param {!proto.ItemTransactionPriceCondition=} opt_value
|
|
3281
|
+
* @param {number=} opt_index
|
|
3282
|
+
* @return {!proto.ItemTransactionPriceCondition}
|
|
3225
3283
|
*/
|
|
3226
|
-
proto.
|
|
3227
|
-
return this.
|
|
3284
|
+
proto.ItemPurchaseOrder.prototype.addPriceCondition = function(opt_value, opt_index) {
|
|
3285
|
+
return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.ItemTransactionPriceCondition, opt_index);
|
|
3228
3286
|
};
|
|
3229
3287
|
|
|
3230
3288
|
|
|
3231
3289
|
/**
|
|
3232
|
-
*
|
|
3233
|
-
* @return {
|
|
3290
|
+
* Clears the list making it empty but non-null.
|
|
3291
|
+
* @return {!proto.ItemPurchaseOrder} returns this
|
|
3234
3292
|
*/
|
|
3235
|
-
proto.
|
|
3236
|
-
return
|
|
3293
|
+
proto.ItemPurchaseOrder.prototype.clearPriceConditionList = function() {
|
|
3294
|
+
return this.setPriceConditionList([]);
|
|
3237
3295
|
};
|
|
3238
3296
|
|
|
3239
3297
|
|
|
3240
3298
|
|
|
3241
|
-
/**
|
|
3242
|
-
* List of repeated fields within this message type.
|
|
3243
|
-
* @private {!Array<number>}
|
|
3244
|
-
* @const
|
|
3245
|
-
*/
|
|
3246
|
-
proto.GetInvoiceDetailRes.repeatedFields_ = [1,2,3,4,5];
|
|
3247
|
-
|
|
3248
3299
|
|
|
3249
3300
|
|
|
3250
3301
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -3260,8 +3311,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
3260
3311
|
* http://goto/soy-param-migration
|
|
3261
3312
|
* @return {!Object}
|
|
3262
3313
|
*/
|
|
3263
|
-
proto.
|
|
3264
|
-
return proto.
|
|
3314
|
+
proto.ItemGoodReceipt.prototype.toObject = function(opt_includeInstance) {
|
|
3315
|
+
return proto.ItemGoodReceipt.toObject(opt_includeInstance, this);
|
|
3265
3316
|
};
|
|
3266
3317
|
|
|
3267
3318
|
|
|
@@ -3270,22 +3321,21 @@ proto.GetInvoiceDetailRes.prototype.toObject = function(opt_includeInstance) {
|
|
|
3270
3321
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3271
3322
|
* the JSPB instance for transitional soy proto support:
|
|
3272
3323
|
* http://goto/soy-param-migration
|
|
3273
|
-
* @param {!proto.
|
|
3324
|
+
* @param {!proto.ItemGoodReceipt} msg The msg instance to transform.
|
|
3274
3325
|
* @return {!Object}
|
|
3275
3326
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3276
3327
|
*/
|
|
3277
|
-
proto.
|
|
3328
|
+
proto.ItemGoodReceipt.toObject = function(includeInstance, msg) {
|
|
3278
3329
|
var f, obj = {
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
proto.GetInvoiceItemPreload.toObject, includeInstance)
|
|
3330
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3331
|
+
purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3332
|
+
purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3333
|
+
goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3334
|
+
description: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3335
|
+
detailDescription: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3336
|
+
quantity: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3337
|
+
purchaseOrderQuantity: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3338
|
+
unitOfMeasure: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
3289
3339
|
};
|
|
3290
3340
|
|
|
3291
3341
|
if (includeInstance) {
|
|
@@ -3299,23 +3349,23 @@ transactionBuilderPurchaseOrderItemsList: jspb.Message.toObjectList(msg.getTrans
|
|
|
3299
3349
|
/**
|
|
3300
3350
|
* Deserializes binary data (in protobuf wire format).
|
|
3301
3351
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3302
|
-
* @return {!proto.
|
|
3352
|
+
* @return {!proto.ItemGoodReceipt}
|
|
3303
3353
|
*/
|
|
3304
|
-
proto.
|
|
3354
|
+
proto.ItemGoodReceipt.deserializeBinary = function(bytes) {
|
|
3305
3355
|
var reader = new jspb.BinaryReader(bytes);
|
|
3306
|
-
var msg = new proto.
|
|
3307
|
-
return proto.
|
|
3356
|
+
var msg = new proto.ItemGoodReceipt;
|
|
3357
|
+
return proto.ItemGoodReceipt.deserializeBinaryFromReader(msg, reader);
|
|
3308
3358
|
};
|
|
3309
3359
|
|
|
3310
3360
|
|
|
3311
3361
|
/**
|
|
3312
3362
|
* Deserializes binary data (in protobuf wire format) from the
|
|
3313
3363
|
* given reader into the given message object.
|
|
3314
|
-
* @param {!proto.
|
|
3364
|
+
* @param {!proto.ItemGoodReceipt} msg The message object to deserialize into.
|
|
3315
3365
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3316
|
-
* @return {!proto.
|
|
3366
|
+
* @return {!proto.ItemGoodReceipt}
|
|
3317
3367
|
*/
|
|
3318
|
-
proto.
|
|
3368
|
+
proto.ItemGoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
|
|
3319
3369
|
while (reader.nextField()) {
|
|
3320
3370
|
if (reader.isEndGroup()) {
|
|
3321
3371
|
break;
|
|
@@ -3323,29 +3373,40 @@ proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3323
3373
|
var field = reader.getFieldNumber();
|
|
3324
3374
|
switch (field) {
|
|
3325
3375
|
case 1:
|
|
3326
|
-
var value =
|
|
3327
|
-
|
|
3328
|
-
msg.addTransactionBuilder(value);
|
|
3376
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3377
|
+
msg.setReferencesId(value);
|
|
3329
3378
|
break;
|
|
3330
3379
|
case 2:
|
|
3331
|
-
var value =
|
|
3332
|
-
|
|
3333
|
-
msg.addTransactionBuilderItems(value);
|
|
3380
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3381
|
+
msg.setPurchaseOrderNumber(value);
|
|
3334
3382
|
break;
|
|
3335
3383
|
case 3:
|
|
3336
|
-
var value =
|
|
3337
|
-
|
|
3338
|
-
msg.addInvoiceReferences(value);
|
|
3384
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3385
|
+
msg.setPurchaseOrderReferencesId(value);
|
|
3339
3386
|
break;
|
|
3340
3387
|
case 4:
|
|
3341
|
-
var value =
|
|
3342
|
-
|
|
3343
|
-
msg.addTransactionBuilderGoodsReceiptItems(value);
|
|
3388
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3389
|
+
msg.setGoodReceiptNumber(value);
|
|
3344
3390
|
break;
|
|
3345
3391
|
case 5:
|
|
3346
|
-
var value =
|
|
3347
|
-
|
|
3348
|
-
|
|
3392
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3393
|
+
msg.setDescription(value);
|
|
3394
|
+
break;
|
|
3395
|
+
case 6:
|
|
3396
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3397
|
+
msg.setDetailDescription(value);
|
|
3398
|
+
break;
|
|
3399
|
+
case 7:
|
|
3400
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3401
|
+
msg.setQuantity(value);
|
|
3402
|
+
break;
|
|
3403
|
+
case 8:
|
|
3404
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3405
|
+
msg.setPurchaseOrderQuantity(value);
|
|
3406
|
+
break;
|
|
3407
|
+
case 9:
|
|
3408
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3409
|
+
msg.setUnitOfMeasure(value);
|
|
3349
3410
|
break;
|
|
3350
3411
|
default:
|
|
3351
3412
|
reader.skipField();
|
|
@@ -3360,9 +3421,9 @@ proto.GetInvoiceDetailRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3360
3421
|
* Serializes the message to binary data (in protobuf wire format).
|
|
3361
3422
|
* @return {!Uint8Array}
|
|
3362
3423
|
*/
|
|
3363
|
-
proto.
|
|
3424
|
+
proto.ItemGoodReceipt.prototype.serializeBinary = function() {
|
|
3364
3425
|
var writer = new jspb.BinaryWriter();
|
|
3365
|
-
proto.
|
|
3426
|
+
proto.ItemGoodReceipt.serializeBinaryToWriter(this, writer);
|
|
3366
3427
|
return writer.getResultBuffer();
|
|
3367
3428
|
};
|
|
3368
3429
|
|
|
@@ -3370,242 +3431,237 @@ proto.GetInvoiceDetailRes.prototype.serializeBinary = function() {
|
|
|
3370
3431
|
/**
|
|
3371
3432
|
* Serializes the given message to binary data (in protobuf wire
|
|
3372
3433
|
* format), writing to the given BinaryWriter.
|
|
3373
|
-
* @param {!proto.
|
|
3434
|
+
* @param {!proto.ItemGoodReceipt} message
|
|
3374
3435
|
* @param {!jspb.BinaryWriter} writer
|
|
3375
3436
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3376
3437
|
*/
|
|
3377
|
-
proto.
|
|
3438
|
+
proto.ItemGoodReceipt.serializeBinaryToWriter = function(message, writer) {
|
|
3378
3439
|
var f = undefined;
|
|
3379
|
-
f = message.
|
|
3440
|
+
f = message.getReferencesId();
|
|
3380
3441
|
if (f.length > 0) {
|
|
3381
|
-
writer.
|
|
3442
|
+
writer.writeString(
|
|
3382
3443
|
1,
|
|
3383
|
-
f
|
|
3384
|
-
prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail.serializeBinaryToWriter
|
|
3444
|
+
f
|
|
3385
3445
|
);
|
|
3386
3446
|
}
|
|
3387
|
-
f = message.
|
|
3447
|
+
f = message.getPurchaseOrderNumber();
|
|
3388
3448
|
if (f.length > 0) {
|
|
3389
|
-
writer.
|
|
3449
|
+
writer.writeString(
|
|
3390
3450
|
2,
|
|
3391
|
-
f
|
|
3392
|
-
proto.GetInvoiceItemPreload.serializeBinaryToWriter
|
|
3451
|
+
f
|
|
3393
3452
|
);
|
|
3394
3453
|
}
|
|
3395
|
-
f = message.
|
|
3454
|
+
f = message.getPurchaseOrderReferencesId();
|
|
3396
3455
|
if (f.length > 0) {
|
|
3397
|
-
writer.
|
|
3456
|
+
writer.writeString(
|
|
3398
3457
|
3,
|
|
3399
|
-
f
|
|
3400
|
-
proto.Invoice.serializeBinaryToWriter
|
|
3458
|
+
f
|
|
3401
3459
|
);
|
|
3402
3460
|
}
|
|
3403
|
-
f = message.
|
|
3461
|
+
f = message.getGoodReceiptNumber();
|
|
3404
3462
|
if (f.length > 0) {
|
|
3405
|
-
writer.
|
|
3463
|
+
writer.writeString(
|
|
3406
3464
|
4,
|
|
3407
|
-
f
|
|
3408
|
-
proto.GetInvoiceItemPreload.serializeBinaryToWriter
|
|
3465
|
+
f
|
|
3409
3466
|
);
|
|
3410
3467
|
}
|
|
3411
|
-
f = message.
|
|
3468
|
+
f = message.getDescription();
|
|
3412
3469
|
if (f.length > 0) {
|
|
3413
|
-
writer.
|
|
3470
|
+
writer.writeString(
|
|
3414
3471
|
5,
|
|
3415
|
-
f
|
|
3416
|
-
|
|
3472
|
+
f
|
|
3473
|
+
);
|
|
3474
|
+
}
|
|
3475
|
+
f = message.getDetailDescription();
|
|
3476
|
+
if (f.length > 0) {
|
|
3477
|
+
writer.writeString(
|
|
3478
|
+
6,
|
|
3479
|
+
f
|
|
3480
|
+
);
|
|
3481
|
+
}
|
|
3482
|
+
f = message.getQuantity();
|
|
3483
|
+
if (f.length > 0) {
|
|
3484
|
+
writer.writeString(
|
|
3485
|
+
7,
|
|
3486
|
+
f
|
|
3487
|
+
);
|
|
3488
|
+
}
|
|
3489
|
+
f = message.getPurchaseOrderQuantity();
|
|
3490
|
+
if (f.length > 0) {
|
|
3491
|
+
writer.writeString(
|
|
3492
|
+
8,
|
|
3493
|
+
f
|
|
3494
|
+
);
|
|
3495
|
+
}
|
|
3496
|
+
f = message.getUnitOfMeasure();
|
|
3497
|
+
if (f.length > 0) {
|
|
3498
|
+
writer.writeString(
|
|
3499
|
+
9,
|
|
3500
|
+
f
|
|
3417
3501
|
);
|
|
3418
3502
|
}
|
|
3419
3503
|
};
|
|
3420
3504
|
|
|
3421
3505
|
|
|
3422
3506
|
/**
|
|
3423
|
-
*
|
|
3424
|
-
* @return {
|
|
3507
|
+
* optional string references_id = 1;
|
|
3508
|
+
* @return {string}
|
|
3425
3509
|
*/
|
|
3426
|
-
proto.
|
|
3427
|
-
return /** @type{
|
|
3428
|
-
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_transaction_builder_transaction_builder_pb.TransactionBuilderFieldsDetail, 1));
|
|
3429
|
-
};
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
/**
|
|
3433
|
-
* @param {!Array<!proto.TransactionBuilderFieldsDetail>} value
|
|
3434
|
-
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
3435
|
-
*/
|
|
3436
|
-
proto.GetInvoiceDetailRes.prototype.setTransactionBuilderList = function(value) {
|
|
3437
|
-
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3510
|
+
proto.ItemGoodReceipt.prototype.getReferencesId = function() {
|
|
3511
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
3438
3512
|
};
|
|
3439
3513
|
|
|
3440
3514
|
|
|
3441
3515
|
/**
|
|
3442
|
-
* @param {
|
|
3443
|
-
* @
|
|
3444
|
-
* @return {!proto.TransactionBuilderFieldsDetail}
|
|
3516
|
+
* @param {string} value
|
|
3517
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3445
3518
|
*/
|
|
3446
|
-
proto.
|
|
3447
|
-
return jspb.Message.
|
|
3519
|
+
proto.ItemGoodReceipt.prototype.setReferencesId = function(value) {
|
|
3520
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3448
3521
|
};
|
|
3449
3522
|
|
|
3450
3523
|
|
|
3451
3524
|
/**
|
|
3452
|
-
*
|
|
3453
|
-
* @return {
|
|
3525
|
+
* optional string purchase_order_number = 2;
|
|
3526
|
+
* @return {string}
|
|
3454
3527
|
*/
|
|
3455
|
-
proto.
|
|
3456
|
-
return
|
|
3528
|
+
proto.ItemGoodReceipt.prototype.getPurchaseOrderNumber = function() {
|
|
3529
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
3457
3530
|
};
|
|
3458
3531
|
|
|
3459
3532
|
|
|
3460
3533
|
/**
|
|
3461
|
-
*
|
|
3462
|
-
* @return {!
|
|
3534
|
+
* @param {string} value
|
|
3535
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3463
3536
|
*/
|
|
3464
|
-
proto.
|
|
3465
|
-
return
|
|
3466
|
-
jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 2));
|
|
3467
|
-
};
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
/**
|
|
3471
|
-
* @param {!Array<!proto.GetInvoiceItemPreload>} value
|
|
3472
|
-
* @return {!proto.GetInvoiceDetailRes} returns this
|
|
3473
|
-
*/
|
|
3474
|
-
proto.GetInvoiceDetailRes.prototype.setTransactionBuilderItemsList = function(value) {
|
|
3475
|
-
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
3537
|
+
proto.ItemGoodReceipt.prototype.setPurchaseOrderNumber = function(value) {
|
|
3538
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3476
3539
|
};
|
|
3477
3540
|
|
|
3478
3541
|
|
|
3479
3542
|
/**
|
|
3480
|
-
*
|
|
3481
|
-
* @
|
|
3482
|
-
* @return {!proto.GetInvoiceItemPreload}
|
|
3543
|
+
* optional string purchase_order_references_id = 3;
|
|
3544
|
+
* @return {string}
|
|
3483
3545
|
*/
|
|
3484
|
-
proto.
|
|
3485
|
-
return jspb.Message.
|
|
3546
|
+
proto.ItemGoodReceipt.prototype.getPurchaseOrderReferencesId = function() {
|
|
3547
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
3486
3548
|
};
|
|
3487
3549
|
|
|
3488
3550
|
|
|
3489
3551
|
/**
|
|
3490
|
-
*
|
|
3491
|
-
* @return {!proto.
|
|
3552
|
+
* @param {string} value
|
|
3553
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3492
3554
|
*/
|
|
3493
|
-
proto.
|
|
3494
|
-
return
|
|
3555
|
+
proto.ItemGoodReceipt.prototype.setPurchaseOrderReferencesId = function(value) {
|
|
3556
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3495
3557
|
};
|
|
3496
3558
|
|
|
3497
3559
|
|
|
3498
3560
|
/**
|
|
3499
|
-
*
|
|
3500
|
-
* @return {
|
|
3561
|
+
* optional string good_receipt_number = 4;
|
|
3562
|
+
* @return {string}
|
|
3501
3563
|
*/
|
|
3502
|
-
proto.
|
|
3503
|
-
return /** @type{
|
|
3504
|
-
jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 3));
|
|
3564
|
+
proto.ItemGoodReceipt.prototype.getGoodReceiptNumber = function() {
|
|
3565
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
3505
3566
|
};
|
|
3506
3567
|
|
|
3507
3568
|
|
|
3508
3569
|
/**
|
|
3509
|
-
* @param {
|
|
3510
|
-
* @return {!proto.
|
|
3511
|
-
*/
|
|
3512
|
-
proto.
|
|
3513
|
-
return jspb.Message.
|
|
3570
|
+
* @param {string} value
|
|
3571
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3572
|
+
*/
|
|
3573
|
+
proto.ItemGoodReceipt.prototype.setGoodReceiptNumber = function(value) {
|
|
3574
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3514
3575
|
};
|
|
3515
3576
|
|
|
3516
3577
|
|
|
3517
3578
|
/**
|
|
3518
|
-
*
|
|
3519
|
-
* @
|
|
3520
|
-
* @return {!proto.Invoice}
|
|
3579
|
+
* optional string description = 5;
|
|
3580
|
+
* @return {string}
|
|
3521
3581
|
*/
|
|
3522
|
-
proto.
|
|
3523
|
-
return jspb.Message.
|
|
3582
|
+
proto.ItemGoodReceipt.prototype.getDescription = function() {
|
|
3583
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
3524
3584
|
};
|
|
3525
3585
|
|
|
3526
3586
|
|
|
3527
3587
|
/**
|
|
3528
|
-
*
|
|
3529
|
-
* @return {!proto.
|
|
3588
|
+
* @param {string} value
|
|
3589
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3530
3590
|
*/
|
|
3531
|
-
proto.
|
|
3532
|
-
return
|
|
3591
|
+
proto.ItemGoodReceipt.prototype.setDescription = function(value) {
|
|
3592
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3533
3593
|
};
|
|
3534
3594
|
|
|
3535
3595
|
|
|
3536
3596
|
/**
|
|
3537
|
-
*
|
|
3538
|
-
* @return {
|
|
3597
|
+
* optional string detail_description = 6;
|
|
3598
|
+
* @return {string}
|
|
3539
3599
|
*/
|
|
3540
|
-
proto.
|
|
3541
|
-
return /** @type{
|
|
3542
|
-
jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 4));
|
|
3600
|
+
proto.ItemGoodReceipt.prototype.getDetailDescription = function() {
|
|
3601
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
3543
3602
|
};
|
|
3544
3603
|
|
|
3545
3604
|
|
|
3546
3605
|
/**
|
|
3547
|
-
* @param {
|
|
3548
|
-
* @return {!proto.
|
|
3549
|
-
*/
|
|
3550
|
-
proto.
|
|
3551
|
-
return jspb.Message.
|
|
3606
|
+
* @param {string} value
|
|
3607
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3608
|
+
*/
|
|
3609
|
+
proto.ItemGoodReceipt.prototype.setDetailDescription = function(value) {
|
|
3610
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
3552
3611
|
};
|
|
3553
3612
|
|
|
3554
3613
|
|
|
3555
3614
|
/**
|
|
3556
|
-
*
|
|
3557
|
-
* @
|
|
3558
|
-
* @return {!proto.GetInvoiceItemPreload}
|
|
3615
|
+
* optional string quantity = 7;
|
|
3616
|
+
* @return {string}
|
|
3559
3617
|
*/
|
|
3560
|
-
proto.
|
|
3561
|
-
return jspb.Message.
|
|
3618
|
+
proto.ItemGoodReceipt.prototype.getQuantity = function() {
|
|
3619
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
3562
3620
|
};
|
|
3563
3621
|
|
|
3564
3622
|
|
|
3565
3623
|
/**
|
|
3566
|
-
*
|
|
3567
|
-
* @return {!proto.
|
|
3624
|
+
* @param {string} value
|
|
3625
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3568
3626
|
*/
|
|
3569
|
-
proto.
|
|
3570
|
-
return
|
|
3627
|
+
proto.ItemGoodReceipt.prototype.setQuantity = function(value) {
|
|
3628
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3571
3629
|
};
|
|
3572
3630
|
|
|
3573
3631
|
|
|
3574
3632
|
/**
|
|
3575
|
-
*
|
|
3576
|
-
* @return {
|
|
3633
|
+
* optional string purchase_order_quantity = 8;
|
|
3634
|
+
* @return {string}
|
|
3577
3635
|
*/
|
|
3578
|
-
proto.
|
|
3579
|
-
return /** @type{
|
|
3580
|
-
jspb.Message.getRepeatedWrapperField(this, proto.GetInvoiceItemPreload, 5));
|
|
3636
|
+
proto.ItemGoodReceipt.prototype.getPurchaseOrderQuantity = function() {
|
|
3637
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
3581
3638
|
};
|
|
3582
3639
|
|
|
3583
3640
|
|
|
3584
3641
|
/**
|
|
3585
|
-
* @param {
|
|
3586
|
-
* @return {!proto.
|
|
3587
|
-
*/
|
|
3588
|
-
proto.
|
|
3589
|
-
return jspb.Message.
|
|
3642
|
+
* @param {string} value
|
|
3643
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3644
|
+
*/
|
|
3645
|
+
proto.ItemGoodReceipt.prototype.setPurchaseOrderQuantity = function(value) {
|
|
3646
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
3590
3647
|
};
|
|
3591
3648
|
|
|
3592
3649
|
|
|
3593
3650
|
/**
|
|
3594
|
-
*
|
|
3595
|
-
* @
|
|
3596
|
-
* @return {!proto.GetInvoiceItemPreload}
|
|
3651
|
+
* optional string unit_of_measure = 9;
|
|
3652
|
+
* @return {string}
|
|
3597
3653
|
*/
|
|
3598
|
-
proto.
|
|
3599
|
-
return jspb.Message.
|
|
3654
|
+
proto.ItemGoodReceipt.prototype.getUnitOfMeasure = function() {
|
|
3655
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
3600
3656
|
};
|
|
3601
3657
|
|
|
3602
3658
|
|
|
3603
3659
|
/**
|
|
3604
|
-
*
|
|
3605
|
-
* @return {!proto.
|
|
3660
|
+
* @param {string} value
|
|
3661
|
+
* @return {!proto.ItemGoodReceipt} returns this
|
|
3606
3662
|
*/
|
|
3607
|
-
proto.
|
|
3608
|
-
return
|
|
3663
|
+
proto.ItemGoodReceipt.prototype.setUnitOfMeasure = function(value) {
|
|
3664
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
3609
3665
|
};
|
|
3610
3666
|
|
|
3611
3667
|
|
|
@@ -4224,7 +4280,7 @@ proto.GetListInvoiceRes.prototype.toObject = function(opt_includeInstance) {
|
|
|
4224
4280
|
proto.GetListInvoiceRes.toObject = function(includeInstance, msg) {
|
|
4225
4281
|
var f, obj = {
|
|
4226
4282
|
invoicesList: jspb.Message.toObjectList(msg.getInvoicesList(),
|
|
4227
|
-
|
|
4283
|
+
prisca_v1_purchase_order_purchase_order_pb.Invoice.toObject, includeInstance),
|
|
4228
4284
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
4229
4285
|
};
|
|
4230
4286
|
|
|
@@ -4263,8 +4319,8 @@ proto.GetListInvoiceRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
4263
4319
|
var field = reader.getFieldNumber();
|
|
4264
4320
|
switch (field) {
|
|
4265
4321
|
case 1:
|
|
4266
|
-
var value = new
|
|
4267
|
-
reader.readMessage(value,
|
|
4322
|
+
var value = new prisca_v1_purchase_order_purchase_order_pb.Invoice;
|
|
4323
|
+
reader.readMessage(value,prisca_v1_purchase_order_purchase_order_pb.Invoice.deserializeBinaryFromReader);
|
|
4268
4324
|
msg.addInvoices(value);
|
|
4269
4325
|
break;
|
|
4270
4326
|
case 2:
|
|
@@ -4306,7 +4362,7 @@ proto.GetListInvoiceRes.serializeBinaryToWriter = function(message, writer) {
|
|
|
4306
4362
|
writer.writeRepeatedMessage(
|
|
4307
4363
|
1,
|
|
4308
4364
|
f,
|
|
4309
|
-
|
|
4365
|
+
prisca_v1_purchase_order_purchase_order_pb.Invoice.serializeBinaryToWriter
|
|
4310
4366
|
);
|
|
4311
4367
|
}
|
|
4312
4368
|
f = message.getMeta();
|
|
@@ -4326,7 +4382,7 @@ proto.GetListInvoiceRes.serializeBinaryToWriter = function(message, writer) {
|
|
|
4326
4382
|
*/
|
|
4327
4383
|
proto.GetListInvoiceRes.prototype.getInvoicesList = function() {
|
|
4328
4384
|
return /** @type{!Array<!proto.Invoice>} */ (
|
|
4329
|
-
jspb.Message.getRepeatedWrapperField(this,
|
|
4385
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_purchase_order_purchase_order_pb.Invoice, 1));
|
|
4330
4386
|
};
|
|
4331
4387
|
|
|
4332
4388
|
|