@aldiokta/protocgen 1.1.29 → 1.1.30

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,3754 @@ 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
+ };
2825
+
2826
+ if (includeInstance) {
2827
+ obj.$jspbMessageInstance = msg;
2828
+ }
2829
+ return obj;
2830
+ };
2831
+ }
2832
+
2833
+
2834
+ /**
2835
+ * Deserializes binary data (in protobuf wire format).
2836
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2837
+ * @return {!proto.Invoice}
2838
+ */
2839
+ proto.Invoice.deserializeBinary = function(bytes) {
2840
+ var reader = new jspb.BinaryReader(bytes);
2841
+ var msg = new proto.Invoice;
2842
+ return proto.Invoice.deserializeBinaryFromReader(msg, reader);
2843
+ };
2844
+
2845
+
2846
+ /**
2847
+ * Deserializes binary data (in protobuf wire format) from the
2848
+ * given reader into the given message object.
2849
+ * @param {!proto.Invoice} msg The message object to deserialize into.
2850
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2851
+ * @return {!proto.Invoice}
2852
+ */
2853
+ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
2854
+ while (reader.nextField()) {
2855
+ if (reader.isEndGroup()) {
2856
+ break;
2857
+ }
2858
+ var field = reader.getFieldNumber();
2859
+ switch (field) {
2860
+ case 1:
2861
+ var value = /** @type {number} */ (reader.readInt64());
2862
+ msg.setId(value);
2863
+ break;
2864
+ case 2:
2865
+ var value = /** @type {string} */ (reader.readString());
2866
+ msg.setPurchaseOrderReferencesId(value);
2867
+ break;
2868
+ case 3:
2869
+ var value = /** @type {string} */ (reader.readString());
2870
+ msg.setGoodReceiptReferencesId(value);
2871
+ break;
2872
+ case 4:
2873
+ var value = /** @type {string} */ (reader.readString());
2874
+ msg.setVendorReferencesId(value);
2875
+ break;
2876
+ case 5:
2877
+ var value = /** @type {string} */ (reader.readString());
2878
+ msg.setInvoiceSubject(value);
2879
+ break;
2880
+ case 6:
2881
+ var value = /** @type {string} */ (reader.readString());
2882
+ msg.setInvoiceType(value);
2883
+ break;
2884
+ case 7:
2885
+ var value = /** @type {string} */ (reader.readString());
2886
+ msg.setPlant(value);
2887
+ break;
2888
+ case 8:
2889
+ var value = /** @type {string} */ (reader.readString());
2890
+ msg.setInvoiceDate(value);
2891
+ break;
2892
+ case 9:
2893
+ var value = /** @type {string} */ (reader.readString());
2894
+ msg.setInvoiceNumber(value);
2895
+ break;
2896
+ case 10:
2897
+ var value = /** @type {string} */ (reader.readString());
2898
+ msg.setDocumentNumber(value);
2899
+ break;
2900
+ case 11:
2901
+ var value = /** @type {string} */ (reader.readString());
2902
+ msg.setRemarks(value);
2903
+ break;
2904
+ case 12:
2905
+ var value = /** @type {string} */ (reader.readString());
2906
+ msg.setTaxReferences(value);
2907
+ break;
2908
+ case 13:
2909
+ var value = /** @type {string} */ (reader.readString());
2910
+ msg.setExternalNumber(value);
2911
+ break;
2912
+ case 14:
2913
+ var value = /** @type {string} */ (reader.readString());
2914
+ msg.setGoodReceiptNumber(value);
2915
+ break;
2916
+ case 15:
2917
+ var value = /** @type {string} */ (reader.readString());
2918
+ msg.setPurchaseOrderNumber(value);
2919
+ break;
2920
+ case 16:
2921
+ var value = /** @type {string} */ (reader.readString());
2922
+ msg.setReferencesId(value);
2923
+ break;
2924
+ case 17:
2925
+ var value = /** @type {string} */ (reader.readString());
2926
+ msg.setStatus(value);
2927
+ break;
2928
+ case 18:
2929
+ var value = /** @type {string} */ (reader.readString());
2930
+ msg.setCreatedAt(value);
2931
+ break;
2932
+ case 19:
2933
+ var value = /** @type {string} */ (reader.readString());
2934
+ msg.setUpdatedAt(value);
2935
+ break;
2936
+ case 20:
2937
+ var value = /** @type {string} */ (reader.readString());
2938
+ msg.setCreatedBy(value);
2939
+ break;
2940
+ case 21:
2941
+ var value = /** @type {string} */ (reader.readString());
2942
+ msg.setUpdateBy(value);
2943
+ break;
2944
+ case 22:
2945
+ var value = /** @type {string} */ (reader.readString());
2946
+ msg.setCompaniesReferencesId(value);
2947
+ break;
2948
+ case 23:
2949
+ var value = /** @type {string} */ (reader.readString());
2950
+ msg.setGroupReferences(value);
2951
+ break;
2952
+ case 24:
2953
+ var value = /** @type {boolean} */ (reader.readBool());
2954
+ msg.setIsExpired(value);
2955
+ break;
2956
+ case 25:
2957
+ var value = /** @type {string} */ (reader.readString());
2958
+ msg.setFileIds(value);
2959
+ break;
2960
+ case 26:
2961
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
2962
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
2963
+ msg.addFiles(value);
2964
+ break;
2965
+ case 27:
2966
+ var value = new prisca_v1_core_company_company_pb.Company;
2967
+ reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
2968
+ msg.setCompany(value);
2969
+ break;
2970
+ case 28:
2971
+ var value = new proto.PurchaseOrder;
2972
+ reader.readMessage(value,proto.PurchaseOrder.deserializeBinaryFromReader);
2973
+ msg.setPurchaseOrder(value);
2974
+ break;
2975
+ case 29:
2976
+ var value = new proto.GoodReceipt;
2977
+ reader.readMessage(value,proto.GoodReceipt.deserializeBinaryFromReader);
2978
+ msg.addGoodReceipts(value);
2979
+ break;
2980
+ case 30:
2981
+ var value = new prisca_v1_vendor_domain_vendor_domain_pb.Vendor;
2982
+ reader.readMessage(value,prisca_v1_vendor_domain_vendor_domain_pb.Vendor.deserializeBinaryFromReader);
2983
+ msg.setVendor(value);
2984
+ break;
2985
+ case 31:
2986
+ var value = new prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction;
2987
+ reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.deserializeBinaryFromReader);
2988
+ msg.addItemTransactions(value);
2989
+ break;
2990
+ case 32:
2991
+ var value = new prisca_v1_core_users_users_pb.Users;
2992
+ reader.readMessage(value,prisca_v1_core_users_users_pb.Users.deserializeBinaryFromReader);
2993
+ msg.setCreatedByUser(value);
2994
+ break;
2995
+ case 33:
2996
+ var value = new prisca_v1_core_employee_employee_pb.Employee;
2997
+ reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
2998
+ msg.setUpdatedByEmployee(value);
2999
+ break;
3000
+ case 34:
3001
+ var value = /** @type {string} */ (reader.readString());
3002
+ msg.setVendorName(value);
3003
+ break;
3004
+ case 35:
3005
+ var value = /** @type {string} */ (reader.readString());
3006
+ msg.setShippingFileIds(value);
3007
+ break;
3008
+ case 36:
3009
+ var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
3010
+ reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
3011
+ msg.addShippingFiles(value);
3012
+ break;
3013
+ case 37:
3014
+ var value = new prisca_v1_core_users_users_pb.Users;
3015
+ reader.readMessage(value,prisca_v1_core_users_users_pb.Users.deserializeBinaryFromReader);
3016
+ msg.setUpdatedByUser(value);
3017
+ break;
3018
+ default:
3019
+ reader.skipField();
3020
+ break;
3021
+ }
3022
+ }
3023
+ return msg;
3024
+ };
3025
+
3026
+
3027
+ /**
3028
+ * Serializes the message to binary data (in protobuf wire format).
3029
+ * @return {!Uint8Array}
3030
+ */
3031
+ proto.Invoice.prototype.serializeBinary = function() {
3032
+ var writer = new jspb.BinaryWriter();
3033
+ proto.Invoice.serializeBinaryToWriter(this, writer);
3034
+ return writer.getResultBuffer();
3035
+ };
3036
+
3037
+
3038
+ /**
3039
+ * Serializes the given message to binary data (in protobuf wire
3040
+ * format), writing to the given BinaryWriter.
3041
+ * @param {!proto.Invoice} message
3042
+ * @param {!jspb.BinaryWriter} writer
3043
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3044
+ */
3045
+ proto.Invoice.serializeBinaryToWriter = function(message, writer) {
3046
+ var f = undefined;
3047
+ f = message.getId();
3048
+ if (f !== 0) {
3049
+ writer.writeInt64(
3050
+ 1,
3051
+ f
3052
+ );
3053
+ }
3054
+ f = message.getPurchaseOrderReferencesId();
3055
+ if (f.length > 0) {
3056
+ writer.writeString(
3057
+ 2,
3058
+ f
3059
+ );
3060
+ }
3061
+ f = message.getGoodReceiptReferencesId();
3062
+ if (f.length > 0) {
3063
+ writer.writeString(
3064
+ 3,
3065
+ f
3066
+ );
3067
+ }
3068
+ f = message.getVendorReferencesId();
3069
+ if (f.length > 0) {
3070
+ writer.writeString(
3071
+ 4,
3072
+ f
3073
+ );
3074
+ }
3075
+ f = message.getInvoiceSubject();
3076
+ if (f.length > 0) {
3077
+ writer.writeString(
3078
+ 5,
3079
+ f
3080
+ );
3081
+ }
3082
+ f = message.getInvoiceType();
3083
+ if (f.length > 0) {
3084
+ writer.writeString(
3085
+ 6,
3086
+ f
3087
+ );
3088
+ }
3089
+ f = message.getPlant();
3090
+ if (f.length > 0) {
3091
+ writer.writeString(
3092
+ 7,
3093
+ f
3094
+ );
3095
+ }
3096
+ f = message.getInvoiceDate();
3097
+ if (f.length > 0) {
3098
+ writer.writeString(
3099
+ 8,
3100
+ f
3101
+ );
3102
+ }
3103
+ f = message.getInvoiceNumber();
3104
+ if (f.length > 0) {
3105
+ writer.writeString(
3106
+ 9,
3107
+ f
3108
+ );
3109
+ }
3110
+ f = message.getDocumentNumber();
3111
+ if (f.length > 0) {
3112
+ writer.writeString(
3113
+ 10,
3114
+ f
3115
+ );
3116
+ }
3117
+ f = message.getRemarks();
3118
+ if (f.length > 0) {
3119
+ writer.writeString(
3120
+ 11,
3121
+ f
3122
+ );
3123
+ }
3124
+ f = message.getTaxReferences();
3125
+ if (f.length > 0) {
3126
+ writer.writeString(
3127
+ 12,
3128
+ f
3129
+ );
3130
+ }
3131
+ f = message.getExternalNumber();
3132
+ if (f.length > 0) {
3133
+ writer.writeString(
3134
+ 13,
3135
+ f
3136
+ );
3137
+ }
3138
+ f = message.getGoodReceiptNumber();
3139
+ if (f.length > 0) {
3140
+ writer.writeString(
3141
+ 14,
3142
+ f
3143
+ );
3144
+ }
3145
+ f = message.getPurchaseOrderNumber();
3146
+ if (f.length > 0) {
3147
+ writer.writeString(
3148
+ 15,
3149
+ f
3150
+ );
3151
+ }
3152
+ f = message.getReferencesId();
3153
+ if (f.length > 0) {
3154
+ writer.writeString(
3155
+ 16,
3156
+ f
3157
+ );
3158
+ }
3159
+ f = message.getStatus();
3160
+ if (f.length > 0) {
3161
+ writer.writeString(
3162
+ 17,
3163
+ f
3164
+ );
3165
+ }
3166
+ f = message.getCreatedAt();
3167
+ if (f.length > 0) {
3168
+ writer.writeString(
3169
+ 18,
3170
+ f
3171
+ );
3172
+ }
3173
+ f = message.getUpdatedAt();
3174
+ if (f.length > 0) {
3175
+ writer.writeString(
3176
+ 19,
3177
+ f
3178
+ );
3179
+ }
3180
+ f = message.getCreatedBy();
3181
+ if (f.length > 0) {
3182
+ writer.writeString(
3183
+ 20,
3184
+ f
3185
+ );
3186
+ }
3187
+ f = message.getUpdateBy();
3188
+ if (f.length > 0) {
3189
+ writer.writeString(
3190
+ 21,
3191
+ f
3192
+ );
3193
+ }
3194
+ f = message.getCompaniesReferencesId();
3195
+ if (f.length > 0) {
3196
+ writer.writeString(
3197
+ 22,
3198
+ f
3199
+ );
3200
+ }
3201
+ f = message.getGroupReferences();
3202
+ if (f.length > 0) {
3203
+ writer.writeString(
3204
+ 23,
3205
+ f
3206
+ );
3207
+ }
3208
+ f = message.getIsExpired();
3209
+ if (f) {
3210
+ writer.writeBool(
3211
+ 24,
3212
+ f
3213
+ );
3214
+ }
3215
+ f = message.getFileIds();
3216
+ if (f.length > 0) {
3217
+ writer.writeString(
3218
+ 25,
3219
+ f
3220
+ );
3221
+ }
3222
+ f = message.getFilesList();
3223
+ if (f.length > 0) {
3224
+ writer.writeRepeatedMessage(
3225
+ 26,
3226
+ f,
3227
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3228
+ );
3229
+ }
3230
+ f = message.getCompany();
3231
+ if (f != null) {
3232
+ writer.writeMessage(
3233
+ 27,
3234
+ f,
3235
+ prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
3236
+ );
3237
+ }
3238
+ f = message.getPurchaseOrder();
3239
+ if (f != null) {
3240
+ writer.writeMessage(
3241
+ 28,
3242
+ f,
3243
+ proto.PurchaseOrder.serializeBinaryToWriter
3244
+ );
3245
+ }
3246
+ f = message.getGoodReceiptsList();
3247
+ if (f.length > 0) {
3248
+ writer.writeRepeatedMessage(
3249
+ 29,
3250
+ f,
3251
+ proto.GoodReceipt.serializeBinaryToWriter
3252
+ );
3253
+ }
3254
+ f = message.getVendor();
3255
+ if (f != null) {
3256
+ writer.writeMessage(
3257
+ 30,
3258
+ f,
3259
+ prisca_v1_vendor_domain_vendor_domain_pb.Vendor.serializeBinaryToWriter
3260
+ );
3261
+ }
3262
+ f = message.getItemTransactionsList();
3263
+ if (f.length > 0) {
3264
+ writer.writeRepeatedMessage(
3265
+ 31,
3266
+ f,
3267
+ prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction.serializeBinaryToWriter
3268
+ );
3269
+ }
3270
+ f = message.getCreatedByUser();
3271
+ if (f != null) {
3272
+ writer.writeMessage(
3273
+ 32,
3274
+ f,
3275
+ prisca_v1_core_users_users_pb.Users.serializeBinaryToWriter
3276
+ );
3277
+ }
3278
+ f = message.getUpdatedByEmployee();
3279
+ if (f != null) {
3280
+ writer.writeMessage(
3281
+ 33,
3282
+ f,
3283
+ prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
3284
+ );
3285
+ }
3286
+ f = message.getVendorName();
3287
+ if (f.length > 0) {
3288
+ writer.writeString(
3289
+ 34,
3290
+ f
3291
+ );
3292
+ }
3293
+ f = message.getShippingFileIds();
3294
+ if (f.length > 0) {
3295
+ writer.writeString(
3296
+ 35,
3297
+ f
3298
+ );
3299
+ }
3300
+ f = message.getShippingFilesList();
3301
+ if (f.length > 0) {
3302
+ writer.writeRepeatedMessage(
3303
+ 36,
3304
+ f,
3305
+ prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
3306
+ );
3307
+ }
3308
+ f = message.getUpdatedByUser();
3309
+ if (f != null) {
3310
+ writer.writeMessage(
3311
+ 37,
3312
+ f,
3313
+ prisca_v1_core_users_users_pb.Users.serializeBinaryToWriter
3314
+ );
3315
+ }
3316
+ };
3317
+
3318
+
3319
+ /**
3320
+ * optional int64 id = 1;
3321
+ * @return {number}
3322
+ */
3323
+ proto.Invoice.prototype.getId = function() {
3324
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3325
+ };
3326
+
3327
+
3328
+ /**
3329
+ * @param {number} value
3330
+ * @return {!proto.Invoice} returns this
3331
+ */
3332
+ proto.Invoice.prototype.setId = function(value) {
3333
+ return jspb.Message.setProto3IntField(this, 1, value);
3334
+ };
3335
+
3336
+
3337
+ /**
3338
+ * optional string purchase_order_references_id = 2;
3339
+ * @return {string}
3340
+ */
3341
+ proto.Invoice.prototype.getPurchaseOrderReferencesId = function() {
3342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
3343
+ };
3344
+
3345
+
3346
+ /**
3347
+ * @param {string} value
3348
+ * @return {!proto.Invoice} returns this
3349
+ */
3350
+ proto.Invoice.prototype.setPurchaseOrderReferencesId = function(value) {
3351
+ return jspb.Message.setProto3StringField(this, 2, value);
3352
+ };
3353
+
3354
+
3355
+ /**
3356
+ * optional string good_receipt_references_id = 3;
3357
+ * @return {string}
3358
+ */
3359
+ proto.Invoice.prototype.getGoodReceiptReferencesId = function() {
3360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3361
+ };
3362
+
3363
+
3364
+ /**
3365
+ * @param {string} value
3366
+ * @return {!proto.Invoice} returns this
3367
+ */
3368
+ proto.Invoice.prototype.setGoodReceiptReferencesId = function(value) {
3369
+ return jspb.Message.setProto3StringField(this, 3, value);
3370
+ };
3371
+
3372
+
3373
+ /**
3374
+ * optional string vendor_references_id = 4;
3375
+ * @return {string}
3376
+ */
3377
+ proto.Invoice.prototype.getVendorReferencesId = function() {
3378
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
3379
+ };
3380
+
3381
+
3382
+ /**
3383
+ * @param {string} value
3384
+ * @return {!proto.Invoice} returns this
3385
+ */
3386
+ proto.Invoice.prototype.setVendorReferencesId = function(value) {
3387
+ return jspb.Message.setProto3StringField(this, 4, value);
3388
+ };
3389
+
3390
+
3391
+ /**
3392
+ * optional string invoice_subject = 5;
3393
+ * @return {string}
3394
+ */
3395
+ proto.Invoice.prototype.getInvoiceSubject = function() {
3396
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3397
+ };
3398
+
3399
+
3400
+ /**
3401
+ * @param {string} value
3402
+ * @return {!proto.Invoice} returns this
3403
+ */
3404
+ proto.Invoice.prototype.setInvoiceSubject = function(value) {
3405
+ return jspb.Message.setProto3StringField(this, 5, value);
3406
+ };
3407
+
3408
+
3409
+ /**
3410
+ * optional string invoice_type = 6;
3411
+ * @return {string}
3412
+ */
3413
+ proto.Invoice.prototype.getInvoiceType = function() {
3414
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
3415
+ };
3416
+
3417
+
3418
+ /**
3419
+ * @param {string} value
3420
+ * @return {!proto.Invoice} returns this
3421
+ */
3422
+ proto.Invoice.prototype.setInvoiceType = function(value) {
3423
+ return jspb.Message.setProto3StringField(this, 6, value);
3424
+ };
3425
+
3426
+
3427
+ /**
3428
+ * optional string plant = 7;
3429
+ * @return {string}
3430
+ */
3431
+ proto.Invoice.prototype.getPlant = function() {
3432
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
3433
+ };
3434
+
3435
+
3436
+ /**
3437
+ * @param {string} value
3438
+ * @return {!proto.Invoice} returns this
3439
+ */
3440
+ proto.Invoice.prototype.setPlant = function(value) {
3441
+ return jspb.Message.setProto3StringField(this, 7, value);
3442
+ };
3443
+
3444
+
3445
+ /**
3446
+ * optional string invoice_date = 8;
3447
+ * @return {string}
3448
+ */
3449
+ proto.Invoice.prototype.getInvoiceDate = function() {
3450
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
3451
+ };
3452
+
3453
+
3454
+ /**
3455
+ * @param {string} value
3456
+ * @return {!proto.Invoice} returns this
3457
+ */
3458
+ proto.Invoice.prototype.setInvoiceDate = function(value) {
3459
+ return jspb.Message.setProto3StringField(this, 8, value);
3460
+ };
3461
+
3462
+
3463
+ /**
3464
+ * optional string invoice_number = 9;
3465
+ * @return {string}
3466
+ */
3467
+ proto.Invoice.prototype.getInvoiceNumber = function() {
3468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3469
+ };
3470
+
3471
+
3472
+ /**
3473
+ * @param {string} value
3474
+ * @return {!proto.Invoice} returns this
3475
+ */
3476
+ proto.Invoice.prototype.setInvoiceNumber = function(value) {
3477
+ return jspb.Message.setProto3StringField(this, 9, value);
3478
+ };
3479
+
3480
+
3481
+ /**
3482
+ * optional string document_number = 10;
3483
+ * @return {string}
3484
+ */
3485
+ proto.Invoice.prototype.getDocumentNumber = function() {
3486
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
3487
+ };
3488
+
3489
+
3490
+ /**
3491
+ * @param {string} value
3492
+ * @return {!proto.Invoice} returns this
3493
+ */
3494
+ proto.Invoice.prototype.setDocumentNumber = function(value) {
3495
+ return jspb.Message.setProto3StringField(this, 10, value);
3496
+ };
3497
+
3498
+
3499
+ /**
3500
+ * optional string remarks = 11;
3501
+ * @return {string}
3502
+ */
3503
+ proto.Invoice.prototype.getRemarks = function() {
3504
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3505
+ };
3506
+
3507
+
3508
+ /**
3509
+ * @param {string} value
3510
+ * @return {!proto.Invoice} returns this
3511
+ */
3512
+ proto.Invoice.prototype.setRemarks = function(value) {
3513
+ return jspb.Message.setProto3StringField(this, 11, value);
3514
+ };
3515
+
3516
+
3517
+ /**
3518
+ * optional string tax_references = 12;
3519
+ * @return {string}
3520
+ */
3521
+ proto.Invoice.prototype.getTaxReferences = function() {
3522
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
3523
+ };
3524
+
3525
+
3526
+ /**
3527
+ * @param {string} value
3528
+ * @return {!proto.Invoice} returns this
3529
+ */
3530
+ proto.Invoice.prototype.setTaxReferences = function(value) {
3531
+ return jspb.Message.setProto3StringField(this, 12, value);
3532
+ };
3533
+
3534
+
3535
+ /**
3536
+ * optional string external_number = 13;
3537
+ * @return {string}
3538
+ */
3539
+ proto.Invoice.prototype.getExternalNumber = function() {
3540
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
3541
+ };
3542
+
3543
+
3544
+ /**
3545
+ * @param {string} value
3546
+ * @return {!proto.Invoice} returns this
3547
+ */
3548
+ proto.Invoice.prototype.setExternalNumber = function(value) {
3549
+ return jspb.Message.setProto3StringField(this, 13, value);
3550
+ };
3551
+
3552
+
3553
+ /**
3554
+ * optional string good_receipt_number = 14;
3555
+ * @return {string}
3556
+ */
3557
+ proto.Invoice.prototype.getGoodReceiptNumber = function() {
3558
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
3559
+ };
3560
+
3561
+
3562
+ /**
3563
+ * @param {string} value
3564
+ * @return {!proto.Invoice} returns this
3565
+ */
3566
+ proto.Invoice.prototype.setGoodReceiptNumber = function(value) {
3567
+ return jspb.Message.setProto3StringField(this, 14, value);
3568
+ };
3569
+
3570
+
3571
+ /**
3572
+ * optional string purchase_order_number = 15;
3573
+ * @return {string}
3574
+ */
3575
+ proto.Invoice.prototype.getPurchaseOrderNumber = function() {
3576
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
3577
+ };
3578
+
3579
+
3580
+ /**
3581
+ * @param {string} value
3582
+ * @return {!proto.Invoice} returns this
3583
+ */
3584
+ proto.Invoice.prototype.setPurchaseOrderNumber = function(value) {
3585
+ return jspb.Message.setProto3StringField(this, 15, value);
3586
+ };
3587
+
3588
+
3589
+ /**
3590
+ * optional string references_id = 16;
3591
+ * @return {string}
3592
+ */
3593
+ proto.Invoice.prototype.getReferencesId = function() {
3594
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3595
+ };
3596
+
3597
+
3598
+ /**
3599
+ * @param {string} value
3600
+ * @return {!proto.Invoice} returns this
3601
+ */
3602
+ proto.Invoice.prototype.setReferencesId = function(value) {
3603
+ return jspb.Message.setProto3StringField(this, 16, value);
3604
+ };
3605
+
3606
+
3607
+ /**
3608
+ * optional string status = 17;
3609
+ * @return {string}
3610
+ */
3611
+ proto.Invoice.prototype.getStatus = function() {
3612
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
3613
+ };
3614
+
3615
+
3616
+ /**
3617
+ * @param {string} value
3618
+ * @return {!proto.Invoice} returns this
3619
+ */
3620
+ proto.Invoice.prototype.setStatus = function(value) {
3621
+ return jspb.Message.setProto3StringField(this, 17, value);
3622
+ };
3623
+
3624
+
3625
+ /**
3626
+ * optional string created_at = 18;
3627
+ * @return {string}
3628
+ */
3629
+ proto.Invoice.prototype.getCreatedAt = function() {
3630
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
3631
+ };
3632
+
3633
+
3634
+ /**
3635
+ * @param {string} value
3636
+ * @return {!proto.Invoice} returns this
3637
+ */
3638
+ proto.Invoice.prototype.setCreatedAt = function(value) {
3639
+ return jspb.Message.setProto3StringField(this, 18, value);
3640
+ };
3641
+
3642
+
3643
+ /**
3644
+ * optional string updated_at = 19;
3645
+ * @return {string}
3646
+ */
3647
+ proto.Invoice.prototype.getUpdatedAt = function() {
3648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
3649
+ };
3650
+
3651
+
3652
+ /**
3653
+ * @param {string} value
3654
+ * @return {!proto.Invoice} returns this
3655
+ */
3656
+ proto.Invoice.prototype.setUpdatedAt = function(value) {
3657
+ return jspb.Message.setProto3StringField(this, 19, value);
3658
+ };
3659
+
3660
+
3661
+ /**
3662
+ * optional string created_by = 20;
3663
+ * @return {string}
3664
+ */
3665
+ proto.Invoice.prototype.getCreatedBy = function() {
3666
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, ""));
3667
+ };
3668
+
3669
+
3670
+ /**
3671
+ * @param {string} value
3672
+ * @return {!proto.Invoice} returns this
3673
+ */
3674
+ proto.Invoice.prototype.setCreatedBy = function(value) {
3675
+ return jspb.Message.setProto3StringField(this, 20, value);
3676
+ };
3677
+
3678
+
3679
+ /**
3680
+ * optional string update_by = 21;
3681
+ * @return {string}
3682
+ */
3683
+ proto.Invoice.prototype.getUpdateBy = function() {
3684
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, ""));
3685
+ };
3686
+
3687
+
3688
+ /**
3689
+ * @param {string} value
3690
+ * @return {!proto.Invoice} returns this
3691
+ */
3692
+ proto.Invoice.prototype.setUpdateBy = function(value) {
3693
+ return jspb.Message.setProto3StringField(this, 21, value);
3694
+ };
3695
+
3696
+
3697
+ /**
3698
+ * optional string companies_references_id = 22;
3699
+ * @return {string}
3700
+ */
3701
+ proto.Invoice.prototype.getCompaniesReferencesId = function() {
3702
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
3703
+ };
3704
+
3705
+
3706
+ /**
3707
+ * @param {string} value
3708
+ * @return {!proto.Invoice} returns this
3709
+ */
3710
+ proto.Invoice.prototype.setCompaniesReferencesId = function(value) {
3711
+ return jspb.Message.setProto3StringField(this, 22, value);
3712
+ };
3713
+
3714
+
3715
+ /**
3716
+ * optional string group_references = 23;
3717
+ * @return {string}
3718
+ */
3719
+ proto.Invoice.prototype.getGroupReferences = function() {
3720
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
3721
+ };
3722
+
3723
+
3724
+ /**
3725
+ * @param {string} value
3726
+ * @return {!proto.Invoice} returns this
3727
+ */
3728
+ proto.Invoice.prototype.setGroupReferences = function(value) {
3729
+ return jspb.Message.setProto3StringField(this, 23, value);
3730
+ };
3731
+
3732
+
3733
+ /**
3734
+ * optional bool is_expired = 24;
3735
+ * @return {boolean}
3736
+ */
3737
+ proto.Invoice.prototype.getIsExpired = function() {
3738
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false));
3739
+ };
3740
+
3741
+
3742
+ /**
3743
+ * @param {boolean} value
3744
+ * @return {!proto.Invoice} returns this
3745
+ */
3746
+ proto.Invoice.prototype.setIsExpired = function(value) {
3747
+ return jspb.Message.setProto3BooleanField(this, 24, value);
3748
+ };
3749
+
3750
+
3751
+ /**
3752
+ * optional string file_ids = 25;
3753
+ * @return {string}
3754
+ */
3755
+ proto.Invoice.prototype.getFileIds = function() {
3756
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, ""));
3757
+ };
3758
+
3759
+
3760
+ /**
3761
+ * @param {string} value
3762
+ * @return {!proto.Invoice} returns this
3763
+ */
3764
+ proto.Invoice.prototype.setFileIds = function(value) {
3765
+ return jspb.Message.setProto3StringField(this, 25, value);
3766
+ };
3767
+
3768
+
3769
+ /**
3770
+ * repeated FileUploadReferencesReq files = 26;
3771
+ * @return {!Array<!proto.FileUploadReferencesReq>}
3772
+ */
3773
+ proto.Invoice.prototype.getFilesList = function() {
3774
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
3775
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 26));
3776
+ };
3777
+
3778
+
3779
+ /**
3780
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
3781
+ * @return {!proto.Invoice} returns this
3782
+ */
3783
+ proto.Invoice.prototype.setFilesList = function(value) {
3784
+ return jspb.Message.setRepeatedWrapperField(this, 26, value);
3785
+ };
3786
+
3787
+
3788
+ /**
3789
+ * @param {!proto.FileUploadReferencesReq=} opt_value
3790
+ * @param {number=} opt_index
3791
+ * @return {!proto.FileUploadReferencesReq}
3792
+ */
3793
+ proto.Invoice.prototype.addFiles = function(opt_value, opt_index) {
3794
+ return jspb.Message.addToRepeatedWrapperField(this, 26, opt_value, proto.FileUploadReferencesReq, opt_index);
3795
+ };
3796
+
3797
+
3798
+ /**
3799
+ * Clears the list making it empty but non-null.
3800
+ * @return {!proto.Invoice} returns this
3801
+ */
3802
+ proto.Invoice.prototype.clearFilesList = function() {
3803
+ return this.setFilesList([]);
3804
+ };
3805
+
3806
+
3807
+ /**
3808
+ * optional Company company = 27;
3809
+ * @return {?proto.Company}
3810
+ */
3811
+ proto.Invoice.prototype.getCompany = function() {
3812
+ return /** @type{?proto.Company} */ (
3813
+ jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 27));
3814
+ };
3815
+
3816
+
3817
+ /**
3818
+ * @param {?proto.Company|undefined} value
3819
+ * @return {!proto.Invoice} returns this
3820
+ */
3821
+ proto.Invoice.prototype.setCompany = function(value) {
3822
+ return jspb.Message.setWrapperField(this, 27, value);
3823
+ };
3824
+
3825
+
3826
+ /**
3827
+ * Clears the message field making it undefined.
3828
+ * @return {!proto.Invoice} returns this
3829
+ */
3830
+ proto.Invoice.prototype.clearCompany = function() {
3831
+ return this.setCompany(undefined);
3832
+ };
3833
+
3834
+
3835
+ /**
3836
+ * Returns whether this field is set.
3837
+ * @return {boolean}
3838
+ */
3839
+ proto.Invoice.prototype.hasCompany = function() {
3840
+ return jspb.Message.getField(this, 27) != null;
3841
+ };
3842
+
3843
+
3844
+ /**
3845
+ * optional PurchaseOrder purchase_order = 28;
3846
+ * @return {?proto.PurchaseOrder}
3847
+ */
3848
+ proto.Invoice.prototype.getPurchaseOrder = function() {
3849
+ return /** @type{?proto.PurchaseOrder} */ (
3850
+ jspb.Message.getWrapperField(this, proto.PurchaseOrder, 28));
3851
+ };
3852
+
3853
+
3854
+ /**
3855
+ * @param {?proto.PurchaseOrder|undefined} value
3856
+ * @return {!proto.Invoice} returns this
3857
+ */
3858
+ proto.Invoice.prototype.setPurchaseOrder = function(value) {
3859
+ return jspb.Message.setWrapperField(this, 28, value);
3860
+ };
3861
+
3862
+
3863
+ /**
3864
+ * Clears the message field making it undefined.
3865
+ * @return {!proto.Invoice} returns this
3866
+ */
3867
+ proto.Invoice.prototype.clearPurchaseOrder = function() {
3868
+ return this.setPurchaseOrder(undefined);
3869
+ };
3870
+
3871
+
3872
+ /**
3873
+ * Returns whether this field is set.
3874
+ * @return {boolean}
3875
+ */
3876
+ proto.Invoice.prototype.hasPurchaseOrder = function() {
3877
+ return jspb.Message.getField(this, 28) != null;
3878
+ };
3879
+
3880
+
3881
+ /**
3882
+ * repeated GoodReceipt good_receipts = 29;
3883
+ * @return {!Array<!proto.GoodReceipt>}
3884
+ */
3885
+ proto.Invoice.prototype.getGoodReceiptsList = function() {
3886
+ return /** @type{!Array<!proto.GoodReceipt>} */ (
3887
+ jspb.Message.getRepeatedWrapperField(this, proto.GoodReceipt, 29));
3888
+ };
3889
+
3890
+
3891
+ /**
3892
+ * @param {!Array<!proto.GoodReceipt>} value
3893
+ * @return {!proto.Invoice} returns this
3894
+ */
3895
+ proto.Invoice.prototype.setGoodReceiptsList = function(value) {
3896
+ return jspb.Message.setRepeatedWrapperField(this, 29, value);
3897
+ };
3898
+
3899
+
3900
+ /**
3901
+ * @param {!proto.GoodReceipt=} opt_value
3902
+ * @param {number=} opt_index
3903
+ * @return {!proto.GoodReceipt}
3904
+ */
3905
+ proto.Invoice.prototype.addGoodReceipts = function(opt_value, opt_index) {
3906
+ return jspb.Message.addToRepeatedWrapperField(this, 29, opt_value, proto.GoodReceipt, opt_index);
3907
+ };
3908
+
3909
+
3910
+ /**
3911
+ * Clears the list making it empty but non-null.
3912
+ * @return {!proto.Invoice} returns this
3913
+ */
3914
+ proto.Invoice.prototype.clearGoodReceiptsList = function() {
3915
+ return this.setGoodReceiptsList([]);
3916
+ };
3917
+
3918
+
3919
+ /**
3920
+ * optional Vendor vendor = 30;
3921
+ * @return {?proto.Vendor}
3922
+ */
3923
+ proto.Invoice.prototype.getVendor = function() {
3924
+ return /** @type{?proto.Vendor} */ (
3925
+ jspb.Message.getWrapperField(this, prisca_v1_vendor_domain_vendor_domain_pb.Vendor, 30));
3926
+ };
3927
+
3928
+
3929
+ /**
3930
+ * @param {?proto.Vendor|undefined} value
3931
+ * @return {!proto.Invoice} returns this
3932
+ */
3933
+ proto.Invoice.prototype.setVendor = function(value) {
3934
+ return jspb.Message.setWrapperField(this, 30, value);
3935
+ };
3936
+
3937
+
3938
+ /**
3939
+ * Clears the message field making it undefined.
3940
+ * @return {!proto.Invoice} returns this
3941
+ */
3942
+ proto.Invoice.prototype.clearVendor = function() {
3943
+ return this.setVendor(undefined);
3944
+ };
3945
+
3946
+
3947
+ /**
3948
+ * Returns whether this field is set.
3949
+ * @return {boolean}
3950
+ */
3951
+ proto.Invoice.prototype.hasVendor = function() {
3952
+ return jspb.Message.getField(this, 30) != null;
3953
+ };
3954
+
3955
+
3956
+ /**
3957
+ * repeated ItemTransaction item_transactions = 31;
3958
+ * @return {!Array<!proto.ItemTransaction>}
3959
+ */
3960
+ proto.Invoice.prototype.getItemTransactionsList = function() {
3961
+ return /** @type{!Array<!proto.ItemTransaction>} */ (
3962
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.ItemTransaction, 31));
3963
+ };
3964
+
3965
+
3966
+ /**
3967
+ * @param {!Array<!proto.ItemTransaction>} value
3968
+ * @return {!proto.Invoice} returns this
3969
+ */
3970
+ proto.Invoice.prototype.setItemTransactionsList = function(value) {
3971
+ return jspb.Message.setRepeatedWrapperField(this, 31, value);
3972
+ };
3973
+
3974
+
3975
+ /**
3976
+ * @param {!proto.ItemTransaction=} opt_value
3977
+ * @param {number=} opt_index
3978
+ * @return {!proto.ItemTransaction}
3979
+ */
3980
+ proto.Invoice.prototype.addItemTransactions = function(opt_value, opt_index) {
3981
+ return jspb.Message.addToRepeatedWrapperField(this, 31, opt_value, proto.ItemTransaction, opt_index);
3982
+ };
3983
+
3984
+
3985
+ /**
3986
+ * Clears the list making it empty but non-null.
3987
+ * @return {!proto.Invoice} returns this
3988
+ */
3989
+ proto.Invoice.prototype.clearItemTransactionsList = function() {
3990
+ return this.setItemTransactionsList([]);
3991
+ };
3992
+
3993
+
3994
+ /**
3995
+ * optional Users created_by_user = 32;
3996
+ * @return {?proto.Users}
3997
+ */
3998
+ proto.Invoice.prototype.getCreatedByUser = function() {
3999
+ return /** @type{?proto.Users} */ (
4000
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_users_pb.Users, 32));
4001
+ };
4002
+
4003
+
4004
+ /**
4005
+ * @param {?proto.Users|undefined} value
4006
+ * @return {!proto.Invoice} returns this
4007
+ */
4008
+ proto.Invoice.prototype.setCreatedByUser = function(value) {
4009
+ return jspb.Message.setWrapperField(this, 32, value);
4010
+ };
4011
+
4012
+
4013
+ /**
4014
+ * Clears the message field making it undefined.
4015
+ * @return {!proto.Invoice} returns this
4016
+ */
4017
+ proto.Invoice.prototype.clearCreatedByUser = function() {
4018
+ return this.setCreatedByUser(undefined);
4019
+ };
4020
+
4021
+
4022
+ /**
4023
+ * Returns whether this field is set.
4024
+ * @return {boolean}
4025
+ */
4026
+ proto.Invoice.prototype.hasCreatedByUser = function() {
4027
+ return jspb.Message.getField(this, 32) != null;
4028
+ };
4029
+
4030
+
4031
+ /**
4032
+ * optional Employee updated_by_employee = 33;
4033
+ * @return {?proto.Employee}
4034
+ */
4035
+ proto.Invoice.prototype.getUpdatedByEmployee = function() {
4036
+ return /** @type{?proto.Employee} */ (
4037
+ jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 33));
4038
+ };
4039
+
4040
+
4041
+ /**
4042
+ * @param {?proto.Employee|undefined} value
4043
+ * @return {!proto.Invoice} returns this
4044
+ */
4045
+ proto.Invoice.prototype.setUpdatedByEmployee = function(value) {
4046
+ return jspb.Message.setWrapperField(this, 33, value);
4047
+ };
4048
+
4049
+
4050
+ /**
4051
+ * Clears the message field making it undefined.
4052
+ * @return {!proto.Invoice} returns this
4053
+ */
4054
+ proto.Invoice.prototype.clearUpdatedByEmployee = function() {
4055
+ return this.setUpdatedByEmployee(undefined);
4056
+ };
4057
+
4058
+
4059
+ /**
4060
+ * Returns whether this field is set.
4061
+ * @return {boolean}
4062
+ */
4063
+ proto.Invoice.prototype.hasUpdatedByEmployee = function() {
4064
+ return jspb.Message.getField(this, 33) != null;
4065
+ };
4066
+
4067
+
4068
+ /**
4069
+ * optional string vendor_name = 34;
4070
+ * @return {string}
4071
+ */
4072
+ proto.Invoice.prototype.getVendorName = function() {
4073
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
4074
+ };
4075
+
4076
+
4077
+ /**
4078
+ * @param {string} value
4079
+ * @return {!proto.Invoice} returns this
4080
+ */
4081
+ proto.Invoice.prototype.setVendorName = function(value) {
4082
+ return jspb.Message.setProto3StringField(this, 34, value);
4083
+ };
4084
+
4085
+
4086
+ /**
4087
+ * optional string shipping_file_ids = 35;
4088
+ * @return {string}
4089
+ */
4090
+ proto.Invoice.prototype.getShippingFileIds = function() {
4091
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, ""));
4092
+ };
4093
+
4094
+
4095
+ /**
4096
+ * @param {string} value
4097
+ * @return {!proto.Invoice} returns this
4098
+ */
4099
+ proto.Invoice.prototype.setShippingFileIds = function(value) {
4100
+ return jspb.Message.setProto3StringField(this, 35, value);
4101
+ };
4102
+
4103
+
4104
+ /**
4105
+ * repeated FileUploadReferencesReq shipping_files = 36;
4106
+ * @return {!Array<!proto.FileUploadReferencesReq>}
4107
+ */
4108
+ proto.Invoice.prototype.getShippingFilesList = function() {
4109
+ return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
4110
+ jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 36));
4111
+ };
4112
+
4113
+
4114
+ /**
4115
+ * @param {!Array<!proto.FileUploadReferencesReq>} value
4116
+ * @return {!proto.Invoice} returns this
4117
+ */
4118
+ proto.Invoice.prototype.setShippingFilesList = function(value) {
4119
+ return jspb.Message.setRepeatedWrapperField(this, 36, value);
4120
+ };
4121
+
4122
+
4123
+ /**
4124
+ * @param {!proto.FileUploadReferencesReq=} opt_value
4125
+ * @param {number=} opt_index
4126
+ * @return {!proto.FileUploadReferencesReq}
4127
+ */
4128
+ proto.Invoice.prototype.addShippingFiles = function(opt_value, opt_index) {
4129
+ return jspb.Message.addToRepeatedWrapperField(this, 36, opt_value, proto.FileUploadReferencesReq, opt_index);
4130
+ };
4131
+
4132
+
4133
+ /**
4134
+ * Clears the list making it empty but non-null.
4135
+ * @return {!proto.Invoice} returns this
4136
+ */
4137
+ proto.Invoice.prototype.clearShippingFilesList = function() {
4138
+ return this.setShippingFilesList([]);
4139
+ };
4140
+
4141
+
4142
+ /**
4143
+ * optional Users updated_by_user = 37;
4144
+ * @return {?proto.Users}
4145
+ */
4146
+ proto.Invoice.prototype.getUpdatedByUser = function() {
4147
+ return /** @type{?proto.Users} */ (
4148
+ jspb.Message.getWrapperField(this, prisca_v1_core_users_users_pb.Users, 37));
4149
+ };
4150
+
4151
+
4152
+ /**
4153
+ * @param {?proto.Users|undefined} value
4154
+ * @return {!proto.Invoice} returns this
4155
+ */
4156
+ proto.Invoice.prototype.setUpdatedByUser = function(value) {
4157
+ return jspb.Message.setWrapperField(this, 37, value);
4158
+ };
4159
+
4160
+
4161
+ /**
4162
+ * Clears the message field making it undefined.
4163
+ * @return {!proto.Invoice} returns this
4164
+ */
4165
+ proto.Invoice.prototype.clearUpdatedByUser = function() {
4166
+ return this.setUpdatedByUser(undefined);
4167
+ };
4168
+
4169
+
4170
+ /**
4171
+ * Returns whether this field is set.
4172
+ * @return {boolean}
378
4173
  */
379
- proto.DeletePurchaseOrderResponse = function(opt_data) {
380
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4174
+ proto.Invoice.prototype.hasUpdatedByUser = function() {
4175
+ return jspb.Message.getField(this, 37) != null;
381
4176
  };
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
- }
4177
+
4178
+
390
4179
 
391
4180
  /**
392
4181
  * List of repeated fields within this message type.
393
4182
  * @private {!Array<number>}
394
4183
  * @const
395
4184
  */
396
- proto.PurchaseOrder.repeatedFields_ = [28,29];
4185
+ proto.PurchaseOrder.repeatedFields_ = [28,29,41,42];
397
4186
 
398
4187
 
399
4188
 
@@ -463,7 +4252,15 @@ updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_e
463
4252
  companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 33, ""),
464
4253
  companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.BaseCompany.toObject(includeInstance, f),
465
4254
  department: jspb.Message.getFieldWithDefault(msg, 35, ""),
466
- salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 36, "")
4255
+ salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 36, ""),
4256
+ biddingReferences: jspb.Message.getFieldWithDefault(msg, 37, ""),
4257
+ biddingNumber: jspb.Message.getFieldWithDefault(msg, 38, ""),
4258
+ purchaseRequisitionReferences: jspb.Message.getFieldWithDefault(msg, 39, ""),
4259
+ purchaseRequisitionNumber: jspb.Message.getFieldWithDefault(msg, 40, ""),
4260
+ invoicesList: jspb.Message.toObjectList(msg.getInvoicesList(),
4261
+ proto.Invoice.toObject, includeInstance),
4262
+ goodReceiptsList: jspb.Message.toObjectList(msg.getGoodReceiptsList(),
4263
+ proto.GoodReceipt.toObject, includeInstance)
467
4264
  };
468
4265
 
469
4266
  if (includeInstance) {
@@ -650,6 +4447,32 @@ proto.PurchaseOrder.deserializeBinaryFromReader = function(msg, reader) {
650
4447
  var value = /** @type {string} */ (reader.readString());
651
4448
  msg.setSalesOrderNumber(value);
652
4449
  break;
4450
+ case 37:
4451
+ var value = /** @type {string} */ (reader.readString());
4452
+ msg.setBiddingReferences(value);
4453
+ break;
4454
+ case 38:
4455
+ var value = /** @type {string} */ (reader.readString());
4456
+ msg.setBiddingNumber(value);
4457
+ break;
4458
+ case 39:
4459
+ var value = /** @type {string} */ (reader.readString());
4460
+ msg.setPurchaseRequisitionReferences(value);
4461
+ break;
4462
+ case 40:
4463
+ var value = /** @type {string} */ (reader.readString());
4464
+ msg.setPurchaseRequisitionNumber(value);
4465
+ break;
4466
+ case 41:
4467
+ var value = new proto.Invoice;
4468
+ reader.readMessage(value,proto.Invoice.deserializeBinaryFromReader);
4469
+ msg.addInvoices(value);
4470
+ break;
4471
+ case 42:
4472
+ var value = new proto.GoodReceipt;
4473
+ reader.readMessage(value,proto.GoodReceipt.deserializeBinaryFromReader);
4474
+ msg.addGoodReceipts(value);
4475
+ break;
653
4476
  default:
654
4477
  reader.skipField();
655
4478
  break;
@@ -937,6 +4760,50 @@ proto.PurchaseOrder.serializeBinaryToWriter = function(message, writer) {
937
4760
  f
938
4761
  );
939
4762
  }
4763
+ f = message.getBiddingReferences();
4764
+ if (f.length > 0) {
4765
+ writer.writeString(
4766
+ 37,
4767
+ f
4768
+ );
4769
+ }
4770
+ f = message.getBiddingNumber();
4771
+ if (f.length > 0) {
4772
+ writer.writeString(
4773
+ 38,
4774
+ f
4775
+ );
4776
+ }
4777
+ f = message.getPurchaseRequisitionReferences();
4778
+ if (f.length > 0) {
4779
+ writer.writeString(
4780
+ 39,
4781
+ f
4782
+ );
4783
+ }
4784
+ f = message.getPurchaseRequisitionNumber();
4785
+ if (f.length > 0) {
4786
+ writer.writeString(
4787
+ 40,
4788
+ f
4789
+ );
4790
+ }
4791
+ f = message.getInvoicesList();
4792
+ if (f.length > 0) {
4793
+ writer.writeRepeatedMessage(
4794
+ 41,
4795
+ f,
4796
+ proto.Invoice.serializeBinaryToWriter
4797
+ );
4798
+ }
4799
+ f = message.getGoodReceiptsList();
4800
+ if (f.length > 0) {
4801
+ writer.writeRepeatedMessage(
4802
+ 42,
4803
+ f,
4804
+ proto.GoodReceipt.serializeBinaryToWriter
4805
+ );
4806
+ }
940
4807
  };
941
4808
 
942
4809
 
@@ -1704,6 +5571,154 @@ proto.PurchaseOrder.prototype.setSalesOrderNumber = function(value) {
1704
5571
  };
1705
5572
 
1706
5573
 
5574
+ /**
5575
+ * optional string bidding_references = 37;
5576
+ * @return {string}
5577
+ */
5578
+ proto.PurchaseOrder.prototype.getBiddingReferences = function() {
5579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 37, ""));
5580
+ };
5581
+
5582
+
5583
+ /**
5584
+ * @param {string} value
5585
+ * @return {!proto.PurchaseOrder} returns this
5586
+ */
5587
+ proto.PurchaseOrder.prototype.setBiddingReferences = function(value) {
5588
+ return jspb.Message.setProto3StringField(this, 37, value);
5589
+ };
5590
+
5591
+
5592
+ /**
5593
+ * optional string bidding_number = 38;
5594
+ * @return {string}
5595
+ */
5596
+ proto.PurchaseOrder.prototype.getBiddingNumber = function() {
5597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 38, ""));
5598
+ };
5599
+
5600
+
5601
+ /**
5602
+ * @param {string} value
5603
+ * @return {!proto.PurchaseOrder} returns this
5604
+ */
5605
+ proto.PurchaseOrder.prototype.setBiddingNumber = function(value) {
5606
+ return jspb.Message.setProto3StringField(this, 38, value);
5607
+ };
5608
+
5609
+
5610
+ /**
5611
+ * optional string purchase_requisition_references = 39;
5612
+ * @return {string}
5613
+ */
5614
+ proto.PurchaseOrder.prototype.getPurchaseRequisitionReferences = function() {
5615
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, ""));
5616
+ };
5617
+
5618
+
5619
+ /**
5620
+ * @param {string} value
5621
+ * @return {!proto.PurchaseOrder} returns this
5622
+ */
5623
+ proto.PurchaseOrder.prototype.setPurchaseRequisitionReferences = function(value) {
5624
+ return jspb.Message.setProto3StringField(this, 39, value);
5625
+ };
5626
+
5627
+
5628
+ /**
5629
+ * optional string purchase_requisition_number = 40;
5630
+ * @return {string}
5631
+ */
5632
+ proto.PurchaseOrder.prototype.getPurchaseRequisitionNumber = function() {
5633
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, ""));
5634
+ };
5635
+
5636
+
5637
+ /**
5638
+ * @param {string} value
5639
+ * @return {!proto.PurchaseOrder} returns this
5640
+ */
5641
+ proto.PurchaseOrder.prototype.setPurchaseRequisitionNumber = function(value) {
5642
+ return jspb.Message.setProto3StringField(this, 40, value);
5643
+ };
5644
+
5645
+
5646
+ /**
5647
+ * repeated Invoice invoices = 41;
5648
+ * @return {!Array<!proto.Invoice>}
5649
+ */
5650
+ proto.PurchaseOrder.prototype.getInvoicesList = function() {
5651
+ return /** @type{!Array<!proto.Invoice>} */ (
5652
+ jspb.Message.getRepeatedWrapperField(this, proto.Invoice, 41));
5653
+ };
5654
+
5655
+
5656
+ /**
5657
+ * @param {!Array<!proto.Invoice>} value
5658
+ * @return {!proto.PurchaseOrder} returns this
5659
+ */
5660
+ proto.PurchaseOrder.prototype.setInvoicesList = function(value) {
5661
+ return jspb.Message.setRepeatedWrapperField(this, 41, value);
5662
+ };
5663
+
5664
+
5665
+ /**
5666
+ * @param {!proto.Invoice=} opt_value
5667
+ * @param {number=} opt_index
5668
+ * @return {!proto.Invoice}
5669
+ */
5670
+ proto.PurchaseOrder.prototype.addInvoices = function(opt_value, opt_index) {
5671
+ return jspb.Message.addToRepeatedWrapperField(this, 41, opt_value, proto.Invoice, opt_index);
5672
+ };
5673
+
5674
+
5675
+ /**
5676
+ * Clears the list making it empty but non-null.
5677
+ * @return {!proto.PurchaseOrder} returns this
5678
+ */
5679
+ proto.PurchaseOrder.prototype.clearInvoicesList = function() {
5680
+ return this.setInvoicesList([]);
5681
+ };
5682
+
5683
+
5684
+ /**
5685
+ * repeated GoodReceipt good_receipts = 42;
5686
+ * @return {!Array<!proto.GoodReceipt>}
5687
+ */
5688
+ proto.PurchaseOrder.prototype.getGoodReceiptsList = function() {
5689
+ return /** @type{!Array<!proto.GoodReceipt>} */ (
5690
+ jspb.Message.getRepeatedWrapperField(this, proto.GoodReceipt, 42));
5691
+ };
5692
+
5693
+
5694
+ /**
5695
+ * @param {!Array<!proto.GoodReceipt>} value
5696
+ * @return {!proto.PurchaseOrder} returns this
5697
+ */
5698
+ proto.PurchaseOrder.prototype.setGoodReceiptsList = function(value) {
5699
+ return jspb.Message.setRepeatedWrapperField(this, 42, value);
5700
+ };
5701
+
5702
+
5703
+ /**
5704
+ * @param {!proto.GoodReceipt=} opt_value
5705
+ * @param {number=} opt_index
5706
+ * @return {!proto.GoodReceipt}
5707
+ */
5708
+ proto.PurchaseOrder.prototype.addGoodReceipts = function(opt_value, opt_index) {
5709
+ return jspb.Message.addToRepeatedWrapperField(this, 42, opt_value, proto.GoodReceipt, opt_index);
5710
+ };
5711
+
5712
+
5713
+ /**
5714
+ * Clears the list making it empty but non-null.
5715
+ * @return {!proto.PurchaseOrder} returns this
5716
+ */
5717
+ proto.PurchaseOrder.prototype.clearGoodReceiptsList = function() {
5718
+ return this.setGoodReceiptsList([]);
5719
+ };
5720
+
5721
+
1707
5722
 
1708
5723
  /**
1709
5724
  * List of repeated fields within this message type.
@@ -1769,7 +5784,11 @@ department: jspb.Message.getFieldWithDefault(msg, 21, ""),
1769
5784
  purchaseOrderNumber: jspb.Message.getFieldWithDefault(msg, 22, ""),
1770
5785
  salesOrderNumber: jspb.Message.getFieldWithDefault(msg, 23, ""),
1771
5786
  deliveryOrderNumber: jspb.Message.getFieldWithDefault(msg, 24, ""),
1772
- companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 25, "")
5787
+ companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 25, ""),
5788
+ biddingReferences: jspb.Message.getFieldWithDefault(msg, 26, ""),
5789
+ biddingNumber: jspb.Message.getFieldWithDefault(msg, 27, ""),
5790
+ purchaseRequisitionReferences: jspb.Message.getFieldWithDefault(msg, 28, ""),
5791
+ purchaseRequisitionNumber: jspb.Message.getFieldWithDefault(msg, 29, "")
1773
5792
  };
1774
5793
 
1775
5794
  if (includeInstance) {
@@ -1909,6 +5928,22 @@ proto.BasePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, reade
1909
5928
  var value = /** @type {string} */ (reader.readString());
1910
5929
  msg.setCompaniesReferencesId(value);
1911
5930
  break;
5931
+ case 26:
5932
+ var value = /** @type {string} */ (reader.readString());
5933
+ msg.setBiddingReferences(value);
5934
+ break;
5935
+ case 27:
5936
+ var value = /** @type {string} */ (reader.readString());
5937
+ msg.setBiddingNumber(value);
5938
+ break;
5939
+ case 28:
5940
+ var value = /** @type {string} */ (reader.readString());
5941
+ msg.setPurchaseRequisitionReferences(value);
5942
+ break;
5943
+ case 29:
5944
+ var value = /** @type {string} */ (reader.readString());
5945
+ msg.setPurchaseRequisitionNumber(value);
5946
+ break;
1912
5947
  default:
1913
5948
  reader.skipField();
1914
5949
  break;
@@ -2116,6 +6151,34 @@ proto.BasePurchaseOrderRequest.serializeBinaryToWriter = function(message, write
2116
6151
  f
2117
6152
  );
2118
6153
  }
6154
+ f = message.getBiddingReferences();
6155
+ if (f.length > 0) {
6156
+ writer.writeString(
6157
+ 26,
6158
+ f
6159
+ );
6160
+ }
6161
+ f = message.getBiddingNumber();
6162
+ if (f.length > 0) {
6163
+ writer.writeString(
6164
+ 27,
6165
+ f
6166
+ );
6167
+ }
6168
+ f = message.getPurchaseRequisitionReferences();
6169
+ if (f.length > 0) {
6170
+ writer.writeString(
6171
+ 28,
6172
+ f
6173
+ );
6174
+ }
6175
+ f = message.getPurchaseRequisitionNumber();
6176
+ if (f.length > 0) {
6177
+ writer.writeString(
6178
+ 29,
6179
+ f
6180
+ );
6181
+ }
2119
6182
  };
2120
6183
 
2121
6184
 
@@ -2628,6 +6691,78 @@ proto.BasePurchaseOrderRequest.prototype.setCompaniesReferencesId = function(val
2628
6691
  };
2629
6692
 
2630
6693
 
6694
+ /**
6695
+ * optional string bidding_references = 26;
6696
+ * @return {string}
6697
+ */
6698
+ proto.BasePurchaseOrderRequest.prototype.getBiddingReferences = function() {
6699
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, ""));
6700
+ };
6701
+
6702
+
6703
+ /**
6704
+ * @param {string} value
6705
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6706
+ */
6707
+ proto.BasePurchaseOrderRequest.prototype.setBiddingReferences = function(value) {
6708
+ return jspb.Message.setProto3StringField(this, 26, value);
6709
+ };
6710
+
6711
+
6712
+ /**
6713
+ * optional string bidding_number = 27;
6714
+ * @return {string}
6715
+ */
6716
+ proto.BasePurchaseOrderRequest.prototype.getBiddingNumber = function() {
6717
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
6718
+ };
6719
+
6720
+
6721
+ /**
6722
+ * @param {string} value
6723
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6724
+ */
6725
+ proto.BasePurchaseOrderRequest.prototype.setBiddingNumber = function(value) {
6726
+ return jspb.Message.setProto3StringField(this, 27, value);
6727
+ };
6728
+
6729
+
6730
+ /**
6731
+ * optional string purchase_requisition_references = 28;
6732
+ * @return {string}
6733
+ */
6734
+ proto.BasePurchaseOrderRequest.prototype.getPurchaseRequisitionReferences = function() {
6735
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 28, ""));
6736
+ };
6737
+
6738
+
6739
+ /**
6740
+ * @param {string} value
6741
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6742
+ */
6743
+ proto.BasePurchaseOrderRequest.prototype.setPurchaseRequisitionReferences = function(value) {
6744
+ return jspb.Message.setProto3StringField(this, 28, value);
6745
+ };
6746
+
6747
+
6748
+ /**
6749
+ * optional string purchase_requisition_number = 29;
6750
+ * @return {string}
6751
+ */
6752
+ proto.BasePurchaseOrderRequest.prototype.getPurchaseRequisitionNumber = function() {
6753
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
6754
+ };
6755
+
6756
+
6757
+ /**
6758
+ * @param {string} value
6759
+ * @return {!proto.BasePurchaseOrderRequest} returns this
6760
+ */
6761
+ proto.BasePurchaseOrderRequest.prototype.setPurchaseRequisitionNumber = function(value) {
6762
+ return jspb.Message.setProto3StringField(this, 29, value);
6763
+ };
6764
+
6765
+
2631
6766
 
2632
6767
 
2633
6768