@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.
@@ -33,6 +33,8 @@ var prisca_v1_vendor_domain_vendor_domain_pb = require('../../../prisca/v1/vendo
33
33
  goog.object.extend(proto, prisca_v1_vendor_domain_vendor_domain_pb);
34
34
  var prisca_v1_core_employee_employee_pb = require('../../../prisca/v1/core/employee/employee_pb.js');
35
35
  goog.object.extend(proto, prisca_v1_core_employee_employee_pb);
36
+ var prisca_v1_core_users_users_pb = require('../../../prisca/v1/core/users/users_pb.js');
37
+ goog.object.extend(proto, prisca_v1_core_users_users_pb);
36
38
  var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
37
39
  goog.object.extend(proto, prisca_v1_core_company_company_pb);
38
40
  goog.exportSymbol('proto.BasePurchaseOrderRequest', null, global);
@@ -40,6 +42,7 @@ goog.exportSymbol('proto.CreatePurchaseOrderRequest', null, global);
40
42
  goog.exportSymbol('proto.CreatePurchaseOrderResponse', null, global);
41
43
  goog.exportSymbol('proto.DeletePurchaseOrderRequest', null, global);
42
44
  goog.exportSymbol('proto.DeletePurchaseOrderResponse', null, global);
45
+ goog.exportSymbol('proto.DeliveryOrder', null, global);
43
46
  goog.exportSymbol('proto.GetListPurchaseOrderRequest', null, global);
44
47
  goog.exportSymbol('proto.GetListPurchaseOrderResponse', null, global);
45
48
  goog.exportSymbol('proto.GetPurchaseOrderByIdRequest', null, global);
@@ -47,10 +50,75 @@ goog.exportSymbol('proto.GetPurchaseOrderByIdResponse', null, global);
47
50
  goog.exportSymbol('proto.GetPurchaseOrderDetailResponse', null, global);
48
51
  goog.exportSymbol('proto.GetPurchaseOrderItemDetailPreload', null, global);
49
52
  goog.exportSymbol('proto.GetPurchaseOrderItemPreload', null, global);
53
+ goog.exportSymbol('proto.GoodReceipt', null, global);
54
+ goog.exportSymbol('proto.Invoice', null, global);
50
55
  goog.exportSymbol('proto.PurchaseOrder', null, global);
51
56
  goog.exportSymbol('proto.UpdatePurchaseOrderRequest', null, global);
52
57
  goog.exportSymbol('proto.UpdatePurchaseOrderResponse', null, global);
53
58
  goog.exportSymbol('proto.UpdatePurchaseOrderStatusRequest', null, global);
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.DeliveryOrder = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeliveryOrder.repeatedFields_, null);
71
+ };
72
+ goog.inherits(proto.DeliveryOrder, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.DeliveryOrder.displayName = 'proto.DeliveryOrder';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.GoodReceipt = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GoodReceipt.repeatedFields_, null);
92
+ };
93
+ goog.inherits(proto.GoodReceipt, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.GoodReceipt.displayName = 'proto.GoodReceipt';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.Invoice = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Invoice.repeatedFields_, null);
113
+ };
114
+ goog.inherits(proto.Invoice, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.Invoice.displayName = 'proto.Invoice';
121
+ }
54
122
  /**
55
123
  * Generated by JsPbCodeGenerator.
56
124
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -367,33 +435,3784 @@ if (goog.DEBUG && !COMPILED) {
367
435
  proto.GetListPurchaseOrderResponse.displayName = 'proto.GetListPurchaseOrderResponse';
368
436
  }
369
437
  /**
370
- * Generated by JsPbCodeGenerator.
371
- * @param {Array=} opt_data Optional initial data array, typically from a
372
- * server response, or constructed directly in Javascript. The array is used
373
- * in place and becomes part of the constructed object. It is not cloned.
374
- * If no data is provided, the constructed object will be empty, but still
375
- * valid.
376
- * @extends {jspb.Message}
377
- * @constructor
438
+ * Generated by JsPbCodeGenerator.
439
+ * @param {Array=} opt_data Optional initial data array, typically from a
440
+ * server response, or constructed directly in Javascript. The array is used
441
+ * in place and becomes part of the constructed object. It is not cloned.
442
+ * If no data is provided, the constructed object will be empty, but still
443
+ * valid.
444
+ * @extends {jspb.Message}
445
+ * @constructor
446
+ */
447
+ proto.DeletePurchaseOrderResponse = function(opt_data) {
448
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
449
+ };
450
+ goog.inherits(proto.DeletePurchaseOrderResponse, jspb.Message);
451
+ if (goog.DEBUG && !COMPILED) {
452
+ /**
453
+ * @public
454
+ * @override
455
+ */
456
+ proto.DeletePurchaseOrderResponse.displayName = 'proto.DeletePurchaseOrderResponse';
457
+ }
458
+
459
+ /**
460
+ * List of repeated fields within this message type.
461
+ * @private {!Array<number>}
462
+ * @const
463
+ */
464
+ proto.DeliveryOrder.repeatedFields_ = [22,26];
465
+
466
+
467
+
468
+ if (jspb.Message.GENERATE_TO_OBJECT) {
469
+ /**
470
+ * Creates an object representation of this proto.
471
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
472
+ * Optional fields that are not set will be set to undefined.
473
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
474
+ * For the list of reserved names please see:
475
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
476
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
477
+ * JSPB instance for transitional soy proto support:
478
+ * http://goto/soy-param-migration
479
+ * @return {!Object}
480
+ */
481
+ proto.DeliveryOrder.prototype.toObject = function(opt_includeInstance) {
482
+ return proto.DeliveryOrder.toObject(opt_includeInstance, this);
483
+ };
484
+
485
+
486
+ /**
487
+ * Static version of the {@see toObject} method.
488
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
489
+ * the JSPB instance for transitional soy proto support:
490
+ * http://goto/soy-param-migration
491
+ * @param {!proto.DeliveryOrder} msg The msg instance to transform.
492
+ * @return {!Object}
493
+ * @suppress {unusedLocalVariables} f is only used for nested messages
494
+ */
495
+ proto.DeliveryOrder.toObject = function(includeInstance, msg) {
496
+ var f, obj = {
497
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
498
+ department: jspb.Message.getFieldWithDefault(msg, 2, ""),
499
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
500
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
501
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
502
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
503
+ shippingAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
504
+ shippingDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
505
+ remarks: jspb.Message.getFieldWithDefault(msg, 9, ""),
506
+ referencesId: jspb.Message.getFieldWithDefault(msg, 10, ""),
507
+ status: jspb.Message.getFieldWithDefault(msg, 11, ""),
508
+ createdAt: jspb.Message.getFieldWithDefault(msg, 12, ""),
509
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 13, ""),
510
+ createdBy: jspb.Message.getFieldWithDefault(msg, 14, ""),
511
+ updatedBy: jspb.Message.getFieldWithDefault(msg, 15, ""),
512
+ groupReferences: jspb.Message.getFieldWithDefault(msg, 16, ""),
513
+ isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 17, false),
514
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 18, ""),
515
+ salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 19, ""),
516
+ deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 20, ""),
517
+ fileIds: jspb.Message.getFieldWithDefault(msg, 21, ""),
518
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
519
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
520
+ purchaseOrder: (f = msg.getPurchaseOrder()) && proto.PurchaseOrder.toObject(includeInstance, f),
521
+ companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompany.toObject(includeInstance, f),
522
+ vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
523
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
524
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
525
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
526
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
527
+ };
528
+
529
+ if (includeInstance) {
530
+ obj.$jspbMessageInstance = msg;
531
+ }
532
+ return obj;
533
+ };
534
+ }
535
+
536
+
537
+ /**
538
+ * Deserializes binary data (in protobuf wire format).
539
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
540
+ * @return {!proto.DeliveryOrder}
541
+ */
542
+ proto.DeliveryOrder.deserializeBinary = function(bytes) {
543
+ var reader = new jspb.BinaryReader(bytes);
544
+ var msg = new proto.DeliveryOrder;
545
+ return proto.DeliveryOrder.deserializeBinaryFromReader(msg, reader);
546
+ };
547
+
548
+
549
+ /**
550
+ * Deserializes binary data (in protobuf wire format) from the
551
+ * given reader into the given message object.
552
+ * @param {!proto.DeliveryOrder} msg The message object to deserialize into.
553
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
554
+ * @return {!proto.DeliveryOrder}
555
+ */
556
+ proto.DeliveryOrder.deserializeBinaryFromReader = function(msg, reader) {
557
+ while (reader.nextField()) {
558
+ if (reader.isEndGroup()) {
559
+ break;
560
+ }
561
+ var field = reader.getFieldNumber();
562
+ switch (field) {
563
+ case 1:
564
+ var value = /** @type {number} */ (reader.readInt64());
565
+ msg.setId(value);
566
+ break;
567
+ case 2:
568
+ var value = /** @type {string} */ (reader.readString());
569
+ msg.setDepartment(value);
570
+ break;
571
+ case 3:
572
+ var value = /** @type {string} */ (reader.readString());
573
+ msg.setTitle(value);
574
+ break;
575
+ case 4:
576
+ var value = /** @type {string} */ (reader.readString());
577
+ msg.setPurchaseOrderReferencesId(value);
578
+ break;
579
+ case 5:
580
+ var value = /** @type {string} */ (reader.readString());
581
+ msg.setVendorReferencesId(value);
582
+ break;
583
+ case 6:
584
+ var value = /** @type {string} */ (reader.readString());
585
+ msg.setCompaniesReferencesId(value);
586
+ break;
587
+ case 7:
588
+ var value = /** @type {string} */ (reader.readString());
589
+ msg.setShippingAddress(value);
590
+ break;
591
+ case 8:
592
+ var value = /** @type {string} */ (reader.readString());
593
+ msg.setShippingDate(value);
594
+ break;
595
+ case 9:
596
+ var value = /** @type {string} */ (reader.readString());
597
+ msg.setRemarks(value);
598
+ break;
599
+ case 10:
600
+ var value = /** @type {string} */ (reader.readString());
601
+ msg.setReferencesId(value);
602
+ break;
603
+ case 11:
604
+ var value = /** @type {string} */ (reader.readString());
605
+ msg.setStatus(value);
606
+ break;
607
+ case 12:
608
+ var value = /** @type {string} */ (reader.readString());
609
+ msg.setCreatedAt(value);
610
+ break;
611
+ case 13:
612
+ var value = /** @type {string} */ (reader.readString());
613
+ msg.setUpdatedAt(value);
614
+ break;
615
+ case 14:
616
+ var value = /** @type {string} */ (reader.readString());
617
+ msg.setCreatedBy(value);
618
+ break;
619
+ case 15:
620
+ var value = /** @type {string} */ (reader.readString());
621
+ msg.setUpdatedBy(value);
622
+ break;
623
+ case 16:
624
+ var value = /** @type {string} */ (reader.readString());
625
+ msg.setGroupReferences(value);
626
+ break;
627
+ case 17:
628
+ var value = /** @type {boolean} */ (reader.readBool());
629
+ msg.setIsExpired(value);
630
+ break;
631
+ case 18:
632
+ var value = /** @type {string} */ (reader.readString());
633
+ msg.setPurchaseOrderNumber(value);
634
+ break;
635
+ case 19:
636
+ var value = /** @type {string} */ (reader.readString());
637
+ msg.setSalesOrderNumber(value);
638
+ break;
639
+ case 20:
640
+ var value = /** @type {string} */ (reader.readString());
641
+ msg.setDeliveryOrderNumber(value);
642
+ break;
643
+ case 21:
644
+ var value = /** @type {string} */ (reader.readString());
645
+ msg.setFileIds(value);
646
+ break;
647
+ case 22:
648
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
649
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
650
+ msg.addFiles(value);
651
+ break;
652
+ case 23:
653
+ var value = new proto.PurchaseOrder;
654
+ reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
655
+ msg.setPurchaseOrder(value);
656
+ break;
657
+ case 24:
658
+ var value = new prisca_v1_core_company_company_pb.BaseCompany;
659
+ reader.readMessage(value,prisca_v1_core_company_company_pb.BaseCompany.deserializeBinaryFromReader);
660
+ msg.setCompanies(value);
661
+ break;
662
+ case 25:
663
+ var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
664
+ reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
665
+ msg.setVendor(value);
666
+ break;
667
+ case 26:
668
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
669
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
670
+ msg.addItemTransactions(value);
671
+ break;
672
+ case 27:
673
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
674
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
675
+ msg.setCreatedByEmployee(value);
676
+ break;
677
+ case 28:
678
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
679
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
680
+ msg.setUpdatedByEmployee(value);
681
+ break;
682
+ default:
683
+ reader.skipField();
684
+ break;
685
+ }
686
+ }
687
+ return msg;
688
+ };
689
+
690
+
691
+ /**
692
+ * Serializes the message to binary data (in protobuf wire format).
693
+ * @return {!Uint8Array}
694
+ */
695
+ proto.DeliveryOrder.prototype.serializeBinary = function() {
696
+ var writer = new jspb.BinaryWriter();
697
+ proto.DeliveryOrder.serializeBinaryToWriter(this, writer);
698
+ return writer.getResultBuffer();
699
+ };
700
+
701
+
702
+ /**
703
+ * Serializes the given message to binary data (in protobuf wire
704
+ * format), writing to the given BinaryWriter.
705
+ * @param {!proto.DeliveryOrder} message
706
+ * @param {!jspb.BinaryWriter} writer
707
+ * @suppress {unusedLocalVariables} f is only used for nested messages
708
+ */
709
+ proto.DeliveryOrder.serializeBinaryToWriter = function(message, writer) {
710
+ var f = undefined;
711
+ f = message.getId();
712
+ if (f !== 0) {
713
+ writer.writeInt64(
714
+ 1,
715
+ f
716
+ );
717
+ }
718
+ f = message.getDepartment();
719
+ if (f.length > 0) {
720
+ writer.writeString(
721
+ 2,
722
+ f
723
+ );
724
+ }
725
+ f = message.getTitle();
726
+ if (f.length > 0) {
727
+ writer.writeString(
728
+ 3,
729
+ f
730
+ );
731
+ }
732
+ f = message.getPurchaseOrderReferencesId();
733
+ if (f.length > 0) {
734
+ writer.writeString(
735
+ 4,
736
+ f
737
+ );
738
+ }
739
+ f = message.getVendorReferencesId();
740
+ if (f.length > 0) {
741
+ writer.writeString(
742
+ 5,
743
+ f
744
+ );
745
+ }
746
+ f = message.getCompaniesReferencesId();
747
+ if (f.length > 0) {
748
+ writer.writeString(
749
+ 6,
750
+ f
751
+ );
752
+ }
753
+ f = message.getShippingAddress();
754
+ if (f.length > 0) {
755
+ writer.writeString(
756
+ 7,
757
+ f
758
+ );
759
+ }
760
+ f = message.getShippingDate();
761
+ if (f.length > 0) {
762
+ writer.writeString(
763
+ 8,
764
+ f
765
+ );
766
+ }
767
+ f = message.getRemarks();
768
+ if (f.length > 0) {
769
+ writer.writeString(
770
+ 9,
771
+ f
772
+ );
773
+ }
774
+ f = message.getReferencesId();
775
+ if (f.length > 0) {
776
+ writer.writeString(
777
+ 10,
778
+ f
779
+ );
780
+ }
781
+ f = message.getStatus();
782
+ if (f.length > 0) {
783
+ writer.writeString(
784
+ 11,
785
+ f
786
+ );
787
+ }
788
+ f = message.getCreatedAt();
789
+ if (f.length > 0) {
790
+ writer.writeString(
791
+ 12,
792
+ f
793
+ );
794
+ }
795
+ f = message.getUpdatedAt();
796
+ if (f.length > 0) {
797
+ writer.writeString(
798
+ 13,
799
+ f
800
+ );
801
+ }
802
+ f = message.getCreatedBy();
803
+ if (f.length > 0) {
804
+ writer.writeString(
805
+ 14,
806
+ f
807
+ );
808
+ }
809
+ f = message.getUpdatedBy();
810
+ if (f.length > 0) {
811
+ writer.writeString(
812
+ 15,
813
+ f
814
+ );
815
+ }
816
+ f = message.getGroupReferences();
817
+ if (f.length > 0) {
818
+ writer.writeString(
819
+ 16,
820
+ f
821
+ );
822
+ }
823
+ f = message.getIsExpired();
824
+ if (f) {
825
+ writer.writeBool(
826
+ 17,
827
+ f
828
+ );
829
+ }
830
+ f = message.getPurchaseOrderNumber();
831
+ if (f.length > 0) {
832
+ writer.writeString(
833
+ 18,
834
+ f
835
+ );
836
+ }
837
+ f = message.getSalesOrderNumber();
838
+ if (f.length > 0) {
839
+ writer.writeString(
840
+ 19,
841
+ f
842
+ );
843
+ }
844
+ f = message.getDeliveryOrderNumber();
845
+ if (f.length > 0) {
846
+ writer.writeString(
847
+ 20,
848
+ f
849
+ );
850
+ }
851
+ f = message.getFileIds();
852
+ if (f.length > 0) {
853
+ writer.writeString(
854
+ 21,
855
+ f
856
+ );
857
+ }
858
+ f = message.getFilesList();
859
+ if (f.length > 0) {
860
+ writer.writeRepeatedMessage(
861
+ 22,
862
+ f,
863
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
864
+ );
865
+ }
866
+ f = message.getPurchaseOrder();
867
+ if (f != null) {
868
+ writer.writeMessage(
869
+ 23,
870
+ f,
871
+ proto.PurchaseOrder.serializeBinaryToWriter
872
+ );
873
+ }
874
+ f = message.getCompanies();
875
+ if (f != null) {
876
+ writer.writeMessage(
877
+ 24,
878
+ f,
879
+ prisca_v1_core_company_company_pb.BaseCompany.serializeBinaryToWriter
880
+ );
881
+ }
882
+ f = message.getVendor();
883
+ if (f != null) {
884
+ writer.writeMessage(
885
+ 25,
886
+ f,
887
+ prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
888
+ );
889
+ }
890
+ f = message.getItemTransactionsList();
891
+ if (f.length > 0) {
892
+ writer.writeRepeatedMessage(
893
+ 26,
894
+ f,
895
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
896
+ );
897
+ }
898
+ f = message.getCreatedByEmployee();
899
+ if (f != null) {
900
+ writer.writeMessage(
901
+ 27,
902
+ f,
903
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
904
+ );
905
+ }
906
+ f = message.getUpdatedByEmployee();
907
+ if (f != null) {
908
+ writer.writeMessage(
909
+ 28,
910
+ f,
911
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
912
+ );
913
+ }
914
+ };
915
+
916
+
917
+ /**
918
+ * optional int64 id = 1;
919
+ * @return {number}
920
+ */
921
+ proto.DeliveryOrder.prototype.getId = function() {
922
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
923
+ };
924
+
925
+
926
+ /**
927
+ * @param {number} value
928
+ * @return {!proto.DeliveryOrder} returns this
929
+ */
930
+ proto.DeliveryOrder.prototype.setId = function(value) {
931
+ return jspb.Message.setProto3IntField(this, 1, value);
932
+ };
933
+
934
+
935
+ /**
936
+ * optional string department = 2;
937
+ * @return {string}
938
+ */
939
+ proto.DeliveryOrder.prototype.getDepartment = function() {
940
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
941
+ };
942
+
943
+
944
+ /**
945
+ * @param {string} value
946
+ * @return {!proto.DeliveryOrder} returns this
947
+ */
948
+ proto.DeliveryOrder.prototype.setDepartment = function(value) {
949
+ return jspb.Message.setProto3StringField(this, 2, value);
950
+ };
951
+
952
+
953
+ /**
954
+ * optional string title = 3;
955
+ * @return {string}
956
+ */
957
+ proto.DeliveryOrder.prototype.getTitle = function() {
958
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
959
+ };
960
+
961
+
962
+ /**
963
+ * @param {string} value
964
+ * @return {!proto.DeliveryOrder} returns this
965
+ */
966
+ proto.DeliveryOrder.prototype.setTitle = function(value) {
967
+ return jspb.Message.setProto3StringField(this, 3, value);
968
+ };
969
+
970
+
971
+ /**
972
+ * optional string purchase_order_references_id = 4;
973
+ * @return {string}
974
+ */
975
+ proto.DeliveryOrder.prototype.getPurchaseOrderReferencesId = function() {
976
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
977
+ };
978
+
979
+
980
+ /**
981
+ * @param {string} value
982
+ * @return {!proto.DeliveryOrder} returns this
983
+ */
984
+ proto.DeliveryOrder.prototype.setPurchaseOrderReferencesId = function(value) {
985
+ return jspb.Message.setProto3StringField(this, 4, value);
986
+ };
987
+
988
+
989
+ /**
990
+ * optional string vendor_references_id = 5;
991
+ * @return {string}
992
+ */
993
+ proto.DeliveryOrder.prototype.getVendorReferencesId = function() {
994
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
995
+ };
996
+
997
+
998
+ /**
999
+ * @param {string} value
1000
+ * @return {!proto.DeliveryOrder} returns this
1001
+ */
1002
+ proto.DeliveryOrder.prototype.setVendorReferencesId = function(value) {
1003
+ return jspb.Message.setProto3StringField(this, 5, value);
1004
+ };
1005
+
1006
+
1007
+ /**
1008
+ * optional string companies_references_id = 6;
1009
+ * @return {string}
1010
+ */
1011
+ proto.DeliveryOrder.prototype.getCompaniesReferencesId = function() {
1012
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1013
+ };
1014
+
1015
+
1016
+ /**
1017
+ * @param {string} value
1018
+ * @return {!proto.DeliveryOrder} returns this
1019
+ */
1020
+ proto.DeliveryOrder.prototype.setCompaniesReferencesId = function(value) {
1021
+ return jspb.Message.setProto3StringField(this, 6, value);
1022
+ };
1023
+
1024
+
1025
+ /**
1026
+ * optional string shipping_address = 7;
1027
+ * @return {string}
1028
+ */
1029
+ proto.DeliveryOrder.prototype.getShippingAddress = function() {
1030
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1031
+ };
1032
+
1033
+
1034
+ /**
1035
+ * @param {string} value
1036
+ * @return {!proto.DeliveryOrder} returns this
1037
+ */
1038
+ proto.DeliveryOrder.prototype.setShippingAddress = function(value) {
1039
+ return jspb.Message.setProto3StringField(this, 7, value);
1040
+ };
1041
+
1042
+
1043
+ /**
1044
+ * optional string shipping_date = 8;
1045
+ * @return {string}
1046
+ */
1047
+ proto.DeliveryOrder.prototype.getShippingDate = function() {
1048
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1049
+ };
1050
+
1051
+
1052
+ /**
1053
+ * @param {string} value
1054
+ * @return {!proto.DeliveryOrder} returns this
1055
+ */
1056
+ proto.DeliveryOrder.prototype.setShippingDate = function(value) {
1057
+ return jspb.Message.setProto3StringField(this, 8, value);
1058
+ };
1059
+
1060
+
1061
+ /**
1062
+ * optional string remarks = 9;
1063
+ * @return {string}
1064
+ */
1065
+ proto.DeliveryOrder.prototype.getRemarks = function() {
1066
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1067
+ };
1068
+
1069
+
1070
+ /**
1071
+ * @param {string} value
1072
+ * @return {!proto.DeliveryOrder} returns this
1073
+ */
1074
+ proto.DeliveryOrder.prototype.setRemarks = function(value) {
1075
+ return jspb.Message.setProto3StringField(this, 9, value);
1076
+ };
1077
+
1078
+
1079
+ /**
1080
+ * optional string references_id = 10;
1081
+ * @return {string}
1082
+ */
1083
+ proto.DeliveryOrder.prototype.getReferencesId = function() {
1084
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * @param {string} value
1090
+ * @return {!proto.DeliveryOrder} returns this
1091
+ */
1092
+ proto.DeliveryOrder.prototype.setReferencesId = function(value) {
1093
+ return jspb.Message.setProto3StringField(this, 10, value);
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * optional string status = 11;
1099
+ * @return {string}
1100
+ */
1101
+ proto.DeliveryOrder.prototype.getStatus = function() {
1102
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * @param {string} value
1108
+ * @return {!proto.DeliveryOrder} returns this
1109
+ */
1110
+ proto.DeliveryOrder.prototype.setStatus = function(value) {
1111
+ return jspb.Message.setProto3StringField(this, 11, value);
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * optional string created_at = 12;
1117
+ * @return {string}
1118
+ */
1119
+ proto.DeliveryOrder.prototype.getCreatedAt = function() {
1120
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * @param {string} value
1126
+ * @return {!proto.DeliveryOrder} returns this
1127
+ */
1128
+ proto.DeliveryOrder.prototype.setCreatedAt = function(value) {
1129
+ return jspb.Message.setProto3StringField(this, 12, value);
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * optional string updated_at = 13;
1135
+ * @return {string}
1136
+ */
1137
+ proto.DeliveryOrder.prototype.getUpdatedAt = function() {
1138
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * @param {string} value
1144
+ * @return {!proto.DeliveryOrder} returns this
1145
+ */
1146
+ proto.DeliveryOrder.prototype.setUpdatedAt = function(value) {
1147
+ return jspb.Message.setProto3StringField(this, 13, value);
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * optional string created_by = 14;
1153
+ * @return {string}
1154
+ */
1155
+ proto.DeliveryOrder.prototype.getCreatedBy = function() {
1156
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * @param {string} value
1162
+ * @return {!proto.DeliveryOrder} returns this
1163
+ */
1164
+ proto.DeliveryOrder.prototype.setCreatedBy = function(value) {
1165
+ return jspb.Message.setProto3StringField(this, 14, value);
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * optional string updated_by = 15;
1171
+ * @return {string}
1172
+ */
1173
+ proto.DeliveryOrder.prototype.getUpdatedBy = function() {
1174
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * @param {string} value
1180
+ * @return {!proto.DeliveryOrder} returns this
1181
+ */
1182
+ proto.DeliveryOrder.prototype.setUpdatedBy = function(value) {
1183
+ return jspb.Message.setProto3StringField(this, 15, value);
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * optional string group_references = 16;
1189
+ * @return {string}
1190
+ */
1191
+ proto.DeliveryOrder.prototype.getGroupReferences = function() {
1192
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * @param {string} value
1198
+ * @return {!proto.DeliveryOrder} returns this
1199
+ */
1200
+ proto.DeliveryOrder.prototype.setGroupReferences = function(value) {
1201
+ return jspb.Message.setProto3StringField(this, 16, value);
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * optional bool is_expired = 17;
1207
+ * @return {boolean}
1208
+ */
1209
+ proto.DeliveryOrder.prototype.getIsExpired = function() {
1210
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
1211
+ };
1212
+
1213
+
1214
+ /**
1215
+ * @param {boolean} value
1216
+ * @return {!proto.DeliveryOrder} returns this
1217
+ */
1218
+ proto.DeliveryOrder.prototype.setIsExpired = function(value) {
1219
+ return jspb.Message.setProto3BooleanField(this, 17, value);
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * optional string purchase_order_number = 18;
1225
+ * @return {string}
1226
+ */
1227
+ proto.DeliveryOrder.prototype.getPurchaseOrderNumber = function() {
1228
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1229
+ };
1230
+
1231
+
1232
+ /**
1233
+ * @param {string} value
1234
+ * @return {!proto.DeliveryOrder} returns this
1235
+ */
1236
+ proto.DeliveryOrder.prototype.setPurchaseOrderNumber = function(value) {
1237
+ return jspb.Message.setProto3StringField(this, 18, value);
1238
+ };
1239
+
1240
+
1241
+ /**
1242
+ * optional string sales_order_number = 19;
1243
+ * @return {string}
1244
+ */
1245
+ proto.DeliveryOrder.prototype.getSalesOrderNumber = function() {
1246
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
1247
+ };
1248
+
1249
+
1250
+ /**
1251
+ * @param {string} value
1252
+ * @return {!proto.DeliveryOrder} returns this
1253
+ */
1254
+ proto.DeliveryOrder.prototype.setSalesOrderNumber = function(value) {
1255
+ return jspb.Message.setProto3StringField(this, 19, value);
1256
+ };
1257
+
1258
+
1259
+ /**
1260
+ * optional string delivery_order_number = 20;
1261
+ * @return {string}
1262
+ */
1263
+ proto.DeliveryOrder.prototype.getDeliveryOrderNumber = function() {
1264
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
1265
+ };
1266
+
1267
+
1268
+ /**
1269
+ * @param {string} value
1270
+ * @return {!proto.DeliveryOrder} returns this
1271
+ */
1272
+ proto.DeliveryOrder.prototype.setDeliveryOrderNumber = function(value) {
1273
+ return jspb.Message.setProto3StringField(this, 20, value);
1274
+ };
1275
+
1276
+
1277
+ /**
1278
+ * optional string file_ids = 21;
1279
+ * @return {string}
1280
+ */
1281
+ proto.DeliveryOrder.prototype.getFileIds = function() {
1282
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
1283
+ };
1284
+
1285
+
1286
+ /**
1287
+ * @param {string} value
1288
+ * @return {!proto.DeliveryOrder} returns this
1289
+ */
1290
+ proto.DeliveryOrder.prototype.setFileIds = function(value) {
1291
+ return jspb.Message.setProto3StringField(this, 21, value);
1292
+ };
1293
+
1294
+
1295
+ /**
1296
+ * repeated FileUploadReferencesReq files = 22;
1297
+ * @return {!Array<!proto.FileUploadReferencesReq>}
1298
+ */
1299
+ proto.DeliveryOrder.prototype.getFilesList = function() {
1300
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
1301
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 22));
1302
+ };
1303
+
1304
+
1305
+ /**
1306
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
1307
+ * @return {!proto.DeliveryOrder} returns this
1308
+ */
1309
+ proto.DeliveryOrder.prototype.setFilesList = function(value) {
1310
+ return jspb.Message.setRepeatedWrapperField(this, 22, value);
1311
+ };
1312
+
1313
+
1314
+ /**
1315
+ * @param {!proto.FileUploadReferencesReq=} opt_value
1316
+ * @param {number=} opt_index
1317
+ * @return {!proto.FileUploadReferencesReq}
1318
+ */
1319
+ proto.DeliveryOrder.prototype.addFiles = function(opt_value, opt_index) {
1320
+ return jspb.Message.addToRepeatedWrapperField(this, 22, opt_value, proto.FileUploadReferencesReq, opt_index);
1321
+ };
1322
+
1323
+
1324
+ /**
1325
+ * Clears the list making it empty but non-null.
1326
+ * @return {!proto.DeliveryOrder} returns this
1327
+ */
1328
+ proto.DeliveryOrder.prototype.clearFilesList = function() {
1329
+ return this.setFilesList([]);
1330
+ };
1331
+
1332
+
1333
+ /**
1334
+ * optional PurchaseOrder purchase_order = 23;
1335
+ * @return {?proto.PurchaseOrder}
1336
+ */
1337
+ proto.DeliveryOrder.prototype.getPurchaseOrder = function() {
1338
+ return /** @type{?proto.PurchaseOrder} */ (
1339
+ jspb.Message.getWrapperField(this, proto.PurchaseOrder, 23));
1340
+ };
1341
+
1342
+
1343
+ /**
1344
+ * @param {?proto.PurchaseOrder|undefined} value
1345
+ * @return {!proto.DeliveryOrder} returns this
1346
+ */
1347
+ proto.DeliveryOrder.prototype.setPurchaseOrder = function(value) {
1348
+ return jspb.Message.setWrapperField(this, 23, value);
1349
+ };
1350
+
1351
+
1352
+ /**
1353
+ * Clears the message field making it undefined.
1354
+ * @return {!proto.DeliveryOrder} returns this
1355
+ */
1356
+ proto.DeliveryOrder.prototype.clearPurchaseOrder = function() {
1357
+ return this.setPurchaseOrder(undefined);
1358
+ };
1359
+
1360
+
1361
+ /**
1362
+ * Returns whether this field is set.
1363
+ * @return {boolean}
1364
+ */
1365
+ proto.DeliveryOrder.prototype.hasPurchaseOrder = function() {
1366
+ return jspb.Message.getField(this, 23) != null;
1367
+ };
1368
+
1369
+
1370
+ /**
1371
+ * optional BaseCompany companies = 24;
1372
+ * @return {?proto.BaseCompany}
1373
+ */
1374
+ proto.DeliveryOrder.prototype.getCompanies = function() {
1375
+ return /** @type{?proto.BaseCompany} */ (
1376
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.BaseCompany, 24));
1377
+ };
1378
+
1379
+
1380
+ /**
1381
+ * @param {?proto.BaseCompany|undefined} value
1382
+ * @return {!proto.DeliveryOrder} returns this
1383
+ */
1384
+ proto.DeliveryOrder.prototype.setCompanies = function(value) {
1385
+ return jspb.Message.setWrapperField(this, 24, value);
1386
+ };
1387
+
1388
+
1389
+ /**
1390
+ * Clears the message field making it undefined.
1391
+ * @return {!proto.DeliveryOrder} returns this
1392
+ */
1393
+ proto.DeliveryOrder.prototype.clearCompanies = function() {
1394
+ return this.setCompanies(undefined);
1395
+ };
1396
+
1397
+
1398
+ /**
1399
+ * Returns whether this field is set.
1400
+ * @return {boolean}
1401
+ */
1402
+ proto.DeliveryOrder.prototype.hasCompanies = function() {
1403
+ return jspb.Message.getField(this, 24) != null;
1404
+ };
1405
+
1406
+
1407
+ /**
1408
+ * optional Vendor vendor = 25;
1409
+ * @return {?proto.Vendor}
1410
+ */
1411
+ proto.DeliveryOrder.prototype.getVendor = function() {
1412
+ return /** @type{?proto.Vendor} */ (
1413
+ jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 25));
1414
+ };
1415
+
1416
+
1417
+ /**
1418
+ * @param {?proto.Vendor|undefined} value
1419
+ * @return {!proto.DeliveryOrder} returns this
1420
+ */
1421
+ proto.DeliveryOrder.prototype.setVendor = function(value) {
1422
+ return jspb.Message.setWrapperField(this, 25, value);
1423
+ };
1424
+
1425
+
1426
+ /**
1427
+ * Clears the message field making it undefined.
1428
+ * @return {!proto.DeliveryOrder} returns this
1429
+ */
1430
+ proto.DeliveryOrder.prototype.clearVendor = function() {
1431
+ return this.setVendor(undefined);
1432
+ };
1433
+
1434
+
1435
+ /**
1436
+ * Returns whether this field is set.
1437
+ * @return {boolean}
1438
+ */
1439
+ proto.DeliveryOrder.prototype.hasVendor = function() {
1440
+ return jspb.Message.getField(this, 25) != null;
1441
+ };
1442
+
1443
+
1444
+ /**
1445
+ * repeated ItemTransaction item_transactions = 26;
1446
+ * @return {!Array<!proto.ItemTransaction>}
1447
+ */
1448
+ proto.DeliveryOrder.prototype.getItemTransactionsList = function() {
1449
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
1450
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 26));
1451
+ };
1452
+
1453
+
1454
+ /**
1455
+ * @param {!Array<!proto.ItemTransaction>} value
1456
+ * @return {!proto.DeliveryOrder} returns this
1457
+ */
1458
+ proto.DeliveryOrder.prototype.setItemTransactionsList = function(value) {
1459
+ return jspb.Message.setRepeatedWrapperField(this, 26, value);
1460
+ };
1461
+
1462
+
1463
+ /**
1464
+ * @param {!proto.ItemTransaction=} opt_value
1465
+ * @param {number=} opt_index
1466
+ * @return {!proto.ItemTransaction}
1467
+ */
1468
+ proto.DeliveryOrder.prototype.addItemTransactions = function(opt_value, opt_index) {
1469
+ return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.ItemTransaction, opt_index);
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * Clears the list making it empty but non-null.
1475
+ * @return {!proto.DeliveryOrder} returns this
1476
+ */
1477
+ proto.DeliveryOrder.prototype.clearItemTransactionsList = function() {
1478
+ return this.setItemTransactionsList([]);
1479
+ };
1480
+
1481
+
1482
+ /**
1483
+ * optional Employee created_by_employee = 27;
1484
+ * @return {?proto.Employee}
1485
+ */
1486
+ proto.DeliveryOrder.prototype.getCreatedByEmployee = function() {
1487
+ return /** @type{?proto.Employee} */ (
1488
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 27));
1489
+ };
1490
+
1491
+
1492
+ /**
1493
+ * @param {?proto.Employee|undefined} value
1494
+ * @return {!proto.DeliveryOrder} returns this
1495
+ */
1496
+ proto.DeliveryOrder.prototype.setCreatedByEmployee = function(value) {
1497
+ return jspb.Message.setWrapperField(this, 27, value);
1498
+ };
1499
+
1500
+
1501
+ /**
1502
+ * Clears the message field making it undefined.
1503
+ * @return {!proto.DeliveryOrder} returns this
1504
+ */
1505
+ proto.DeliveryOrder.prototype.clearCreatedByEmployee = function() {
1506
+ return this.setCreatedByEmployee(undefined);
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * Returns whether this field is set.
1512
+ * @return {boolean}
1513
+ */
1514
+ proto.DeliveryOrder.prototype.hasCreatedByEmployee = function() {
1515
+ return jspb.Message.getField(this, 27) != null;
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * optional Employee updated_by_employee = 28;
1521
+ * @return {?proto.Employee}
1522
+ */
1523
+ proto.DeliveryOrder.prototype.getUpdatedByEmployee = function() {
1524
+ return /** @type{?proto.Employee} */ (
1525
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 28));
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * @param {?proto.Employee|undefined} value
1531
+ * @return {!proto.DeliveryOrder} returns this
1532
+ */
1533
+ proto.DeliveryOrder.prototype.setUpdatedByEmployee = function(value) {
1534
+ return jspb.Message.setWrapperField(this, 28, value);
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * Clears the message field making it undefined.
1540
+ * @return {!proto.DeliveryOrder} returns this
1541
+ */
1542
+ proto.DeliveryOrder.prototype.clearUpdatedByEmployee = function() {
1543
+ return this.setUpdatedByEmployee(undefined);
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * Returns whether this field is set.
1549
+ * @return {boolean}
1550
+ */
1551
+ proto.DeliveryOrder.prototype.hasUpdatedByEmployee = function() {
1552
+ return jspb.Message.getField(this, 28) != null;
1553
+ };
1554
+
1555
+
1556
+
1557
+ /**
1558
+ * List of repeated fields within this message type.
1559
+ * @private {!Array<number>}
1560
+ * @const
1561
+ */
1562
+ proto.GoodReceipt.repeatedFields_ = [21,24];
1563
+
1564
+
1565
+
1566
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1567
+ /**
1568
+ * Creates an object representation of this proto.
1569
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1570
+ * Optional fields that are not set will be set to undefined.
1571
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1572
+ * For the list of reserved names please see:
1573
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1574
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1575
+ * JSPB instance for transitional soy proto support:
1576
+ * http://goto/soy-param-migration
1577
+ * @return {!Object}
1578
+ */
1579
+ proto.GoodReceipt.prototype.toObject = function(opt_includeInstance) {
1580
+ return proto.GoodReceipt.toObject(opt_includeInstance, this);
1581
+ };
1582
+
1583
+
1584
+ /**
1585
+ * Static version of the {@see toObject} method.
1586
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1587
+ * the JSPB instance for transitional soy proto support:
1588
+ * http://goto/soy-param-migration
1589
+ * @param {!proto.GoodReceipt} msg The msg instance to transform.
1590
+ * @return {!Object}
1591
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1592
+ */
1593
+ proto.GoodReceipt.toObject = function(includeInstance, msg) {
1594
+ var f, obj = {
1595
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
1596
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1597
+ goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
1598
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
1599
+ title: jspb.Message.getFieldWithDefault(msg, 5, ""),
1600
+ purchaseOrderDate: jspb.Message.getFieldWithDefault(msg, 6, ""),
1601
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
1602
+ postingDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
1603
+ date: jspb.Message.getFieldWithDefault(msg, 9, ""),
1604
+ remarks: jspb.Message.getFieldWithDefault(msg, 10, ""),
1605
+ referencesId: jspb.Message.getFieldWithDefault(msg, 11, ""),
1606
+ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
1607
+ createdAt: jspb.Message.getFieldWithDefault(msg, 13, ""),
1608
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
1609
+ createdBy: jspb.Message.getFieldWithDefault(msg, 15, ""),
1610
+ updateBy: jspb.Message.getFieldWithDefault(msg, 16, ""),
1611
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 17, ""),
1612
+ groupReferences: jspb.Message.getFieldWithDefault(msg, 18, ""),
1613
+ isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 19, false),
1614
+ fileIds: jspb.Message.getFieldWithDefault(msg, 20, ""),
1615
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
1616
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
1617
+ vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
1618
+ purchaseOrder: (f = msg.getPurchaseOrder()) && proto.PurchaseOrder.toObject(includeInstance, f),
1619
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
1620
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
1621
+ createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
1622
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
1623
+ plant: jspb.Message.getFieldWithDefault(msg, 27, ""),
1624
+ deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 28, ""),
1625
+ deliveryOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 29, ""),
1626
+ deliveryOrderDate: jspb.Message.getFieldWithDefault(msg, 30, ""),
1627
+ deliveryOrder: (f = msg.getDeliveryOrder()) && proto.DeliveryOrder.toObject(includeInstance, f)
1628
+ };
1629
+
1630
+ if (includeInstance) {
1631
+ obj.$jspbMessageInstance = msg;
1632
+ }
1633
+ return obj;
1634
+ };
1635
+ }
1636
+
1637
+
1638
+ /**
1639
+ * Deserializes binary data (in protobuf wire format).
1640
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1641
+ * @return {!proto.GoodReceipt}
1642
+ */
1643
+ proto.GoodReceipt.deserializeBinary = function(bytes) {
1644
+ var reader = new jspb.BinaryReader(bytes);
1645
+ var msg = new proto.GoodReceipt;
1646
+ return proto.GoodReceipt.deserializeBinaryFromReader(msg, reader);
1647
+ };
1648
+
1649
+
1650
+ /**
1651
+ * Deserializes binary data (in protobuf wire format) from the
1652
+ * given reader into the given message object.
1653
+ * @param {!proto.GoodReceipt} msg The message object to deserialize into.
1654
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1655
+ * @return {!proto.GoodReceipt}
1656
+ */
1657
+ proto.GoodReceipt.deserializeBinaryFromReader = function(msg, reader) {
1658
+ while (reader.nextField()) {
1659
+ if (reader.isEndGroup()) {
1660
+ break;
1661
+ }
1662
+ var field = reader.getFieldNumber();
1663
+ switch (field) {
1664
+ case 1:
1665
+ var value = /** @type {number} */ (reader.readInt64());
1666
+ msg.setId(value);
1667
+ break;
1668
+ case 2:
1669
+ var value = /** @type {string} */ (reader.readString());
1670
+ msg.setPurchaseOrderReferencesId(value);
1671
+ break;
1672
+ case 3:
1673
+ var value = /** @type {string} */ (reader.readString());
1674
+ msg.setGoodReceiptNumber(value);
1675
+ break;
1676
+ case 4:
1677
+ var value = /** @type {string} */ (reader.readString());
1678
+ msg.setPurchaseOrderNumber(value);
1679
+ break;
1680
+ case 5:
1681
+ var value = /** @type {string} */ (reader.readString());
1682
+ msg.setTitle(value);
1683
+ break;
1684
+ case 6:
1685
+ var value = /** @type {string} */ (reader.readString());
1686
+ msg.setPurchaseOrderDate(value);
1687
+ break;
1688
+ case 7:
1689
+ var value = /** @type {string} */ (reader.readString());
1690
+ msg.setVendorReferencesId(value);
1691
+ break;
1692
+ case 8:
1693
+ var value = /** @type {string} */ (reader.readString());
1694
+ msg.setPostingDate(value);
1695
+ break;
1696
+ case 9:
1697
+ var value = /** @type {string} */ (reader.readString());
1698
+ msg.setDate(value);
1699
+ break;
1700
+ case 10:
1701
+ var value = /** @type {string} */ (reader.readString());
1702
+ msg.setRemarks(value);
1703
+ break;
1704
+ case 11:
1705
+ var value = /** @type {string} */ (reader.readString());
1706
+ msg.setReferencesId(value);
1707
+ break;
1708
+ case 12:
1709
+ var value = /** @type {string} */ (reader.readString());
1710
+ msg.setStatus(value);
1711
+ break;
1712
+ case 13:
1713
+ var value = /** @type {string} */ (reader.readString());
1714
+ msg.setCreatedAt(value);
1715
+ break;
1716
+ case 14:
1717
+ var value = /** @type {string} */ (reader.readString());
1718
+ msg.setUpdatedAt(value);
1719
+ break;
1720
+ case 15:
1721
+ var value = /** @type {string} */ (reader.readString());
1722
+ msg.setCreatedBy(value);
1723
+ break;
1724
+ case 16:
1725
+ var value = /** @type {string} */ (reader.readString());
1726
+ msg.setUpdateBy(value);
1727
+ break;
1728
+ case 17:
1729
+ var value = /** @type {string} */ (reader.readString());
1730
+ msg.setCompaniesReferencesId(value);
1731
+ break;
1732
+ case 18:
1733
+ var value = /** @type {string} */ (reader.readString());
1734
+ msg.setGroupReferences(value);
1735
+ break;
1736
+ case 19:
1737
+ var value = /** @type {boolean} */ (reader.readBool());
1738
+ msg.setIsExpired(value);
1739
+ break;
1740
+ case 20:
1741
+ var value = /** @type {string} */ (reader.readString());
1742
+ msg.setFileIds(value);
1743
+ break;
1744
+ case 21:
1745
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
1746
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
1747
+ msg.addFiles(value);
1748
+ break;
1749
+ case 22:
1750
+ var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
1751
+ reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
1752
+ msg.setVendor(value);
1753
+ break;
1754
+ case 23:
1755
+ var value = new proto.PurchaseOrder;
1756
+ reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
1757
+ msg.setPurchaseOrder(value);
1758
+ break;
1759
+ case 24:
1760
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
1761
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
1762
+ msg.addItemTransactions(value);
1763
+ break;
1764
+ case 25:
1765
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
1766
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
1767
+ msg.setCreatedByEmployee(value);
1768
+ break;
1769
+ case 26:
1770
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
1771
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
1772
+ msg.setUpdatedByEmployee(value);
1773
+ break;
1774
+ case 27:
1775
+ var value = /** @type {string} */ (reader.readString());
1776
+ msg.setPlant(value);
1777
+ break;
1778
+ case 28:
1779
+ var value = /** @type {string} */ (reader.readString());
1780
+ msg.setDeliveryOrderNumber(value);
1781
+ break;
1782
+ case 29:
1783
+ var value = /** @type {string} */ (reader.readString());
1784
+ msg.setDeliveryOrderReferencesId(value);
1785
+ break;
1786
+ case 30:
1787
+ var value = /** @type {string} */ (reader.readString());
1788
+ msg.setDeliveryOrderDate(value);
1789
+ break;
1790
+ case 31:
1791
+ var value = new proto.DeliveryOrder;
1792
+ reader.readMessage(value,proto.DeliveryOrder.deserializeBinaryFromReader);
1793
+ msg.setDeliveryOrder(value);
1794
+ break;
1795
+ default:
1796
+ reader.skipField();
1797
+ break;
1798
+ }
1799
+ }
1800
+ return msg;
1801
+ };
1802
+
1803
+
1804
+ /**
1805
+ * Serializes the message to binary data (in protobuf wire format).
1806
+ * @return {!Uint8Array}
1807
+ */
1808
+ proto.GoodReceipt.prototype.serializeBinary = function() {
1809
+ var writer = new jspb.BinaryWriter();
1810
+ proto.GoodReceipt.serializeBinaryToWriter(this, writer);
1811
+ return writer.getResultBuffer();
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * Serializes the given message to binary data (in protobuf wire
1817
+ * format), writing to the given BinaryWriter.
1818
+ * @param {!proto.GoodReceipt} message
1819
+ * @param {!jspb.BinaryWriter} writer
1820
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1821
+ */
1822
+ proto.GoodReceipt.serializeBinaryToWriter = function(message, writer) {
1823
+ var f = undefined;
1824
+ f = message.getId();
1825
+ if (f !== 0) {
1826
+ writer.writeInt64(
1827
+ 1,
1828
+ f
1829
+ );
1830
+ }
1831
+ f = message.getPurchaseOrderReferencesId();
1832
+ if (f.length > 0) {
1833
+ writer.writeString(
1834
+ 2,
1835
+ f
1836
+ );
1837
+ }
1838
+ f = message.getGoodReceiptNumber();
1839
+ if (f.length > 0) {
1840
+ writer.writeString(
1841
+ 3,
1842
+ f
1843
+ );
1844
+ }
1845
+ f = message.getPurchaseOrderNumber();
1846
+ if (f.length > 0) {
1847
+ writer.writeString(
1848
+ 4,
1849
+ f
1850
+ );
1851
+ }
1852
+ f = message.getTitle();
1853
+ if (f.length > 0) {
1854
+ writer.writeString(
1855
+ 5,
1856
+ f
1857
+ );
1858
+ }
1859
+ f = message.getPurchaseOrderDate();
1860
+ if (f.length > 0) {
1861
+ writer.writeString(
1862
+ 6,
1863
+ f
1864
+ );
1865
+ }
1866
+ f = message.getVendorReferencesId();
1867
+ if (f.length > 0) {
1868
+ writer.writeString(
1869
+ 7,
1870
+ f
1871
+ );
1872
+ }
1873
+ f = message.getPostingDate();
1874
+ if (f.length > 0) {
1875
+ writer.writeString(
1876
+ 8,
1877
+ f
1878
+ );
1879
+ }
1880
+ f = message.getDate();
1881
+ if (f.length > 0) {
1882
+ writer.writeString(
1883
+ 9,
1884
+ f
1885
+ );
1886
+ }
1887
+ f = message.getRemarks();
1888
+ if (f.length > 0) {
1889
+ writer.writeString(
1890
+ 10,
1891
+ f
1892
+ );
1893
+ }
1894
+ f = message.getReferencesId();
1895
+ if (f.length > 0) {
1896
+ writer.writeString(
1897
+ 11,
1898
+ f
1899
+ );
1900
+ }
1901
+ f = message.getStatus();
1902
+ if (f.length > 0) {
1903
+ writer.writeString(
1904
+ 12,
1905
+ f
1906
+ );
1907
+ }
1908
+ f = message.getCreatedAt();
1909
+ if (f.length > 0) {
1910
+ writer.writeString(
1911
+ 13,
1912
+ f
1913
+ );
1914
+ }
1915
+ f = message.getUpdatedAt();
1916
+ if (f.length > 0) {
1917
+ writer.writeString(
1918
+ 14,
1919
+ f
1920
+ );
1921
+ }
1922
+ f = message.getCreatedBy();
1923
+ if (f.length > 0) {
1924
+ writer.writeString(
1925
+ 15,
1926
+ f
1927
+ );
1928
+ }
1929
+ f = message.getUpdateBy();
1930
+ if (f.length > 0) {
1931
+ writer.writeString(
1932
+ 16,
1933
+ f
1934
+ );
1935
+ }
1936
+ f = message.getCompaniesReferencesId();
1937
+ if (f.length > 0) {
1938
+ writer.writeString(
1939
+ 17,
1940
+ f
1941
+ );
1942
+ }
1943
+ f = message.getGroupReferences();
1944
+ if (f.length > 0) {
1945
+ writer.writeString(
1946
+ 18,
1947
+ f
1948
+ );
1949
+ }
1950
+ f = message.getIsExpired();
1951
+ if (f) {
1952
+ writer.writeBool(
1953
+ 19,
1954
+ f
1955
+ );
1956
+ }
1957
+ f = message.getFileIds();
1958
+ if (f.length > 0) {
1959
+ writer.writeString(
1960
+ 20,
1961
+ f
1962
+ );
1963
+ }
1964
+ f = message.getFilesList();
1965
+ if (f.length > 0) {
1966
+ writer.writeRepeatedMessage(
1967
+ 21,
1968
+ f,
1969
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
1970
+ );
1971
+ }
1972
+ f = message.getVendor();
1973
+ if (f != null) {
1974
+ writer.writeMessage(
1975
+ 22,
1976
+ f,
1977
+ prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
1978
+ );
1979
+ }
1980
+ f = message.getPurchaseOrder();
1981
+ if (f != null) {
1982
+ writer.writeMessage(
1983
+ 23,
1984
+ f,
1985
+ proto.PurchaseOrder.serializeBinaryToWriter
1986
+ );
1987
+ }
1988
+ f = message.getItemTransactionsList();
1989
+ if (f.length > 0) {
1990
+ writer.writeRepeatedMessage(
1991
+ 24,
1992
+ f,
1993
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
1994
+ );
1995
+ }
1996
+ f = message.getCreatedByEmployee();
1997
+ if (f != null) {
1998
+ writer.writeMessage(
1999
+ 25,
2000
+ f,
2001
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
2002
+ );
2003
+ }
2004
+ f = message.getUpdatedByEmployee();
2005
+ if (f != null) {
2006
+ writer.writeMessage(
2007
+ 26,
2008
+ f,
2009
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
2010
+ );
2011
+ }
2012
+ f = message.getPlant();
2013
+ if (f.length > 0) {
2014
+ writer.writeString(
2015
+ 27,
2016
+ f
2017
+ );
2018
+ }
2019
+ f = message.getDeliveryOrderNumber();
2020
+ if (f.length > 0) {
2021
+ writer.writeString(
2022
+ 28,
2023
+ f
2024
+ );
2025
+ }
2026
+ f = message.getDeliveryOrderReferencesId();
2027
+ if (f.length > 0) {
2028
+ writer.writeString(
2029
+ 29,
2030
+ f
2031
+ );
2032
+ }
2033
+ f = message.getDeliveryOrderDate();
2034
+ if (f.length > 0) {
2035
+ writer.writeString(
2036
+ 30,
2037
+ f
2038
+ );
2039
+ }
2040
+ f = message.getDeliveryOrder();
2041
+ if (f != null) {
2042
+ writer.writeMessage(
2043
+ 31,
2044
+ f,
2045
+ proto.DeliveryOrder.serializeBinaryToWriter
2046
+ );
2047
+ }
2048
+ };
2049
+
2050
+
2051
+ /**
2052
+ * optional int64 id = 1;
2053
+ * @return {number}
2054
+ */
2055
+ proto.GoodReceipt.prototype.getId = function() {
2056
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2057
+ };
2058
+
2059
+
2060
+ /**
2061
+ * @param {number} value
2062
+ * @return {!proto.GoodReceipt} returns this
2063
+ */
2064
+ proto.GoodReceipt.prototype.setId = function(value) {
2065
+ return jspb.Message.setProto3IntField(this, 1, value);
2066
+ };
2067
+
2068
+
2069
+ /**
2070
+ * optional string purchase_order_references_id = 2;
2071
+ * @return {string}
2072
+ */
2073
+ proto.GoodReceipt.prototype.getPurchaseOrderReferencesId = function() {
2074
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2075
+ };
2076
+
2077
+
2078
+ /**
2079
+ * @param {string} value
2080
+ * @return {!proto.GoodReceipt} returns this
2081
+ */
2082
+ proto.GoodReceipt.prototype.setPurchaseOrderReferencesId = function(value) {
2083
+ return jspb.Message.setProto3StringField(this, 2, value);
2084
+ };
2085
+
2086
+
2087
+ /**
2088
+ * optional string good_receipt_number = 3;
2089
+ * @return {string}
2090
+ */
2091
+ proto.GoodReceipt.prototype.getGoodReceiptNumber = function() {
2092
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * @param {string} value
2098
+ * @return {!proto.GoodReceipt} returns this
2099
+ */
2100
+ proto.GoodReceipt.prototype.setGoodReceiptNumber = function(value) {
2101
+ return jspb.Message.setProto3StringField(this, 3, value);
2102
+ };
2103
+
2104
+
2105
+ /**
2106
+ * optional string purchase_order_number = 4;
2107
+ * @return {string}
2108
+ */
2109
+ proto.GoodReceipt.prototype.getPurchaseOrderNumber = function() {
2110
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2111
+ };
2112
+
2113
+
2114
+ /**
2115
+ * @param {string} value
2116
+ * @return {!proto.GoodReceipt} returns this
2117
+ */
2118
+ proto.GoodReceipt.prototype.setPurchaseOrderNumber = function(value) {
2119
+ return jspb.Message.setProto3StringField(this, 4, value);
2120
+ };
2121
+
2122
+
2123
+ /**
2124
+ * optional string title = 5;
2125
+ * @return {string}
2126
+ */
2127
+ proto.GoodReceipt.prototype.getTitle = function() {
2128
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2129
+ };
2130
+
2131
+
2132
+ /**
2133
+ * @param {string} value
2134
+ * @return {!proto.GoodReceipt} returns this
2135
+ */
2136
+ proto.GoodReceipt.prototype.setTitle = function(value) {
2137
+ return jspb.Message.setProto3StringField(this, 5, value);
2138
+ };
2139
+
2140
+
2141
+ /**
2142
+ * optional string purchase_order_date = 6;
2143
+ * @return {string}
2144
+ */
2145
+ proto.GoodReceipt.prototype.getPurchaseOrderDate = function() {
2146
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2147
+ };
2148
+
2149
+
2150
+ /**
2151
+ * @param {string} value
2152
+ * @return {!proto.GoodReceipt} returns this
2153
+ */
2154
+ proto.GoodReceipt.prototype.setPurchaseOrderDate = function(value) {
2155
+ return jspb.Message.setProto3StringField(this, 6, value);
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * optional string vendor_references_id = 7;
2161
+ * @return {string}
2162
+ */
2163
+ proto.GoodReceipt.prototype.getVendorReferencesId = function() {
2164
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2165
+ };
2166
+
2167
+
2168
+ /**
2169
+ * @param {string} value
2170
+ * @return {!proto.GoodReceipt} returns this
2171
+ */
2172
+ proto.GoodReceipt.prototype.setVendorReferencesId = function(value) {
2173
+ return jspb.Message.setProto3StringField(this, 7, value);
2174
+ };
2175
+
2176
+
2177
+ /**
2178
+ * optional string posting_date = 8;
2179
+ * @return {string}
2180
+ */
2181
+ proto.GoodReceipt.prototype.getPostingDate = function() {
2182
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2183
+ };
2184
+
2185
+
2186
+ /**
2187
+ * @param {string} value
2188
+ * @return {!proto.GoodReceipt} returns this
2189
+ */
2190
+ proto.GoodReceipt.prototype.setPostingDate = function(value) {
2191
+ return jspb.Message.setProto3StringField(this, 8, value);
2192
+ };
2193
+
2194
+
2195
+ /**
2196
+ * optional string date = 9;
2197
+ * @return {string}
2198
+ */
2199
+ proto.GoodReceipt.prototype.getDate = function() {
2200
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
2201
+ };
2202
+
2203
+
2204
+ /**
2205
+ * @param {string} value
2206
+ * @return {!proto.GoodReceipt} returns this
2207
+ */
2208
+ proto.GoodReceipt.prototype.setDate = function(value) {
2209
+ return jspb.Message.setProto3StringField(this, 9, value);
2210
+ };
2211
+
2212
+
2213
+ /**
2214
+ * optional string remarks = 10;
2215
+ * @return {string}
2216
+ */
2217
+ proto.GoodReceipt.prototype.getRemarks = function() {
2218
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
2219
+ };
2220
+
2221
+
2222
+ /**
2223
+ * @param {string} value
2224
+ * @return {!proto.GoodReceipt} returns this
2225
+ */
2226
+ proto.GoodReceipt.prototype.setRemarks = function(value) {
2227
+ return jspb.Message.setProto3StringField(this, 10, value);
2228
+ };
2229
+
2230
+
2231
+ /**
2232
+ * optional string references_id = 11;
2233
+ * @return {string}
2234
+ */
2235
+ proto.GoodReceipt.prototype.getReferencesId = function() {
2236
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
2237
+ };
2238
+
2239
+
2240
+ /**
2241
+ * @param {string} value
2242
+ * @return {!proto.GoodReceipt} returns this
2243
+ */
2244
+ proto.GoodReceipt.prototype.setReferencesId = function(value) {
2245
+ return jspb.Message.setProto3StringField(this, 11, value);
2246
+ };
2247
+
2248
+
2249
+ /**
2250
+ * optional string status = 12;
2251
+ * @return {string}
2252
+ */
2253
+ proto.GoodReceipt.prototype.getStatus = function() {
2254
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
2255
+ };
2256
+
2257
+
2258
+ /**
2259
+ * @param {string} value
2260
+ * @return {!proto.GoodReceipt} returns this
2261
+ */
2262
+ proto.GoodReceipt.prototype.setStatus = function(value) {
2263
+ return jspb.Message.setProto3StringField(this, 12, value);
2264
+ };
2265
+
2266
+
2267
+ /**
2268
+ * optional string created_at = 13;
2269
+ * @return {string}
2270
+ */
2271
+ proto.GoodReceipt.prototype.getCreatedAt = function() {
2272
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2273
+ };
2274
+
2275
+
2276
+ /**
2277
+ * @param {string} value
2278
+ * @return {!proto.GoodReceipt} returns this
2279
+ */
2280
+ proto.GoodReceipt.prototype.setCreatedAt = function(value) {
2281
+ return jspb.Message.setProto3StringField(this, 13, value);
2282
+ };
2283
+
2284
+
2285
+ /**
2286
+ * optional string updated_at = 14;
2287
+ * @return {string}
2288
+ */
2289
+ proto.GoodReceipt.prototype.getUpdatedAt = function() {
2290
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2291
+ };
2292
+
2293
+
2294
+ /**
2295
+ * @param {string} value
2296
+ * @return {!proto.GoodReceipt} returns this
2297
+ */
2298
+ proto.GoodReceipt.prototype.setUpdatedAt = function(value) {
2299
+ return jspb.Message.setProto3StringField(this, 14, value);
2300
+ };
2301
+
2302
+
2303
+ /**
2304
+ * optional string created_by = 15;
2305
+ * @return {string}
2306
+ */
2307
+ proto.GoodReceipt.prototype.getCreatedBy = function() {
2308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2309
+ };
2310
+
2311
+
2312
+ /**
2313
+ * @param {string} value
2314
+ * @return {!proto.GoodReceipt} returns this
2315
+ */
2316
+ proto.GoodReceipt.prototype.setCreatedBy = function(value) {
2317
+ return jspb.Message.setProto3StringField(this, 15, value);
2318
+ };
2319
+
2320
+
2321
+ /**
2322
+ * optional string update_by = 16;
2323
+ * @return {string}
2324
+ */
2325
+ proto.GoodReceipt.prototype.getUpdateBy = function() {
2326
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
2327
+ };
2328
+
2329
+
2330
+ /**
2331
+ * @param {string} value
2332
+ * @return {!proto.GoodReceipt} returns this
2333
+ */
2334
+ proto.GoodReceipt.prototype.setUpdateBy = function(value) {
2335
+ return jspb.Message.setProto3StringField(this, 16, value);
2336
+ };
2337
+
2338
+
2339
+ /**
2340
+ * optional string companies_references_id = 17;
2341
+ * @return {string}
2342
+ */
2343
+ proto.GoodReceipt.prototype.getCompaniesReferencesId = function() {
2344
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
2345
+ };
2346
+
2347
+
2348
+ /**
2349
+ * @param {string} value
2350
+ * @return {!proto.GoodReceipt} returns this
2351
+ */
2352
+ proto.GoodReceipt.prototype.setCompaniesReferencesId = function(value) {
2353
+ return jspb.Message.setProto3StringField(this, 17, value);
2354
+ };
2355
+
2356
+
2357
+ /**
2358
+ * optional string group_references = 18;
2359
+ * @return {string}
2360
+ */
2361
+ proto.GoodReceipt.prototype.getGroupReferences = function() {
2362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
2363
+ };
2364
+
2365
+
2366
+ /**
2367
+ * @param {string} value
2368
+ * @return {!proto.GoodReceipt} returns this
2369
+ */
2370
+ proto.GoodReceipt.prototype.setGroupReferences = function(value) {
2371
+ return jspb.Message.setProto3StringField(this, 18, value);
2372
+ };
2373
+
2374
+
2375
+ /**
2376
+ * optional bool is_expired = 19;
2377
+ * @return {boolean}
2378
+ */
2379
+ proto.GoodReceipt.prototype.getIsExpired = function() {
2380
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 19, false));
2381
+ };
2382
+
2383
+
2384
+ /**
2385
+ * @param {boolean} value
2386
+ * @return {!proto.GoodReceipt} returns this
2387
+ */
2388
+ proto.GoodReceipt.prototype.setIsExpired = function(value) {
2389
+ return jspb.Message.setProto3BooleanField(this, 19, value);
2390
+ };
2391
+
2392
+
2393
+ /**
2394
+ * optional string file_ids = 20;
2395
+ * @return {string}
2396
+ */
2397
+ proto.GoodReceipt.prototype.getFileIds = function() {
2398
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
2399
+ };
2400
+
2401
+
2402
+ /**
2403
+ * @param {string} value
2404
+ * @return {!proto.GoodReceipt} returns this
2405
+ */
2406
+ proto.GoodReceipt.prototype.setFileIds = function(value) {
2407
+ return jspb.Message.setProto3StringField(this, 20, value);
2408
+ };
2409
+
2410
+
2411
+ /**
2412
+ * repeated FileUploadReferencesReq files = 21;
2413
+ * @return {!Array<!proto.FileUploadReferencesReq>}
2414
+ */
2415
+ proto.GoodReceipt.prototype.getFilesList = function() {
2416
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
2417
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 21));
2418
+ };
2419
+
2420
+
2421
+ /**
2422
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
2423
+ * @return {!proto.GoodReceipt} returns this
2424
+ */
2425
+ proto.GoodReceipt.prototype.setFilesList = function(value) {
2426
+ return jspb.Message.setRepeatedWrapperField(this, 21, value);
2427
+ };
2428
+
2429
+
2430
+ /**
2431
+ * @param {!proto.FileUploadReferencesReq=} opt_value
2432
+ * @param {number=} opt_index
2433
+ * @return {!proto.FileUploadReferencesReq}
2434
+ */
2435
+ proto.GoodReceipt.prototype.addFiles = function(opt_value, opt_index) {
2436
+ return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.FileUploadReferencesReq, opt_index);
2437
+ };
2438
+
2439
+
2440
+ /**
2441
+ * Clears the list making it empty but non-null.
2442
+ * @return {!proto.GoodReceipt} returns this
2443
+ */
2444
+ proto.GoodReceipt.prototype.clearFilesList = function() {
2445
+ return this.setFilesList([]);
2446
+ };
2447
+
2448
+
2449
+ /**
2450
+ * optional Vendor vendor = 22;
2451
+ * @return {?proto.Vendor}
2452
+ */
2453
+ proto.GoodReceipt.prototype.getVendor = function() {
2454
+ return /** @type{?proto.Vendor} */ (
2455
+ jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 22));
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * @param {?proto.Vendor|undefined} value
2461
+ * @return {!proto.GoodReceipt} returns this
2462
+ */
2463
+ proto.GoodReceipt.prototype.setVendor = function(value) {
2464
+ return jspb.Message.setWrapperField(this, 22, value);
2465
+ };
2466
+
2467
+
2468
+ /**
2469
+ * Clears the message field making it undefined.
2470
+ * @return {!proto.GoodReceipt} returns this
2471
+ */
2472
+ proto.GoodReceipt.prototype.clearVendor = function() {
2473
+ return this.setVendor(undefined);
2474
+ };
2475
+
2476
+
2477
+ /**
2478
+ * Returns whether this field is set.
2479
+ * @return {boolean}
2480
+ */
2481
+ proto.GoodReceipt.prototype.hasVendor = function() {
2482
+ return jspb.Message.getField(this, 22) != null;
2483
+ };
2484
+
2485
+
2486
+ /**
2487
+ * optional PurchaseOrder purchase_order = 23;
2488
+ * @return {?proto.PurchaseOrder}
2489
+ */
2490
+ proto.GoodReceipt.prototype.getPurchaseOrder = function() {
2491
+ return /** @type{?proto.PurchaseOrder} */ (
2492
+ jspb.Message.getWrapperField(this, proto.PurchaseOrder, 23));
2493
+ };
2494
+
2495
+
2496
+ /**
2497
+ * @param {?proto.PurchaseOrder|undefined} value
2498
+ * @return {!proto.GoodReceipt} returns this
2499
+ */
2500
+ proto.GoodReceipt.prototype.setPurchaseOrder = function(value) {
2501
+ return jspb.Message.setWrapperField(this, 23, value);
2502
+ };
2503
+
2504
+
2505
+ /**
2506
+ * Clears the message field making it undefined.
2507
+ * @return {!proto.GoodReceipt} returns this
2508
+ */
2509
+ proto.GoodReceipt.prototype.clearPurchaseOrder = function() {
2510
+ return this.setPurchaseOrder(undefined);
2511
+ };
2512
+
2513
+
2514
+ /**
2515
+ * Returns whether this field is set.
2516
+ * @return {boolean}
2517
+ */
2518
+ proto.GoodReceipt.prototype.hasPurchaseOrder = function() {
2519
+ return jspb.Message.getField(this, 23) != null;
2520
+ };
2521
+
2522
+
2523
+ /**
2524
+ * repeated ItemTransaction item_transactions = 24;
2525
+ * @return {!Array<!proto.ItemTransaction>}
2526
+ */
2527
+ proto.GoodReceipt.prototype.getItemTransactionsList = function() {
2528
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
2529
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 24));
2530
+ };
2531
+
2532
+
2533
+ /**
2534
+ * @param {!Array<!proto.ItemTransaction>} value
2535
+ * @return {!proto.GoodReceipt} returns this
2536
+ */
2537
+ proto.GoodReceipt.prototype.setItemTransactionsList = function(value) {
2538
+ return jspb.Message.setRepeatedWrapperField(this, 24, value);
2539
+ };
2540
+
2541
+
2542
+ /**
2543
+ * @param {!proto.ItemTransaction=} opt_value
2544
+ * @param {number=} opt_index
2545
+ * @return {!proto.ItemTransaction}
2546
+ */
2547
+ proto.GoodReceipt.prototype.addItemTransactions = function(opt_value, opt_index) {
2548
+ return jspb.Message.addToRepeatedWrapperField(this, 24, opt_value, proto.ItemTransaction, opt_index);
2549
+ };
2550
+
2551
+
2552
+ /**
2553
+ * Clears the list making it empty but non-null.
2554
+ * @return {!proto.GoodReceipt} returns this
2555
+ */
2556
+ proto.GoodReceipt.prototype.clearItemTransactionsList = function() {
2557
+ return this.setItemTransactionsList([]);
2558
+ };
2559
+
2560
+
2561
+ /**
2562
+ * optional Employee created_by_employee = 25;
2563
+ * @return {?proto.Employee}
2564
+ */
2565
+ proto.GoodReceipt.prototype.getCreatedByEmployee = function() {
2566
+ return /** @type{?proto.Employee} */ (
2567
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 25));
2568
+ };
2569
+
2570
+
2571
+ /**
2572
+ * @param {?proto.Employee|undefined} value
2573
+ * @return {!proto.GoodReceipt} returns this
2574
+ */
2575
+ proto.GoodReceipt.prototype.setCreatedByEmployee = function(value) {
2576
+ return jspb.Message.setWrapperField(this, 25, value);
2577
+ };
2578
+
2579
+
2580
+ /**
2581
+ * Clears the message field making it undefined.
2582
+ * @return {!proto.GoodReceipt} returns this
2583
+ */
2584
+ proto.GoodReceipt.prototype.clearCreatedByEmployee = function() {
2585
+ return this.setCreatedByEmployee(undefined);
2586
+ };
2587
+
2588
+
2589
+ /**
2590
+ * Returns whether this field is set.
2591
+ * @return {boolean}
2592
+ */
2593
+ proto.GoodReceipt.prototype.hasCreatedByEmployee = function() {
2594
+ return jspb.Message.getField(this, 25) != null;
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * optional Employee updated_by_employee = 26;
2600
+ * @return {?proto.Employee}
2601
+ */
2602
+ proto.GoodReceipt.prototype.getUpdatedByEmployee = function() {
2603
+ return /** @type{?proto.Employee} */ (
2604
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 26));
2605
+ };
2606
+
2607
+
2608
+ /**
2609
+ * @param {?proto.Employee|undefined} value
2610
+ * @return {!proto.GoodReceipt} returns this
2611
+ */
2612
+ proto.GoodReceipt.prototype.setUpdatedByEmployee = function(value) {
2613
+ return jspb.Message.setWrapperField(this, 26, value);
2614
+ };
2615
+
2616
+
2617
+ /**
2618
+ * Clears the message field making it undefined.
2619
+ * @return {!proto.GoodReceipt} returns this
2620
+ */
2621
+ proto.GoodReceipt.prototype.clearUpdatedByEmployee = function() {
2622
+ return this.setUpdatedByEmployee(undefined);
2623
+ };
2624
+
2625
+
2626
+ /**
2627
+ * Returns whether this field is set.
2628
+ * @return {boolean}
2629
+ */
2630
+ proto.GoodReceipt.prototype.hasUpdatedByEmployee = function() {
2631
+ return jspb.Message.getField(this, 26) != null;
2632
+ };
2633
+
2634
+
2635
+ /**
2636
+ * optional string plant = 27;
2637
+ * @return {string}
2638
+ */
2639
+ proto.GoodReceipt.prototype.getPlant = function() {
2640
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
2641
+ };
2642
+
2643
+
2644
+ /**
2645
+ * @param {string} value
2646
+ * @return {!proto.GoodReceipt} returns this
2647
+ */
2648
+ proto.GoodReceipt.prototype.setPlant = function(value) {
2649
+ return jspb.Message.setProto3StringField(this, 27, value);
2650
+ };
2651
+
2652
+
2653
+ /**
2654
+ * optional string delivery_order_number = 28;
2655
+ * @return {string}
2656
+ */
2657
+ proto.GoodReceipt.prototype.getDeliveryOrderNumber = function() {
2658
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
2659
+ };
2660
+
2661
+
2662
+ /**
2663
+ * @param {string} value
2664
+ * @return {!proto.GoodReceipt} returns this
2665
+ */
2666
+ proto.GoodReceipt.prototype.setDeliveryOrderNumber = function(value) {
2667
+ return jspb.Message.setProto3StringField(this, 28, value);
2668
+ };
2669
+
2670
+
2671
+ /**
2672
+ * optional string delivery_order_references_id = 29;
2673
+ * @return {string}
2674
+ */
2675
+ proto.GoodReceipt.prototype.getDeliveryOrderReferencesId = function() {
2676
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
2677
+ };
2678
+
2679
+
2680
+ /**
2681
+ * @param {string} value
2682
+ * @return {!proto.GoodReceipt} returns this
2683
+ */
2684
+ proto.GoodReceipt.prototype.setDeliveryOrderReferencesId = function(value) {
2685
+ return jspb.Message.setProto3StringField(this, 29, value);
2686
+ };
2687
+
2688
+
2689
+ /**
2690
+ * optional string delivery_order_date = 30;
2691
+ * @return {string}
2692
+ */
2693
+ proto.GoodReceipt.prototype.getDeliveryOrderDate = function() {
2694
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
2695
+ };
2696
+
2697
+
2698
+ /**
2699
+ * @param {string} value
2700
+ * @return {!proto.GoodReceipt} returns this
2701
+ */
2702
+ proto.GoodReceipt.prototype.setDeliveryOrderDate = function(value) {
2703
+ return jspb.Message.setProto3StringField(this, 30, value);
2704
+ };
2705
+
2706
+
2707
+ /**
2708
+ * optional DeliveryOrder delivery_order = 31;
2709
+ * @return {?proto.DeliveryOrder}
2710
+ */
2711
+ proto.GoodReceipt.prototype.getDeliveryOrder = function() {
2712
+ return /** @type{?proto.DeliveryOrder} */ (
2713
+ jspb.Message.getWrapperField(this, proto.DeliveryOrder, 31));
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * @param {?proto.DeliveryOrder|undefined} value
2719
+ * @return {!proto.GoodReceipt} returns this
2720
+ */
2721
+ proto.GoodReceipt.prototype.setDeliveryOrder = function(value) {
2722
+ return jspb.Message.setWrapperField(this, 31, value);
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * Clears the message field making it undefined.
2728
+ * @return {!proto.GoodReceipt} returns this
2729
+ */
2730
+ proto.GoodReceipt.prototype.clearDeliveryOrder = function() {
2731
+ return this.setDeliveryOrder(undefined);
2732
+ };
2733
+
2734
+
2735
+ /**
2736
+ * Returns whether this field is set.
2737
+ * @return {boolean}
2738
+ */
2739
+ proto.GoodReceipt.prototype.hasDeliveryOrder = function() {
2740
+ return jspb.Message.getField(this, 31) != null;
2741
+ };
2742
+
2743
+
2744
+
2745
+ /**
2746
+ * List of repeated fields within this message type.
2747
+ * @private {!Array<number>}
2748
+ * @const
2749
+ */
2750
+ proto.Invoice.repeatedFields_ = [26,29,31,36];
2751
+
2752
+
2753
+
2754
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2755
+ /**
2756
+ * Creates an object representation of this proto.
2757
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2758
+ * Optional fields that are not set will be set to undefined.
2759
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2760
+ * For the list of reserved names please see:
2761
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2762
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2763
+ * JSPB instance for transitional soy proto support:
2764
+ * http://goto/soy-param-migration
2765
+ * @return {!Object}
2766
+ */
2767
+ proto.Invoice.prototype.toObject = function(opt_includeInstance) {
2768
+ return proto.Invoice.toObject(opt_includeInstance, this);
2769
+ };
2770
+
2771
+
2772
+ /**
2773
+ * Static version of the {@see toObject} method.
2774
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2775
+ * the JSPB instance for transitional soy proto support:
2776
+ * http://goto/soy-param-migration
2777
+ * @param {!proto.Invoice} msg The msg instance to transform.
2778
+ * @return {!Object}
2779
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2780
+ */
2781
+ proto.Invoice.toObject = function(includeInstance, msg) {
2782
+ var f, obj = {
2783
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2784
+ purchaseOrderReferencesId: jspb.Message.getFieldWithDefault(msg, 2, ""),
2785
+ goodReceiptReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
2786
+ vendorReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
2787
+ invoiceSubject: jspb.Message.getFieldWithDefault(msg, 5, ""),
2788
+ invoiceType: jspb.Message.getFieldWithDefault(msg, 6, ""),
2789
+ plant: jspb.Message.getFieldWithDefault(msg, 7, ""),
2790
+ invoiceDate: jspb.Message.getFieldWithDefault(msg, 8, ""),
2791
+ invoiceNumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
2792
+ documentNumber: jspb.Message.getFieldWithDefault(msg, 10, ""),
2793
+ remarks: jspb.Message.getFieldWithDefault(msg, 11, ""),
2794
+ taxReferences: jspb.Message.getFieldWithDefault(msg, 12, ""),
2795
+ externalNumber: jspb.Message.getFieldWithDefault(msg, 13, ""),
2796
+ goodReceiptNumber: jspb.Message.getFieldWithDefault(msg, 14, ""),
2797
+ purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 15, ""),
2798
+ referencesId: jspb.Message.getFieldWithDefault(msg, 16, ""),
2799
+ status: jspb.Message.getFieldWithDefault(msg, 17, ""),
2800
+ createdAt: jspb.Message.getFieldWithDefault(msg, 18, ""),
2801
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 19, ""),
2802
+ createdBy: jspb.Message.getFieldWithDefault(msg, 20, ""),
2803
+ updateBy: jspb.Message.getFieldWithDefault(msg, 21, ""),
2804
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 22, ""),
2805
+ groupReferences: jspb.Message.getFieldWithDefault(msg, 23, ""),
2806
+ isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 24, false),
2807
+ fileIds: jspb.Message.getFieldWithDefault(msg, 25, ""),
2808
+ filesList: jspb.Message.toObjectList(msg.getFilesList(),
2809
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2810
+ company: (f = msg.getCompany()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
2811
+ purchaseOrder: (f = msg.getPurchaseOrder()) && proto.PurchaseOrder.toObject(includeInstance, f),
2812
+ goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
2813
+ proto.GoodReceipt.toObject, includeInstance),
2814
+ vendor: (f = msg.getVendor()) && prisca_v1_vendor_domain_vendor_domain_pb.Vendor.toObject(includeInstance, f),
2815
+ itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
2816
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.toObject, includeInstance),
2817
+ createdByUser: (f = msg.getCreatedByUser()) && prisca_v1_core_users_users_pb.Users.toObject(includeInstance, f),
2818
+ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
2819
+ vendorName: jspb.Message.getFieldWithDefault(msg, 34, ""),
2820
+ shippingFileIds: jspb.Message.getFieldWithDefault(msg, 35, ""),
2821
+ shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
2822
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
2823
+ updatedByUser: (f = msg.getUpdatedByUser()) && prisca_v1_core_users_users_pb.Users.toObject(includeInstance, f),
2824
+ customTransaction: jspb.Message.getFieldWithDefault(msg, 38, "")
2825
+ };
2826
+
2827
+ if (includeInstance) {
2828
+ obj.$jspbMessageInstance = msg;
2829
+ }
2830
+ return obj;
2831
+ };
2832
+ }
2833
+
2834
+
2835
+ /**
2836
+ * Deserializes binary data (in protobuf wire format).
2837
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2838
+ * @return {!proto.Invoice}
2839
+ */
2840
+ proto.Invoice.deserializeBinary = function(bytes) {
2841
+ var reader = new jspb.BinaryReader(bytes);
2842
+ var msg = new proto.Invoice;
2843
+ return proto.Invoice.deserializeBinaryFromReader(msg, reader);
2844
+ };
2845
+
2846
+
2847
+ /**
2848
+ * Deserializes binary data (in protobuf wire format) from the
2849
+ * given reader into the given message object.
2850
+ * @param {!proto.Invoice} msg The message object to deserialize into.
2851
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2852
+ * @return {!proto.Invoice}
2853
+ */
2854
+ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
2855
+ while (reader.nextField()) {
2856
+ if (reader.isEndGroup()) {
2857
+ break;
2858
+ }
2859
+ var field = reader.getFieldNumber();
2860
+ switch (field) {
2861
+ case 1:
2862
+ var value = /** @type {number} */ (reader.readInt64());
2863
+ msg.setId(value);
2864
+ break;
2865
+ case 2:
2866
+ var value = /** @type {string} */ (reader.readString());
2867
+ msg.setPurchaseOrderReferencesId(value);
2868
+ break;
2869
+ case 3:
2870
+ var value = /** @type {string} */ (reader.readString());
2871
+ msg.setGoodReceiptReferencesId(value);
2872
+ break;
2873
+ case 4:
2874
+ var value = /** @type {string} */ (reader.readString());
2875
+ msg.setVendorReferencesId(value);
2876
+ break;
2877
+ case 5:
2878
+ var value = /** @type {string} */ (reader.readString());
2879
+ msg.setInvoiceSubject(value);
2880
+ break;
2881
+ case 6:
2882
+ var value = /** @type {string} */ (reader.readString());
2883
+ msg.setInvoiceType(value);
2884
+ break;
2885
+ case 7:
2886
+ var value = /** @type {string} */ (reader.readString());
2887
+ msg.setPlant(value);
2888
+ break;
2889
+ case 8:
2890
+ var value = /** @type {string} */ (reader.readString());
2891
+ msg.setInvoiceDate(value);
2892
+ break;
2893
+ case 9:
2894
+ var value = /** @type {string} */ (reader.readString());
2895
+ msg.setInvoiceNumber(value);
2896
+ break;
2897
+ case 10:
2898
+ var value = /** @type {string} */ (reader.readString());
2899
+ msg.setDocumentNumber(value);
2900
+ break;
2901
+ case 11:
2902
+ var value = /** @type {string} */ (reader.readString());
2903
+ msg.setRemarks(value);
2904
+ break;
2905
+ case 12:
2906
+ var value = /** @type {string} */ (reader.readString());
2907
+ msg.setTaxReferences(value);
2908
+ break;
2909
+ case 13:
2910
+ var value = /** @type {string} */ (reader.readString());
2911
+ msg.setExternalNumber(value);
2912
+ break;
2913
+ case 14:
2914
+ var value = /** @type {string} */ (reader.readString());
2915
+ msg.setGoodReceiptNumber(value);
2916
+ break;
2917
+ case 15:
2918
+ var value = /** @type {string} */ (reader.readString());
2919
+ msg.setPurchaseOrderNumber(value);
2920
+ break;
2921
+ case 16:
2922
+ var value = /** @type {string} */ (reader.readString());
2923
+ msg.setReferencesId(value);
2924
+ break;
2925
+ case 17:
2926
+ var value = /** @type {string} */ (reader.readString());
2927
+ msg.setStatus(value);
2928
+ break;
2929
+ case 18:
2930
+ var value = /** @type {string} */ (reader.readString());
2931
+ msg.setCreatedAt(value);
2932
+ break;
2933
+ case 19:
2934
+ var value = /** @type {string} */ (reader.readString());
2935
+ msg.setUpdatedAt(value);
2936
+ break;
2937
+ case 20:
2938
+ var value = /** @type {string} */ (reader.readString());
2939
+ msg.setCreatedBy(value);
2940
+ break;
2941
+ case 21:
2942
+ var value = /** @type {string} */ (reader.readString());
2943
+ msg.setUpdateBy(value);
2944
+ break;
2945
+ case 22:
2946
+ var value = /** @type {string} */ (reader.readString());
2947
+ msg.setCompaniesReferencesId(value);
2948
+ break;
2949
+ case 23:
2950
+ var value = /** @type {string} */ (reader.readString());
2951
+ msg.setGroupReferences(value);
2952
+ break;
2953
+ case 24:
2954
+ var value = /** @type {boolean} */ (reader.readBool());
2955
+ msg.setIsExpired(value);
2956
+ break;
2957
+ case 25:
2958
+ var value = /** @type {string} */ (reader.readString());
2959
+ msg.setFileIds(value);
2960
+ break;
2961
+ case 26:
2962
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2963
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2964
+ msg.addFiles(value);
2965
+ break;
2966
+ case 27:
2967
+ var value = new prisca_v1_core_company_company_pb.Company;
2968
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
2969
+ msg.setCompany(value);
2970
+ break;
2971
+ case 28:
2972
+ var value = new proto.PurchaseOrder;
2973
+ reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
2974
+ msg.setPurchaseOrder(value);
2975
+ break;
2976
+ case 29:
2977
+ var value = new proto.GoodReceipt;
2978
+ reader.readMessage(value,proto.GoodReceipt.deserializeBinaryFromReader);
2979
+ msg.addGoodReceipts(value);
2980
+ break;
2981
+ case 30:
2982
+ var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
2983
+ reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
2984
+ msg.setVendor(value);
2985
+ break;
2986
+ case 31:
2987
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
2988
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
2989
+ msg.addItemTransactions(value);
2990
+ break;
2991
+ case 32:
2992
+ var value = new prisca_v1_core_users_users_pb.Users;
2993
+ reader.readMessage(value,prisca_v1_core_users_users_pb.Users.deserializeBinaryFromReader);
2994
+ msg.setCreatedByUser(value);
2995
+ break;
2996
+ case 33:
2997
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
2998
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
2999
+ msg.setUpdatedByEmployee(value);
3000
+ break;
3001
+ case 34:
3002
+ var value = /** @type {string} */ (reader.readString());
3003
+ msg.setVendorName(value);
3004
+ break;
3005
+ case 35:
3006
+ var value = /** @type {string} */ (reader.readString());
3007
+ msg.setShippingFileIds(value);
3008
+ break;
3009
+ case 36:
3010
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3011
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3012
+ msg.addShippingFiles(value);
3013
+ break;
3014
+ case 37:
3015
+ var value = new prisca_v1_core_users_users_pb.Users;
3016
+ reader.readMessage(value,prisca_v1_core_users_users_pb.Users.deserializeBinaryFromReader);
3017
+ msg.setUpdatedByUser(value);
3018
+ break;
3019
+ case 38:
3020
+ var value = /** @type {string} */ (reader.readString());
3021
+ msg.setCustomTransaction(value);
3022
+ break;
3023
+ default:
3024
+ reader.skipField();
3025
+ break;
3026
+ }
3027
+ }
3028
+ return msg;
3029
+ };
3030
+
3031
+
3032
+ /**
3033
+ * Serializes the message to binary data (in protobuf wire format).
3034
+ * @return {!Uint8Array}
3035
+ */
3036
+ proto.Invoice.prototype.serializeBinary = function() {
3037
+ var writer = new jspb.BinaryWriter();
3038
+ proto.Invoice.serializeBinaryToWriter(this, writer);
3039
+ return writer.getResultBuffer();
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * Serializes the given message to binary data (in protobuf wire
3045
+ * format), writing to the given BinaryWriter.
3046
+ * @param {!proto.Invoice} message
3047
+ * @param {!jspb.BinaryWriter} writer
3048
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3049
+ */
3050
+ proto.Invoice.serializeBinaryToWriter = function(message, writer) {
3051
+ var f = undefined;
3052
+ f = message.getId();
3053
+ if (f !== 0) {
3054
+ writer.writeInt64(
3055
+ 1,
3056
+ f
3057
+ );
3058
+ }
3059
+ f = message.getPurchaseOrderReferencesId();
3060
+ if (f.length > 0) {
3061
+ writer.writeString(
3062
+ 2,
3063
+ f
3064
+ );
3065
+ }
3066
+ f = message.getGoodReceiptReferencesId();
3067
+ if (f.length > 0) {
3068
+ writer.writeString(
3069
+ 3,
3070
+ f
3071
+ );
3072
+ }
3073
+ f = message.getVendorReferencesId();
3074
+ if (f.length > 0) {
3075
+ writer.writeString(
3076
+ 4,
3077
+ f
3078
+ );
3079
+ }
3080
+ f = message.getInvoiceSubject();
3081
+ if (f.length > 0) {
3082
+ writer.writeString(
3083
+ 5,
3084
+ f
3085
+ );
3086
+ }
3087
+ f = message.getInvoiceType();
3088
+ if (f.length > 0) {
3089
+ writer.writeString(
3090
+ 6,
3091
+ f
3092
+ );
3093
+ }
3094
+ f = message.getPlant();
3095
+ if (f.length > 0) {
3096
+ writer.writeString(
3097
+ 7,
3098
+ f
3099
+ );
3100
+ }
3101
+ f = message.getInvoiceDate();
3102
+ if (f.length > 0) {
3103
+ writer.writeString(
3104
+ 8,
3105
+ f
3106
+ );
3107
+ }
3108
+ f = message.getInvoiceNumber();
3109
+ if (f.length > 0) {
3110
+ writer.writeString(
3111
+ 9,
3112
+ f
3113
+ );
3114
+ }
3115
+ f = message.getDocumentNumber();
3116
+ if (f.length > 0) {
3117
+ writer.writeString(
3118
+ 10,
3119
+ f
3120
+ );
3121
+ }
3122
+ f = message.getRemarks();
3123
+ if (f.length > 0) {
3124
+ writer.writeString(
3125
+ 11,
3126
+ f
3127
+ );
3128
+ }
3129
+ f = message.getTaxReferences();
3130
+ if (f.length > 0) {
3131
+ writer.writeString(
3132
+ 12,
3133
+ f
3134
+ );
3135
+ }
3136
+ f = message.getExternalNumber();
3137
+ if (f.length > 0) {
3138
+ writer.writeString(
3139
+ 13,
3140
+ f
3141
+ );
3142
+ }
3143
+ f = message.getGoodReceiptNumber();
3144
+ if (f.length > 0) {
3145
+ writer.writeString(
3146
+ 14,
3147
+ f
3148
+ );
3149
+ }
3150
+ f = message.getPurchaseOrderNumber();
3151
+ if (f.length > 0) {
3152
+ writer.writeString(
3153
+ 15,
3154
+ f
3155
+ );
3156
+ }
3157
+ f = message.getReferencesId();
3158
+ if (f.length > 0) {
3159
+ writer.writeString(
3160
+ 16,
3161
+ f
3162
+ );
3163
+ }
3164
+ f = message.getStatus();
3165
+ if (f.length > 0) {
3166
+ writer.writeString(
3167
+ 17,
3168
+ f
3169
+ );
3170
+ }
3171
+ f = message.getCreatedAt();
3172
+ if (f.length > 0) {
3173
+ writer.writeString(
3174
+ 18,
3175
+ f
3176
+ );
3177
+ }
3178
+ f = message.getUpdatedAt();
3179
+ if (f.length > 0) {
3180
+ writer.writeString(
3181
+ 19,
3182
+ f
3183
+ );
3184
+ }
3185
+ f = message.getCreatedBy();
3186
+ if (f.length > 0) {
3187
+ writer.writeString(
3188
+ 20,
3189
+ f
3190
+ );
3191
+ }
3192
+ f = message.getUpdateBy();
3193
+ if (f.length > 0) {
3194
+ writer.writeString(
3195
+ 21,
3196
+ f
3197
+ );
3198
+ }
3199
+ f = message.getCompaniesReferencesId();
3200
+ if (f.length > 0) {
3201
+ writer.writeString(
3202
+ 22,
3203
+ f
3204
+ );
3205
+ }
3206
+ f = message.getGroupReferences();
3207
+ if (f.length > 0) {
3208
+ writer.writeString(
3209
+ 23,
3210
+ f
3211
+ );
3212
+ }
3213
+ f = message.getIsExpired();
3214
+ if (f) {
3215
+ writer.writeBool(
3216
+ 24,
3217
+ f
3218
+ );
3219
+ }
3220
+ f = message.getFileIds();
3221
+ if (f.length > 0) {
3222
+ writer.writeString(
3223
+ 25,
3224
+ f
3225
+ );
3226
+ }
3227
+ f = message.getFilesList();
3228
+ if (f.length > 0) {
3229
+ writer.writeRepeatedMessage(
3230
+ 26,
3231
+ f,
3232
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3233
+ );
3234
+ }
3235
+ f = message.getCompany();
3236
+ if (f != null) {
3237
+ writer.writeMessage(
3238
+ 27,
3239
+ f,
3240
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
3241
+ );
3242
+ }
3243
+ f = message.getPurchaseOrder();
3244
+ if (f != null) {
3245
+ writer.writeMessage(
3246
+ 28,
3247
+ f,
3248
+ proto.PurchaseOrder.serializeBinaryToWriter
3249
+ );
3250
+ }
3251
+ f = message.getGoodReceiptsList();
3252
+ if (f.length > 0) {
3253
+ writer.writeRepeatedMessage(
3254
+ 29,
3255
+ f,
3256
+ proto.GoodReceipt.serializeBinaryToWriter
3257
+ );
3258
+ }
3259
+ f = message.getVendor();
3260
+ if (f != null) {
3261
+ writer.writeMessage(
3262
+ 30,
3263
+ f,
3264
+ prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
3265
+ );
3266
+ }
3267
+ f = message.getItemTransactionsList();
3268
+ if (f.length > 0) {
3269
+ writer.writeRepeatedMessage(
3270
+ 31,
3271
+ f,
3272
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
3273
+ );
3274
+ }
3275
+ f = message.getCreatedByUser();
3276
+ if (f != null) {
3277
+ writer.writeMessage(
3278
+ 32,
3279
+ f,
3280
+ prisca_v1_core_users_users_pb.Users.serializeBinaryToWriter
3281
+ );
3282
+ }
3283
+ f = message.getUpdatedByEmployee();
3284
+ if (f != null) {
3285
+ writer.writeMessage(
3286
+ 33,
3287
+ f,
3288
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
3289
+ );
3290
+ }
3291
+ f = message.getVendorName();
3292
+ if (f.length > 0) {
3293
+ writer.writeString(
3294
+ 34,
3295
+ f
3296
+ );
3297
+ }
3298
+ f = message.getShippingFileIds();
3299
+ if (f.length > 0) {
3300
+ writer.writeString(
3301
+ 35,
3302
+ f
3303
+ );
3304
+ }
3305
+ f = message.getShippingFilesList();
3306
+ if (f.length > 0) {
3307
+ writer.writeRepeatedMessage(
3308
+ 36,
3309
+ f,
3310
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3311
+ );
3312
+ }
3313
+ f = message.getUpdatedByUser();
3314
+ if (f != null) {
3315
+ writer.writeMessage(
3316
+ 37,
3317
+ f,
3318
+ prisca_v1_core_users_users_pb.Users.serializeBinaryToWriter
3319
+ );
3320
+ }
3321
+ f = message.getCustomTransaction();
3322
+ if (f.length > 0) {
3323
+ writer.writeString(
3324
+ 38,
3325
+ f
3326
+ );
3327
+ }
3328
+ };
3329
+
3330
+
3331
+ /**
3332
+ * optional int64 id = 1;
3333
+ * @return {number}
3334
+ */
3335
+ proto.Invoice.prototype.getId = function() {
3336
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3337
+ };
3338
+
3339
+
3340
+ /**
3341
+ * @param {number} value
3342
+ * @return {!proto.Invoice} returns this
3343
+ */
3344
+ proto.Invoice.prototype.setId = function(value) {
3345
+ return jspb.Message.setProto3IntField(this, 1, value);
3346
+ };
3347
+
3348
+
3349
+ /**
3350
+ * optional string purchase_order_references_id = 2;
3351
+ * @return {string}
3352
+ */
3353
+ proto.Invoice.prototype.getPurchaseOrderReferencesId = function() {
3354
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3355
+ };
3356
+
3357
+
3358
+ /**
3359
+ * @param {string} value
3360
+ * @return {!proto.Invoice} returns this
3361
+ */
3362
+ proto.Invoice.prototype.setPurchaseOrderReferencesId = function(value) {
3363
+ return jspb.Message.setProto3StringField(this, 2, value);
3364
+ };
3365
+
3366
+
3367
+ /**
3368
+ * optional string good_receipt_references_id = 3;
3369
+ * @return {string}
3370
+ */
3371
+ proto.Invoice.prototype.getGoodReceiptReferencesId = function() {
3372
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3373
+ };
3374
+
3375
+
3376
+ /**
3377
+ * @param {string} value
3378
+ * @return {!proto.Invoice} returns this
3379
+ */
3380
+ proto.Invoice.prototype.setGoodReceiptReferencesId = function(value) {
3381
+ return jspb.Message.setProto3StringField(this, 3, value);
3382
+ };
3383
+
3384
+
3385
+ /**
3386
+ * optional string vendor_references_id = 4;
3387
+ * @return {string}
3388
+ */
3389
+ proto.Invoice.prototype.getVendorReferencesId = function() {
3390
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3391
+ };
3392
+
3393
+
3394
+ /**
3395
+ * @param {string} value
3396
+ * @return {!proto.Invoice} returns this
3397
+ */
3398
+ proto.Invoice.prototype.setVendorReferencesId = function(value) {
3399
+ return jspb.Message.setProto3StringField(this, 4, value);
3400
+ };
3401
+
3402
+
3403
+ /**
3404
+ * optional string invoice_subject = 5;
3405
+ * @return {string}
3406
+ */
3407
+ proto.Invoice.prototype.getInvoiceSubject = function() {
3408
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3409
+ };
3410
+
3411
+
3412
+ /**
3413
+ * @param {string} value
3414
+ * @return {!proto.Invoice} returns this
3415
+ */
3416
+ proto.Invoice.prototype.setInvoiceSubject = function(value) {
3417
+ return jspb.Message.setProto3StringField(this, 5, value);
3418
+ };
3419
+
3420
+
3421
+ /**
3422
+ * optional string invoice_type = 6;
3423
+ * @return {string}
3424
+ */
3425
+ proto.Invoice.prototype.getInvoiceType = function() {
3426
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3427
+ };
3428
+
3429
+
3430
+ /**
3431
+ * @param {string} value
3432
+ * @return {!proto.Invoice} returns this
3433
+ */
3434
+ proto.Invoice.prototype.setInvoiceType = function(value) {
3435
+ return jspb.Message.setProto3StringField(this, 6, value);
3436
+ };
3437
+
3438
+
3439
+ /**
3440
+ * optional string plant = 7;
3441
+ * @return {string}
3442
+ */
3443
+ proto.Invoice.prototype.getPlant = function() {
3444
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3445
+ };
3446
+
3447
+
3448
+ /**
3449
+ * @param {string} value
3450
+ * @return {!proto.Invoice} returns this
3451
+ */
3452
+ proto.Invoice.prototype.setPlant = function(value) {
3453
+ return jspb.Message.setProto3StringField(this, 7, value);
3454
+ };
3455
+
3456
+
3457
+ /**
3458
+ * optional string invoice_date = 8;
3459
+ * @return {string}
3460
+ */
3461
+ proto.Invoice.prototype.getInvoiceDate = function() {
3462
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3463
+ };
3464
+
3465
+
3466
+ /**
3467
+ * @param {string} value
3468
+ * @return {!proto.Invoice} returns this
3469
+ */
3470
+ proto.Invoice.prototype.setInvoiceDate = function(value) {
3471
+ return jspb.Message.setProto3StringField(this, 8, value);
3472
+ };
3473
+
3474
+
3475
+ /**
3476
+ * optional string invoice_number = 9;
3477
+ * @return {string}
3478
+ */
3479
+ proto.Invoice.prototype.getInvoiceNumber = function() {
3480
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3481
+ };
3482
+
3483
+
3484
+ /**
3485
+ * @param {string} value
3486
+ * @return {!proto.Invoice} returns this
3487
+ */
3488
+ proto.Invoice.prototype.setInvoiceNumber = function(value) {
3489
+ return jspb.Message.setProto3StringField(this, 9, value);
3490
+ };
3491
+
3492
+
3493
+ /**
3494
+ * optional string document_number = 10;
3495
+ * @return {string}
3496
+ */
3497
+ proto.Invoice.prototype.getDocumentNumber = function() {
3498
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3499
+ };
3500
+
3501
+
3502
+ /**
3503
+ * @param {string} value
3504
+ * @return {!proto.Invoice} returns this
3505
+ */
3506
+ proto.Invoice.prototype.setDocumentNumber = function(value) {
3507
+ return jspb.Message.setProto3StringField(this, 10, value);
3508
+ };
3509
+
3510
+
3511
+ /**
3512
+ * optional string remarks = 11;
3513
+ * @return {string}
3514
+ */
3515
+ proto.Invoice.prototype.getRemarks = function() {
3516
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3517
+ };
3518
+
3519
+
3520
+ /**
3521
+ * @param {string} value
3522
+ * @return {!proto.Invoice} returns this
3523
+ */
3524
+ proto.Invoice.prototype.setRemarks = function(value) {
3525
+ return jspb.Message.setProto3StringField(this, 11, value);
3526
+ };
3527
+
3528
+
3529
+ /**
3530
+ * optional string tax_references = 12;
3531
+ * @return {string}
3532
+ */
3533
+ proto.Invoice.prototype.getTaxReferences = function() {
3534
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3535
+ };
3536
+
3537
+
3538
+ /**
3539
+ * @param {string} value
3540
+ * @return {!proto.Invoice} returns this
3541
+ */
3542
+ proto.Invoice.prototype.setTaxReferences = function(value) {
3543
+ return jspb.Message.setProto3StringField(this, 12, value);
3544
+ };
3545
+
3546
+
3547
+ /**
3548
+ * optional string external_number = 13;
3549
+ * @return {string}
3550
+ */
3551
+ proto.Invoice.prototype.getExternalNumber = function() {
3552
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3553
+ };
3554
+
3555
+
3556
+ /**
3557
+ * @param {string} value
3558
+ * @return {!proto.Invoice} returns this
3559
+ */
3560
+ proto.Invoice.prototype.setExternalNumber = function(value) {
3561
+ return jspb.Message.setProto3StringField(this, 13, value);
3562
+ };
3563
+
3564
+
3565
+ /**
3566
+ * optional string good_receipt_number = 14;
3567
+ * @return {string}
3568
+ */
3569
+ proto.Invoice.prototype.getGoodReceiptNumber = function() {
3570
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3571
+ };
3572
+
3573
+
3574
+ /**
3575
+ * @param {string} value
3576
+ * @return {!proto.Invoice} returns this
3577
+ */
3578
+ proto.Invoice.prototype.setGoodReceiptNumber = function(value) {
3579
+ return jspb.Message.setProto3StringField(this, 14, value);
3580
+ };
3581
+
3582
+
3583
+ /**
3584
+ * optional string purchase_order_number = 15;
3585
+ * @return {string}
3586
+ */
3587
+ proto.Invoice.prototype.getPurchaseOrderNumber = function() {
3588
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3589
+ };
3590
+
3591
+
3592
+ /**
3593
+ * @param {string} value
3594
+ * @return {!proto.Invoice} returns this
3595
+ */
3596
+ proto.Invoice.prototype.setPurchaseOrderNumber = function(value) {
3597
+ return jspb.Message.setProto3StringField(this, 15, value);
3598
+ };
3599
+
3600
+
3601
+ /**
3602
+ * optional string references_id = 16;
3603
+ * @return {string}
3604
+ */
3605
+ proto.Invoice.prototype.getReferencesId = function() {
3606
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3607
+ };
3608
+
3609
+
3610
+ /**
3611
+ * @param {string} value
3612
+ * @return {!proto.Invoice} returns this
3613
+ */
3614
+ proto.Invoice.prototype.setReferencesId = function(value) {
3615
+ return jspb.Message.setProto3StringField(this, 16, value);
3616
+ };
3617
+
3618
+
3619
+ /**
3620
+ * optional string status = 17;
3621
+ * @return {string}
3622
+ */
3623
+ proto.Invoice.prototype.getStatus = function() {
3624
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3625
+ };
3626
+
3627
+
3628
+ /**
3629
+ * @param {string} value
3630
+ * @return {!proto.Invoice} returns this
3631
+ */
3632
+ proto.Invoice.prototype.setStatus = function(value) {
3633
+ return jspb.Message.setProto3StringField(this, 17, value);
3634
+ };
3635
+
3636
+
3637
+ /**
3638
+ * optional string created_at = 18;
3639
+ * @return {string}
3640
+ */
3641
+ proto.Invoice.prototype.getCreatedAt = function() {
3642
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
3643
+ };
3644
+
3645
+
3646
+ /**
3647
+ * @param {string} value
3648
+ * @return {!proto.Invoice} returns this
3649
+ */
3650
+ proto.Invoice.prototype.setCreatedAt = function(value) {
3651
+ return jspb.Message.setProto3StringField(this, 18, value);
3652
+ };
3653
+
3654
+
3655
+ /**
3656
+ * optional string updated_at = 19;
3657
+ * @return {string}
3658
+ */
3659
+ proto.Invoice.prototype.getUpdatedAt = function() {
3660
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
3661
+ };
3662
+
3663
+
3664
+ /**
3665
+ * @param {string} value
3666
+ * @return {!proto.Invoice} returns this
3667
+ */
3668
+ proto.Invoice.prototype.setUpdatedAt = function(value) {
3669
+ return jspb.Message.setProto3StringField(this, 19, value);
3670
+ };
3671
+
3672
+
3673
+ /**
3674
+ * optional string created_by = 20;
3675
+ * @return {string}
3676
+ */
3677
+ proto.Invoice.prototype.getCreatedBy = function() {
3678
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
3679
+ };
3680
+
3681
+
3682
+ /**
3683
+ * @param {string} value
3684
+ * @return {!proto.Invoice} returns this
3685
+ */
3686
+ proto.Invoice.prototype.setCreatedBy = function(value) {
3687
+ return jspb.Message.setProto3StringField(this, 20, value);
3688
+ };
3689
+
3690
+
3691
+ /**
3692
+ * optional string update_by = 21;
3693
+ * @return {string}
3694
+ */
3695
+ proto.Invoice.prototype.getUpdateBy = function() {
3696
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
3697
+ };
3698
+
3699
+
3700
+ /**
3701
+ * @param {string} value
3702
+ * @return {!proto.Invoice} returns this
3703
+ */
3704
+ proto.Invoice.prototype.setUpdateBy = function(value) {
3705
+ return jspb.Message.setProto3StringField(this, 21, value);
3706
+ };
3707
+
3708
+
3709
+ /**
3710
+ * optional string companies_references_id = 22;
3711
+ * @return {string}
3712
+ */
3713
+ proto.Invoice.prototype.getCompaniesReferencesId = function() {
3714
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
3715
+ };
3716
+
3717
+
3718
+ /**
3719
+ * @param {string} value
3720
+ * @return {!proto.Invoice} returns this
3721
+ */
3722
+ proto.Invoice.prototype.setCompaniesReferencesId = function(value) {
3723
+ return jspb.Message.setProto3StringField(this, 22, value);
3724
+ };
3725
+
3726
+
3727
+ /**
3728
+ * optional string group_references = 23;
3729
+ * @return {string}
3730
+ */
3731
+ proto.Invoice.prototype.getGroupReferences = function() {
3732
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
3733
+ };
3734
+
3735
+
3736
+ /**
3737
+ * @param {string} value
3738
+ * @return {!proto.Invoice} returns this
3739
+ */
3740
+ proto.Invoice.prototype.setGroupReferences = function(value) {
3741
+ return jspb.Message.setProto3StringField(this, 23, value);
3742
+ };
3743
+
3744
+
3745
+ /**
3746
+ * optional bool is_expired = 24;
3747
+ * @return {boolean}
3748
+ */
3749
+ proto.Invoice.prototype.getIsExpired = function() {
3750
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false));
3751
+ };
3752
+
3753
+
3754
+ /**
3755
+ * @param {boolean} value
3756
+ * @return {!proto.Invoice} returns this
3757
+ */
3758
+ proto.Invoice.prototype.setIsExpired = function(value) {
3759
+ return jspb.Message.setProto3BooleanField(this, 24, value);
3760
+ };
3761
+
3762
+
3763
+ /**
3764
+ * optional string file_ids = 25;
3765
+ * @return {string}
3766
+ */
3767
+ proto.Invoice.prototype.getFileIds = function() {
3768
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
3769
+ };
3770
+
3771
+
3772
+ /**
3773
+ * @param {string} value
3774
+ * @return {!proto.Invoice} returns this
3775
+ */
3776
+ proto.Invoice.prototype.setFileIds = function(value) {
3777
+ return jspb.Message.setProto3StringField(this, 25, value);
3778
+ };
3779
+
3780
+
3781
+ /**
3782
+ * repeated FileUploadReferencesReq files = 26;
3783
+ * @return {!Array<!proto.FileUploadReferencesReq>}
3784
+ */
3785
+ proto.Invoice.prototype.getFilesList = function() {
3786
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3787
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 26));
3788
+ };
3789
+
3790
+
3791
+ /**
3792
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
3793
+ * @return {!proto.Invoice} returns this
3794
+ */
3795
+ proto.Invoice.prototype.setFilesList = function(value) {
3796
+ return jspb.Message.setRepeatedWrapperField(this, 26, value);
3797
+ };
3798
+
3799
+
3800
+ /**
3801
+ * @param {!proto.FileUploadReferencesReq=} opt_value
3802
+ * @param {number=} opt_index
3803
+ * @return {!proto.FileUploadReferencesReq}
3804
+ */
3805
+ proto.Invoice.prototype.addFiles = function(opt_value, opt_index) {
3806
+ return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.FileUploadReferencesReq, opt_index);
3807
+ };
3808
+
3809
+
3810
+ /**
3811
+ * Clears the list making it empty but non-null.
3812
+ * @return {!proto.Invoice} returns this
3813
+ */
3814
+ proto.Invoice.prototype.clearFilesList = function() {
3815
+ return this.setFilesList([]);
3816
+ };
3817
+
3818
+
3819
+ /**
3820
+ * optional Company company = 27;
3821
+ * @return {?proto.Company}
3822
+ */
3823
+ proto.Invoice.prototype.getCompany = function() {
3824
+ return /** @type{?proto.Company} */ (
3825
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 27));
3826
+ };
3827
+
3828
+
3829
+ /**
3830
+ * @param {?proto.Company|undefined} value
3831
+ * @return {!proto.Invoice} returns this
3832
+ */
3833
+ proto.Invoice.prototype.setCompany = function(value) {
3834
+ return jspb.Message.setWrapperField(this, 27, value);
3835
+ };
3836
+
3837
+
3838
+ /**
3839
+ * Clears the message field making it undefined.
3840
+ * @return {!proto.Invoice} returns this
3841
+ */
3842
+ proto.Invoice.prototype.clearCompany = function() {
3843
+ return this.setCompany(undefined);
3844
+ };
3845
+
3846
+
3847
+ /**
3848
+ * Returns whether this field is set.
3849
+ * @return {boolean}
3850
+ */
3851
+ proto.Invoice.prototype.hasCompany = function() {
3852
+ return jspb.Message.getField(this, 27) != null;
3853
+ };
3854
+
3855
+
3856
+ /**
3857
+ * optional PurchaseOrder purchase_order = 28;
3858
+ * @return {?proto.PurchaseOrder}
3859
+ */
3860
+ proto.Invoice.prototype.getPurchaseOrder = function() {
3861
+ return /** @type{?proto.PurchaseOrder} */ (
3862
+ jspb.Message.getWrapperField(this, proto.PurchaseOrder, 28));
3863
+ };
3864
+
3865
+
3866
+ /**
3867
+ * @param {?proto.PurchaseOrder|undefined} value
3868
+ * @return {!proto.Invoice} returns this
3869
+ */
3870
+ proto.Invoice.prototype.setPurchaseOrder = function(value) {
3871
+ return jspb.Message.setWrapperField(this, 28, value);
3872
+ };
3873
+
3874
+
3875
+ /**
3876
+ * Clears the message field making it undefined.
3877
+ * @return {!proto.Invoice} returns this
3878
+ */
3879
+ proto.Invoice.prototype.clearPurchaseOrder = function() {
3880
+ return this.setPurchaseOrder(undefined);
3881
+ };
3882
+
3883
+
3884
+ /**
3885
+ * Returns whether this field is set.
3886
+ * @return {boolean}
3887
+ */
3888
+ proto.Invoice.prototype.hasPurchaseOrder = function() {
3889
+ return jspb.Message.getField(this, 28) != null;
3890
+ };
3891
+
3892
+
3893
+ /**
3894
+ * repeated GoodReceipt good_receipts = 29;
3895
+ * @return {!Array<!proto.GoodReceipt>}
3896
+ */
3897
+ proto.Invoice.prototype.getGoodReceiptsList = function() {
3898
+ return /** @type{!Array<!proto.GoodReceipt>} */ (
3899
+ jspb.Message.getRepeatedWrapperField(this, proto.GoodReceipt, 29));
3900
+ };
3901
+
3902
+
3903
+ /**
3904
+ * @param {!Array<!proto.GoodReceipt>} value
3905
+ * @return {!proto.Invoice} returns this
3906
+ */
3907
+ proto.Invoice.prototype.setGoodReceiptsList = function(value) {
3908
+ return jspb.Message.setRepeatedWrapperField(this, 29, value);
3909
+ };
3910
+
3911
+
3912
+ /**
3913
+ * @param {!proto.GoodReceipt=} opt_value
3914
+ * @param {number=} opt_index
3915
+ * @return {!proto.GoodReceipt}
3916
+ */
3917
+ proto.Invoice.prototype.addGoodReceipts = function(opt_value, opt_index) {
3918
+ return jspb.Message.addToRepeatedWrapperField(this, 29, opt_value, proto.GoodReceipt, opt_index);
3919
+ };
3920
+
3921
+
3922
+ /**
3923
+ * Clears the list making it empty but non-null.
3924
+ * @return {!proto.Invoice} returns this
3925
+ */
3926
+ proto.Invoice.prototype.clearGoodReceiptsList = function() {
3927
+ return this.setGoodReceiptsList([]);
3928
+ };
3929
+
3930
+
3931
+ /**
3932
+ * optional Vendor vendor = 30;
3933
+ * @return {?proto.Vendor}
3934
+ */
3935
+ proto.Invoice.prototype.getVendor = function() {
3936
+ return /** @type{?proto.Vendor} */ (
3937
+ jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 30));
3938
+ };
3939
+
3940
+
3941
+ /**
3942
+ * @param {?proto.Vendor|undefined} value
3943
+ * @return {!proto.Invoice} returns this
3944
+ */
3945
+ proto.Invoice.prototype.setVendor = function(value) {
3946
+ return jspb.Message.setWrapperField(this, 30, value);
3947
+ };
3948
+
3949
+
3950
+ /**
3951
+ * Clears the message field making it undefined.
3952
+ * @return {!proto.Invoice} returns this
3953
+ */
3954
+ proto.Invoice.prototype.clearVendor = function() {
3955
+ return this.setVendor(undefined);
3956
+ };
3957
+
3958
+
3959
+ /**
3960
+ * Returns whether this field is set.
3961
+ * @return {boolean}
3962
+ */
3963
+ proto.Invoice.prototype.hasVendor = function() {
3964
+ return jspb.Message.getField(this, 30) != null;
3965
+ };
3966
+
3967
+
3968
+ /**
3969
+ * repeated ItemTransaction item_transactions = 31;
3970
+ * @return {!Array<!proto.ItemTransaction>}
3971
+ */
3972
+ proto.Invoice.prototype.getItemTransactionsList = function() {
3973
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
3974
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 31));
3975
+ };
3976
+
3977
+
3978
+ /**
3979
+ * @param {!Array<!proto.ItemTransaction>} value
3980
+ * @return {!proto.Invoice} returns this
3981
+ */
3982
+ proto.Invoice.prototype.setItemTransactionsList = function(value) {
3983
+ return jspb.Message.setRepeatedWrapperField(this, 31, value);
3984
+ };
3985
+
3986
+
3987
+ /**
3988
+ * @param {!proto.ItemTransaction=} opt_value
3989
+ * @param {number=} opt_index
3990
+ * @return {!proto.ItemTransaction}
3991
+ */
3992
+ proto.Invoice.prototype.addItemTransactions = function(opt_value, opt_index) {
3993
+ return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.ItemTransaction, opt_index);
3994
+ };
3995
+
3996
+
3997
+ /**
3998
+ * Clears the list making it empty but non-null.
3999
+ * @return {!proto.Invoice} returns this
4000
+ */
4001
+ proto.Invoice.prototype.clearItemTransactionsList = function() {
4002
+ return this.setItemTransactionsList([]);
4003
+ };
4004
+
4005
+
4006
+ /**
4007
+ * optional Users created_by_user = 32;
4008
+ * @return {?proto.Users}
4009
+ */
4010
+ proto.Invoice.prototype.getCreatedByUser = function() {
4011
+ return /** @type{?proto.Users} */ (
4012
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_users_pb.Users, 32));
4013
+ };
4014
+
4015
+
4016
+ /**
4017
+ * @param {?proto.Users|undefined} value
4018
+ * @return {!proto.Invoice} returns this
4019
+ */
4020
+ proto.Invoice.prototype.setCreatedByUser = function(value) {
4021
+ return jspb.Message.setWrapperField(this, 32, value);
4022
+ };
4023
+
4024
+
4025
+ /**
4026
+ * Clears the message field making it undefined.
4027
+ * @return {!proto.Invoice} returns this
4028
+ */
4029
+ proto.Invoice.prototype.clearCreatedByUser = function() {
4030
+ return this.setCreatedByUser(undefined);
4031
+ };
4032
+
4033
+
4034
+ /**
4035
+ * Returns whether this field is set.
4036
+ * @return {boolean}
4037
+ */
4038
+ proto.Invoice.prototype.hasCreatedByUser = function() {
4039
+ return jspb.Message.getField(this, 32) != null;
4040
+ };
4041
+
4042
+
4043
+ /**
4044
+ * optional Employee updated_by_employee = 33;
4045
+ * @return {?proto.Employee}
4046
+ */
4047
+ proto.Invoice.prototype.getUpdatedByEmployee = function() {
4048
+ return /** @type{?proto.Employee} */ (
4049
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 33));
4050
+ };
4051
+
4052
+
4053
+ /**
4054
+ * @param {?proto.Employee|undefined} value
4055
+ * @return {!proto.Invoice} returns this
4056
+ */
4057
+ proto.Invoice.prototype.setUpdatedByEmployee = function(value) {
4058
+ return jspb.Message.setWrapperField(this, 33, value);
4059
+ };
4060
+
4061
+
4062
+ /**
4063
+ * Clears the message field making it undefined.
4064
+ * @return {!proto.Invoice} returns this
4065
+ */
4066
+ proto.Invoice.prototype.clearUpdatedByEmployee = function() {
4067
+ return this.setUpdatedByEmployee(undefined);
4068
+ };
4069
+
4070
+
4071
+ /**
4072
+ * Returns whether this field is set.
4073
+ * @return {boolean}
4074
+ */
4075
+ proto.Invoice.prototype.hasUpdatedByEmployee = function() {
4076
+ return jspb.Message.getField(this, 33) != null;
4077
+ };
4078
+
4079
+
4080
+ /**
4081
+ * optional string vendor_name = 34;
4082
+ * @return {string}
4083
+ */
4084
+ proto.Invoice.prototype.getVendorName = function() {
4085
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
4086
+ };
4087
+
4088
+
4089
+ /**
4090
+ * @param {string} value
4091
+ * @return {!proto.Invoice} returns this
4092
+ */
4093
+ proto.Invoice.prototype.setVendorName = function(value) {
4094
+ return jspb.Message.setProto3StringField(this, 34, value);
4095
+ };
4096
+
4097
+
4098
+ /**
4099
+ * optional string shipping_file_ids = 35;
4100
+ * @return {string}
4101
+ */
4102
+ proto.Invoice.prototype.getShippingFileIds = function() {
4103
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, ""));
4104
+ };
4105
+
4106
+
4107
+ /**
4108
+ * @param {string} value
4109
+ * @return {!proto.Invoice} returns this
4110
+ */
4111
+ proto.Invoice.prototype.setShippingFileIds = function(value) {
4112
+ return jspb.Message.setProto3StringField(this, 35, value);
4113
+ };
4114
+
4115
+
4116
+ /**
4117
+ * repeated FileUploadReferencesReq shipping_files = 36;
4118
+ * @return {!Array<!proto.FileUploadReferencesReq>}
4119
+ */
4120
+ proto.Invoice.prototype.getShippingFilesList = function() {
4121
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
4122
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 36));
4123
+ };
4124
+
4125
+
4126
+ /**
4127
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
4128
+ * @return {!proto.Invoice} returns this
4129
+ */
4130
+ proto.Invoice.prototype.setShippingFilesList = function(value) {
4131
+ return jspb.Message.setRepeatedWrapperField(this, 36, value);
4132
+ };
4133
+
4134
+
4135
+ /**
4136
+ * @param {!proto.FileUploadReferencesReq=} opt_value
4137
+ * @param {number=} opt_index
4138
+ * @return {!proto.FileUploadReferencesReq}
4139
+ */
4140
+ proto.Invoice.prototype.addShippingFiles = function(opt_value, opt_index) {
4141
+ return jspb.Message.addToRepeatedWrapperField(this, 36, opt_value, proto.FileUploadReferencesReq, opt_index);
4142
+ };
4143
+
4144
+
4145
+ /**
4146
+ * Clears the list making it empty but non-null.
4147
+ * @return {!proto.Invoice} returns this
4148
+ */
4149
+ proto.Invoice.prototype.clearShippingFilesList = function() {
4150
+ return this.setShippingFilesList([]);
4151
+ };
4152
+
4153
+
4154
+ /**
4155
+ * optional Users updated_by_user = 37;
4156
+ * @return {?proto.Users}
4157
+ */
4158
+ proto.Invoice.prototype.getUpdatedByUser = function() {
4159
+ return /** @type{?proto.Users} */ (
4160
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_users_pb.Users, 37));
4161
+ };
4162
+
4163
+
4164
+ /**
4165
+ * @param {?proto.Users|undefined} value
4166
+ * @return {!proto.Invoice} returns this
4167
+ */
4168
+ proto.Invoice.prototype.setUpdatedByUser = function(value) {
4169
+ return jspb.Message.setWrapperField(this, 37, value);
4170
+ };
4171
+
4172
+
4173
+ /**
4174
+ * Clears the message field making it undefined.
4175
+ * @return {!proto.Invoice} returns this
4176
+ */
4177
+ proto.Invoice.prototype.clearUpdatedByUser = function() {
4178
+ return this.setUpdatedByUser(undefined);
4179
+ };
4180
+
4181
+
4182
+ /**
4183
+ * Returns whether this field is set.
4184
+ * @return {boolean}
4185
+ */
4186
+ proto.Invoice.prototype.hasUpdatedByUser = function() {
4187
+ return jspb.Message.getField(this, 37) != null;
4188
+ };
4189
+
4190
+
4191
+ /**
4192
+ * optional string custom_transaction = 38;
4193
+ * @return {string}
4194
+ */
4195
+ proto.Invoice.prototype.getCustomTransaction = function() {
4196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, ""));
4197
+ };
4198
+
4199
+
4200
+ /**
4201
+ * @param {string} value
4202
+ * @return {!proto.Invoice} returns this
378
4203
  */
379
- proto.DeletePurchaseOrderResponse = function(opt_data) {
380
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4204
+ proto.Invoice.prototype.setCustomTransaction = function(value) {
4205
+ return jspb.Message.setProto3StringField(this, 38, value);
381
4206
  };
382
- goog.inherits(proto.DeletePurchaseOrderResponse, jspb.Message);
383
- if (goog.DEBUG && !COMPILED) {
384
- /**
385
- * @public
386
- * @override
387
- */
388
- proto.DeletePurchaseOrderResponse.displayName = 'proto.DeletePurchaseOrderResponse';
389
- }
4207
+
4208
+
390
4209
 
391
4210
  /**
392
4211
  * List of repeated fields within this message type.
393
4212
  * @private {!Array<number>}
394
4213
  * @const
395
4214
  */
396
- proto.PurchaseOrder.repeatedFields_ = [28,29];
4215
+ proto.PurchaseOrder.repeatedFields_ = [28,29,41,42];
397
4216
 
398
4217
 
399
4218
 
@@ -463,7 +4282,15 @@ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_e
463
4282
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 33, ""),
464
4283
  companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompany.toObject(includeInstance, f),
465
4284
  department: jspb.Message.getFieldWithDefault(msg, 35, ""),
466
- salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 36, "")
4285
+ salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 36, ""),
4286
+ biddingReferences: jspb.Message.getFieldWithDefault(msg, 37, ""),
4287
+ biddingNumber: jspb.Message.getFieldWithDefault(msg, 38, ""),
4288
+ purchaseRequisitionReferences: jspb.Message.getFieldWithDefault(msg, 39, ""),
4289
+ purchaseRequisitionNumber: jspb.Message.getFieldWithDefault(msg, 40, ""),
4290
+ invoicesList: jspb.Message.toObjectList(msg.getInvoicesList(),
4291
+ proto.Invoice.toObject, includeInstance),
4292
+ goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
4293
+ proto.GoodReceipt.toObject, includeInstance)
467
4294
  };
468
4295
 
469
4296
  if (includeInstance) {
@@ -650,6 +4477,32 @@ proto.PurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
650
4477
  var value = /** @type {string} */ (reader.readString());
651
4478
  msg.setSalesOrderNumber(value);
652
4479
  break;
4480
+ case 37:
4481
+ var value = /** @type {string} */ (reader.readString());
4482
+ msg.setBiddingReferences(value);
4483
+ break;
4484
+ case 38:
4485
+ var value = /** @type {string} */ (reader.readString());
4486
+ msg.setBiddingNumber(value);
4487
+ break;
4488
+ case 39:
4489
+ var value = /** @type {string} */ (reader.readString());
4490
+ msg.setPurchaseRequisitionReferences(value);
4491
+ break;
4492
+ case 40:
4493
+ var value = /** @type {string} */ (reader.readString());
4494
+ msg.setPurchaseRequisitionNumber(value);
4495
+ break;
4496
+ case 41:
4497
+ var value = new proto.Invoice;
4498
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
4499
+ msg.addInvoices(value);
4500
+ break;
4501
+ case 42:
4502
+ var value = new proto.GoodReceipt;
4503
+ reader.readMessage(value,proto.GoodReceipt.deserializeBinaryFromReader);
4504
+ msg.addGoodReceipts(value);
4505
+ break;
653
4506
  default:
654
4507
  reader.skipField();
655
4508
  break;
@@ -937,6 +4790,50 @@ proto.PurchaseOrder.serializeBinaryToWriter = function(message, writer) {
937
4790
  f
938
4791
  );
939
4792
  }
4793
+ f = message.getBiddingReferences();
4794
+ if (f.length > 0) {
4795
+ writer.writeString(
4796
+ 37,
4797
+ f
4798
+ );
4799
+ }
4800
+ f = message.getBiddingNumber();
4801
+ if (f.length > 0) {
4802
+ writer.writeString(
4803
+ 38,
4804
+ f
4805
+ );
4806
+ }
4807
+ f = message.getPurchaseRequisitionReferences();
4808
+ if (f.length > 0) {
4809
+ writer.writeString(
4810
+ 39,
4811
+ f
4812
+ );
4813
+ }
4814
+ f = message.getPurchaseRequisitionNumber();
4815
+ if (f.length > 0) {
4816
+ writer.writeString(
4817
+ 40,
4818
+ f
4819
+ );
4820
+ }
4821
+ f = message.getInvoicesList();
4822
+ if (f.length > 0) {
4823
+ writer.writeRepeatedMessage(
4824
+ 41,
4825
+ f,
4826
+ proto.Invoice.serializeBinaryToWriter
4827
+ );
4828
+ }
4829
+ f = message.getGoodReceiptsList();
4830
+ if (f.length > 0) {
4831
+ writer.writeRepeatedMessage(
4832
+ 42,
4833
+ f,
4834
+ proto.GoodReceipt.serializeBinaryToWriter
4835
+ );
4836
+ }
940
4837
  };
941
4838
 
942
4839
 
@@ -1704,6 +5601,154 @@ proto.PurchaseOrder.prototype.setSalesOrderNumber = function(value) {
1704
5601
  };
1705
5602
 
1706
5603
 
5604
+ /**
5605
+ * optional string bidding_references = 37;
5606
+ * @return {string}
5607
+ */
5608
+ proto.PurchaseOrder.prototype.getBiddingReferences = function() {
5609
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
5610
+ };
5611
+
5612
+
5613
+ /**
5614
+ * @param {string} value
5615
+ * @return {!proto.PurchaseOrder} returns this
5616
+ */
5617
+ proto.PurchaseOrder.prototype.setBiddingReferences = function(value) {
5618
+ return jspb.Message.setProto3StringField(this, 37, value);
5619
+ };
5620
+
5621
+
5622
+ /**
5623
+ * optional string bidding_number = 38;
5624
+ * @return {string}
5625
+ */
5626
+ proto.PurchaseOrder.prototype.getBiddingNumber = function() {
5627
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, ""));
5628
+ };
5629
+
5630
+
5631
+ /**
5632
+ * @param {string} value
5633
+ * @return {!proto.PurchaseOrder} returns this
5634
+ */
5635
+ proto.PurchaseOrder.prototype.setBiddingNumber = function(value) {
5636
+ return jspb.Message.setProto3StringField(this, 38, value);
5637
+ };
5638
+
5639
+
5640
+ /**
5641
+ * optional string purchase_requisition_references = 39;
5642
+ * @return {string}
5643
+ */
5644
+ proto.PurchaseOrder.prototype.getPurchaseRequisitionReferences = function() {
5645
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, ""));
5646
+ };
5647
+
5648
+
5649
+ /**
5650
+ * @param {string} value
5651
+ * @return {!proto.PurchaseOrder} returns this
5652
+ */
5653
+ proto.PurchaseOrder.prototype.setPurchaseRequisitionReferences = function(value) {
5654
+ return jspb.Message.setProto3StringField(this, 39, value);
5655
+ };
5656
+
5657
+
5658
+ /**
5659
+ * optional string purchase_requisition_number = 40;
5660
+ * @return {string}
5661
+ */
5662
+ proto.PurchaseOrder.prototype.getPurchaseRequisitionNumber = function() {
5663
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, ""));
5664
+ };
5665
+
5666
+
5667
+ /**
5668
+ * @param {string} value
5669
+ * @return {!proto.PurchaseOrder} returns this
5670
+ */
5671
+ proto.PurchaseOrder.prototype.setPurchaseRequisitionNumber = function(value) {
5672
+ return jspb.Message.setProto3StringField(this, 40, value);
5673
+ };
5674
+
5675
+
5676
+ /**
5677
+ * repeated Invoice invoices = 41;
5678
+ * @return {!Array<!proto.Invoice>}
5679
+ */
5680
+ proto.PurchaseOrder.prototype.getInvoicesList = function() {
5681
+ return /** @type{!Array<!proto.Invoice>} */ (
5682
+ jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 41));
5683
+ };
5684
+
5685
+
5686
+ /**
5687
+ * @param {!Array<!proto.Invoice>} value
5688
+ * @return {!proto.PurchaseOrder} returns this
5689
+ */
5690
+ proto.PurchaseOrder.prototype.setInvoicesList = function(value) {
5691
+ return jspb.Message.setRepeatedWrapperField(this, 41, value);
5692
+ };
5693
+
5694
+
5695
+ /**
5696
+ * @param {!proto.Invoice=} opt_value
5697
+ * @param {number=} opt_index
5698
+ * @return {!proto.Invoice}
5699
+ */
5700
+ proto.PurchaseOrder.prototype.addInvoices = function(opt_value, opt_index) {
5701
+ return jspb.Message.addToRepeatedWrapperField(this, 41, opt_value, proto.Invoice, opt_index);
5702
+ };
5703
+
5704
+
5705
+ /**
5706
+ * Clears the list making it empty but non-null.
5707
+ * @return {!proto.PurchaseOrder} returns this
5708
+ */
5709
+ proto.PurchaseOrder.prototype.clearInvoicesList = function() {
5710
+ return this.setInvoicesList([]);
5711
+ };
5712
+
5713
+
5714
+ /**
5715
+ * repeated GoodReceipt good_receipts = 42;
5716
+ * @return {!Array<!proto.GoodReceipt>}
5717
+ */
5718
+ proto.PurchaseOrder.prototype.getGoodReceiptsList = function() {
5719
+ return /** @type{!Array<!proto.GoodReceipt>} */ (
5720
+ jspb.Message.getRepeatedWrapperField(this, proto.GoodReceipt, 42));
5721
+ };
5722
+
5723
+
5724
+ /**
5725
+ * @param {!Array<!proto.GoodReceipt>} value
5726
+ * @return {!proto.PurchaseOrder} returns this
5727
+ */
5728
+ proto.PurchaseOrder.prototype.setGoodReceiptsList = function(value) {
5729
+ return jspb.Message.setRepeatedWrapperField(this, 42, value);
5730
+ };
5731
+
5732
+
5733
+ /**
5734
+ * @param {!proto.GoodReceipt=} opt_value
5735
+ * @param {number=} opt_index
5736
+ * @return {!proto.GoodReceipt}
5737
+ */
5738
+ proto.PurchaseOrder.prototype.addGoodReceipts = function(opt_value, opt_index) {
5739
+ return jspb.Message.addToRepeatedWrapperField(this, 42, opt_value, proto.GoodReceipt, opt_index);
5740
+ };
5741
+
5742
+
5743
+ /**
5744
+ * Clears the list making it empty but non-null.
5745
+ * @return {!proto.PurchaseOrder} returns this
5746
+ */
5747
+ proto.PurchaseOrder.prototype.clearGoodReceiptsList = function() {
5748
+ return this.setGoodReceiptsList([]);
5749
+ };
5750
+
5751
+
1707
5752
 
1708
5753
  /**
1709
5754
  * List of repeated fields within this message type.
@@ -1769,7 +5814,11 @@ department: jspb.Message.getFieldWithDefault(msg, 21, ""),
1769
5814
  purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 22, ""),
1770
5815
  salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 23, ""),
1771
5816
  deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 24, ""),
1772
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 25, "")
5817
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 25, ""),
5818
+ biddingReferences: jspb.Message.getFieldWithDefault(msg, 26, ""),
5819
+ biddingNumber: jspb.Message.getFieldWithDefault(msg, 27, ""),
5820
+ purchaseRequisitionReferences: jspb.Message.getFieldWithDefault(msg, 28, ""),
5821
+ purchaseRequisitionNumber: jspb.Message.getFieldWithDefault(msg, 29, "")
1773
5822
  };
1774
5823
 
1775
5824
  if (includeInstance) {
@@ -1909,6 +5958,22 @@ proto.BasePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reade
1909
5958
  var value = /** @type {string} */ (reader.readString());
1910
5959
  msg.setCompaniesReferencesId(value);
1911
5960
  break;
5961
+ case 26:
5962
+ var value = /** @type {string} */ (reader.readString());
5963
+ msg.setBiddingReferences(value);
5964
+ break;
5965
+ case 27:
5966
+ var value = /** @type {string} */ (reader.readString());
5967
+ msg.setBiddingNumber(value);
5968
+ break;
5969
+ case 28:
5970
+ var value = /** @type {string} */ (reader.readString());
5971
+ msg.setPurchaseRequisitionReferences(value);
5972
+ break;
5973
+ case 29:
5974
+ var value = /** @type {string} */ (reader.readString());
5975
+ msg.setPurchaseRequisitionNumber(value);
5976
+ break;
1912
5977
  default:
1913
5978
  reader.skipField();
1914
5979
  break;
@@ -2116,6 +6181,34 @@ proto.BasePurchaseOrderRequest.serializeBinaryToWriter = function(message, write
2116
6181
  f
2117
6182
  );
2118
6183
  }
6184
+ f = message.getBiddingReferences();
6185
+ if (f.length > 0) {
6186
+ writer.writeString(
6187
+ 26,
6188
+ f
6189
+ );
6190
+ }
6191
+ f = message.getBiddingNumber();
6192
+ if (f.length > 0) {
6193
+ writer.writeString(
6194
+ 27,
6195
+ f
6196
+ );
6197
+ }
6198
+ f = message.getPurchaseRequisitionReferences();
6199
+ if (f.length > 0) {
6200
+ writer.writeString(
6201
+ 28,
6202
+ f
6203
+ );
6204
+ }
6205
+ f = message.getPurchaseRequisitionNumber();
6206
+ if (f.length > 0) {
6207
+ writer.writeString(
6208
+ 29,
6209
+ f
6210
+ );
6211
+ }
2119
6212
  };
2120
6213
 
2121
6214
 
@@ -2628,6 +6721,78 @@ proto.BasePurchaseOrderRequest.prototype.setCompaniesReferencesId = function(val
2628
6721
  };
2629
6722
 
2630
6723
 
6724
+ /**
6725
+ * optional string bidding_references = 26;
6726
+ * @return {string}
6727
+ */
6728
+ proto.BasePurchaseOrderRequest.prototype.getBiddingReferences = function() {
6729
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
6730
+ };
6731
+
6732
+
6733
+ /**
6734
+ * @param {string} value
6735
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6736
+ */
6737
+ proto.BasePurchaseOrderRequest.prototype.setBiddingReferences = function(value) {
6738
+ return jspb.Message.setProto3StringField(this, 26, value);
6739
+ };
6740
+
6741
+
6742
+ /**
6743
+ * optional string bidding_number = 27;
6744
+ * @return {string}
6745
+ */
6746
+ proto.BasePurchaseOrderRequest.prototype.getBiddingNumber = function() {
6747
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
6748
+ };
6749
+
6750
+
6751
+ /**
6752
+ * @param {string} value
6753
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6754
+ */
6755
+ proto.BasePurchaseOrderRequest.prototype.setBiddingNumber = function(value) {
6756
+ return jspb.Message.setProto3StringField(this, 27, value);
6757
+ };
6758
+
6759
+
6760
+ /**
6761
+ * optional string purchase_requisition_references = 28;
6762
+ * @return {string}
6763
+ */
6764
+ proto.BasePurchaseOrderRequest.prototype.getPurchaseRequisitionReferences = function() {
6765
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
6766
+ };
6767
+
6768
+
6769
+ /**
6770
+ * @param {string} value
6771
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6772
+ */
6773
+ proto.BasePurchaseOrderRequest.prototype.setPurchaseRequisitionReferences = function(value) {
6774
+ return jspb.Message.setProto3StringField(this, 28, value);
6775
+ };
6776
+
6777
+
6778
+ /**
6779
+ * optional string purchase_requisition_number = 29;
6780
+ * @return {string}
6781
+ */
6782
+ proto.BasePurchaseOrderRequest.prototype.getPurchaseRequisitionNumber = function() {
6783
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
6784
+ };
6785
+
6786
+
6787
+ /**
6788
+ * @param {string} value
6789
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6790
+ */
6791
+ proto.BasePurchaseOrderRequest.prototype.setPurchaseRequisitionNumber = function(value) {
6792
+ return jspb.Message.setProto3StringField(this, 29, value);
6793
+ };
6794
+
6795
+
2631
6796
 
2632
6797
 
2633
6798