@aldiokta/protocgen 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
- package/prisca/v1/core/currency/currency_pb.js +2522 -0
- package/prisca/v1/core/employee/employee_grpc_pb.js +184 -0
- package/prisca/v1/core/employee/employee_pb.js +3877 -0
- package/prisca/v1/core/job_position/job_position_pb.js +30 -0
- package/prisca/v1/core/organization/organization_pb.js +31 -1
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +2 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +269 -13
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +14 -14
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +4504 -1251
|
@@ -1569,6 +1569,7 @@ proto.JobPosition.prototype.toObject = function(opt_includeInstance) {
|
|
|
1569
1569
|
*/
|
|
1570
1570
|
proto.JobPosition.toObject = function(includeInstance, msg) {
|
|
1571
1571
|
var f, obj = {
|
|
1572
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1572
1573
|
code: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1573
1574
|
name: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1574
1575
|
alias: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
@@ -1615,6 +1616,10 @@ proto.JobPosition.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
1615
1616
|
}
|
|
1616
1617
|
var field = reader.getFieldNumber();
|
|
1617
1618
|
switch (field) {
|
|
1619
|
+
case 1:
|
|
1620
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1621
|
+
msg.setReferencesId(value);
|
|
1622
|
+
break;
|
|
1618
1623
|
case 2:
|
|
1619
1624
|
var value = /** @type {string} */ (reader.readString());
|
|
1620
1625
|
msg.setCode(value);
|
|
@@ -1684,6 +1689,13 @@ proto.JobPosition.prototype.serializeBinary = function() {
|
|
|
1684
1689
|
*/
|
|
1685
1690
|
proto.JobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
1686
1691
|
var f = undefined;
|
|
1692
|
+
f = message.getReferencesId();
|
|
1693
|
+
if (f.length > 0) {
|
|
1694
|
+
writer.writeString(
|
|
1695
|
+
1,
|
|
1696
|
+
f
|
|
1697
|
+
);
|
|
1698
|
+
}
|
|
1687
1699
|
f = message.getCode();
|
|
1688
1700
|
if (f.length > 0) {
|
|
1689
1701
|
writer.writeString(
|
|
@@ -1757,6 +1769,24 @@ proto.JobPosition.serializeBinaryToWriter = function(message, writer) {
|
|
|
1757
1769
|
};
|
|
1758
1770
|
|
|
1759
1771
|
|
|
1772
|
+
/**
|
|
1773
|
+
* optional string references_id = 1;
|
|
1774
|
+
* @return {string}
|
|
1775
|
+
*/
|
|
1776
|
+
proto.JobPosition.prototype.getReferencesId = function() {
|
|
1777
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
1778
|
+
};
|
|
1779
|
+
|
|
1780
|
+
|
|
1781
|
+
/**
|
|
1782
|
+
* @param {string} value
|
|
1783
|
+
* @return {!proto.JobPosition} returns this
|
|
1784
|
+
*/
|
|
1785
|
+
proto.JobPosition.prototype.setReferencesId = function(value) {
|
|
1786
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
|
|
1760
1790
|
/**
|
|
1761
1791
|
* optional string code = 2;
|
|
1762
1792
|
* @return {string}
|
|
@@ -906,7 +906,8 @@ parentReferencesId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
|
906
906
|
organizationLevelReferencesId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
907
907
|
workLocationReferencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
908
908
|
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
909
|
-
description: jspb.Message.getFieldWithDefault(msg, 8, "")
|
|
909
|
+
description: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
910
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
910
911
|
};
|
|
911
912
|
|
|
912
913
|
if (includeInstance) {
|
|
@@ -975,6 +976,10 @@ proto.BaseOrganization.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
975
976
|
var value = /** @type {string} */ (reader.readString());
|
|
976
977
|
msg.setDescription(value);
|
|
977
978
|
break;
|
|
979
|
+
case 9:
|
|
980
|
+
var value = /** @type {string} */ (reader.readString());
|
|
981
|
+
msg.setReferencesId(value);
|
|
982
|
+
break;
|
|
978
983
|
default:
|
|
979
984
|
reader.skipField();
|
|
980
985
|
break;
|
|
@@ -1060,6 +1065,13 @@ proto.BaseOrganization.serializeBinaryToWriter = function(message, writer) {
|
|
|
1060
1065
|
f
|
|
1061
1066
|
);
|
|
1062
1067
|
}
|
|
1068
|
+
f = message.getReferencesId();
|
|
1069
|
+
if (f.length > 0) {
|
|
1070
|
+
writer.writeString(
|
|
1071
|
+
9,
|
|
1072
|
+
f
|
|
1073
|
+
);
|
|
1074
|
+
}
|
|
1063
1075
|
};
|
|
1064
1076
|
|
|
1065
1077
|
|
|
@@ -1207,6 +1219,24 @@ proto.BaseOrganization.prototype.setDescription = function(value) {
|
|
|
1207
1219
|
};
|
|
1208
1220
|
|
|
1209
1221
|
|
|
1222
|
+
/**
|
|
1223
|
+
* optional string references_id = 9;
|
|
1224
|
+
* @return {string}
|
|
1225
|
+
*/
|
|
1226
|
+
proto.BaseOrganization.prototype.getReferencesId = function() {
|
|
1227
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1228
|
+
};
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
/**
|
|
1232
|
+
* @param {string} value
|
|
1233
|
+
* @return {!proto.BaseOrganization} returns this
|
|
1234
|
+
*/
|
|
1235
|
+
proto.BaseOrganization.prototype.setReferencesId = function(value) {
|
|
1236
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1237
|
+
};
|
|
1238
|
+
|
|
1239
|
+
|
|
1210
1240
|
|
|
1211
1241
|
|
|
1212
1242
|
|
|
@@ -6,6 +6,8 @@ var prisca_v1_general_ledger_account_general_ledger_account_pb = require('../../
|
|
|
6
6
|
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
7
|
var prisca_v1_account_group_account_group_pb = require('../../../prisca/v1/account_group/account_group_pb.js');
|
|
8
8
|
var prisca_v1_chart_of_account_chart_of_account_pb = require('../../../prisca/v1/chart_of_account/chart_of_account_pb.js');
|
|
9
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
10
|
+
var prisca_v1_core_currency_currency_pb = require('../../../prisca/v1/core/currency/currency_pb.js');
|
|
9
11
|
|
|
10
12
|
function serialize_CreateGeneralLedgerAccountRequest(arg) {
|
|
11
13
|
if (!(arg instanceof prisca_v1_general_ledger_account_general_ledger_account_pb.CreateGeneralLedgerAccountRequest)) {
|
|
@@ -27,6 +27,10 @@ var prisca_v1_account_group_account_group_pb = require('../../../prisca/v1/accou
|
|
|
27
27
|
goog.object.extend(proto, prisca_v1_account_group_account_group_pb);
|
|
28
28
|
var prisca_v1_chart_of_account_chart_of_account_pb = require('../../../prisca/v1/chart_of_account/chart_of_account_pb.js');
|
|
29
29
|
goog.object.extend(proto, prisca_v1_chart_of_account_chart_of_account_pb);
|
|
30
|
+
var prisca_v1_core_company_company_pb = require('../../../prisca/v1/core/company/company_pb.js');
|
|
31
|
+
goog.object.extend(proto, prisca_v1_core_company_company_pb);
|
|
32
|
+
var prisca_v1_core_currency_currency_pb = require('../../../prisca/v1/core/currency/currency_pb.js');
|
|
33
|
+
goog.object.extend(proto, prisca_v1_core_currency_currency_pb);
|
|
30
34
|
goog.exportSymbol('proto.BaseGeneralLedgerAccount', null, global);
|
|
31
35
|
goog.exportSymbol('proto.CreateGeneralLedgerAccountRequest', null, global);
|
|
32
36
|
goog.exportSymbol('proto.CreateGeneralLedgerAccountResponse', null, global);
|
|
@@ -361,8 +365,13 @@ accountGroupRef: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
|
361
365
|
referencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
362
366
|
createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
363
367
|
updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
368
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
369
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
370
|
+
currencyRef: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
364
371
|
accountGroup: (f = msg.getAccountGroup()) && prisca_v1_account_group_account_group_pb.AccountGroup.toObject(includeInstance, f),
|
|
365
|
-
chartOfAccount: (f = msg.getChartOfAccount()) && prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.toObject(includeInstance, f)
|
|
372
|
+
chartOfAccount: (f = msg.getChartOfAccount()) && prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.toObject(includeInstance, f),
|
|
373
|
+
companies: (f = msg.getCompanies()) && prisca_v1_core_company_company_pb.Company.toObject(includeInstance, f),
|
|
374
|
+
currency: (f = msg.getCurrency()) && prisca_v1_core_currency_currency_pb.Currency.toObject(includeInstance, f)
|
|
366
375
|
};
|
|
367
376
|
|
|
368
377
|
if (includeInstance) {
|
|
@@ -433,15 +442,37 @@ proto.GeneralLedgerAccount.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
433
442
|
msg.setUpdatedAt(value);
|
|
434
443
|
break;
|
|
435
444
|
case 9:
|
|
445
|
+
var value = /** @type {string} */ (reader.readString());
|
|
446
|
+
msg.setCompaniesReferencesId(value);
|
|
447
|
+
break;
|
|
448
|
+
case 10:
|
|
449
|
+
var value = /** @type {string} */ (reader.readString());
|
|
450
|
+
msg.setAccountId(value);
|
|
451
|
+
break;
|
|
452
|
+
case 11:
|
|
453
|
+
var value = /** @type {string} */ (reader.readString());
|
|
454
|
+
msg.setCurrencyRef(value);
|
|
455
|
+
break;
|
|
456
|
+
case 12:
|
|
436
457
|
var value = new prisca_v1_account_group_account_group_pb.AccountGroup;
|
|
437
458
|
reader.readMessage(value,prisca_v1_account_group_account_group_pb.AccountGroup.deserializeBinaryFromReader);
|
|
438
459
|
msg.setAccountGroup(value);
|
|
439
460
|
break;
|
|
440
|
-
case
|
|
461
|
+
case 13:
|
|
441
462
|
var value = new prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount;
|
|
442
463
|
reader.readMessage(value,prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.deserializeBinaryFromReader);
|
|
443
464
|
msg.setChartOfAccount(value);
|
|
444
465
|
break;
|
|
466
|
+
case 14:
|
|
467
|
+
var value = new prisca_v1_core_company_company_pb.Company;
|
|
468
|
+
reader.readMessage(value,prisca_v1_core_company_company_pb.Company.deserializeBinaryFromReader);
|
|
469
|
+
msg.setCompanies(value);
|
|
470
|
+
break;
|
|
471
|
+
case 15:
|
|
472
|
+
var value = new prisca_v1_core_currency_currency_pb.Currency;
|
|
473
|
+
reader.readMessage(value,prisca_v1_core_currency_currency_pb.Currency.deserializeBinaryFromReader);
|
|
474
|
+
msg.setCurrency(value);
|
|
475
|
+
break;
|
|
445
476
|
default:
|
|
446
477
|
reader.skipField();
|
|
447
478
|
break;
|
|
@@ -528,10 +559,31 @@ proto.GeneralLedgerAccount.serializeBinaryToWriter = function(message, writer) {
|
|
|
528
559
|
f
|
|
529
560
|
);
|
|
530
561
|
}
|
|
562
|
+
f = message.getCompaniesReferencesId();
|
|
563
|
+
if (f.length > 0) {
|
|
564
|
+
writer.writeString(
|
|
565
|
+
9,
|
|
566
|
+
f
|
|
567
|
+
);
|
|
568
|
+
}
|
|
569
|
+
f = message.getAccountId();
|
|
570
|
+
if (f.length > 0) {
|
|
571
|
+
writer.writeString(
|
|
572
|
+
10,
|
|
573
|
+
f
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
f = message.getCurrencyRef();
|
|
577
|
+
if (f.length > 0) {
|
|
578
|
+
writer.writeString(
|
|
579
|
+
11,
|
|
580
|
+
f
|
|
581
|
+
);
|
|
582
|
+
}
|
|
531
583
|
f = message.getAccountGroup();
|
|
532
584
|
if (f != null) {
|
|
533
585
|
writer.writeMessage(
|
|
534
|
-
|
|
586
|
+
12,
|
|
535
587
|
f,
|
|
536
588
|
prisca_v1_account_group_account_group_pb.AccountGroup.serializeBinaryToWriter
|
|
537
589
|
);
|
|
@@ -539,11 +591,27 @@ proto.GeneralLedgerAccount.serializeBinaryToWriter = function(message, writer) {
|
|
|
539
591
|
f = message.getChartOfAccount();
|
|
540
592
|
if (f != null) {
|
|
541
593
|
writer.writeMessage(
|
|
542
|
-
|
|
594
|
+
13,
|
|
543
595
|
f,
|
|
544
596
|
prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount.serializeBinaryToWriter
|
|
545
597
|
);
|
|
546
598
|
}
|
|
599
|
+
f = message.getCompanies();
|
|
600
|
+
if (f != null) {
|
|
601
|
+
writer.writeMessage(
|
|
602
|
+
14,
|
|
603
|
+
f,
|
|
604
|
+
prisca_v1_core_company_company_pb.Company.serializeBinaryToWriter
|
|
605
|
+
);
|
|
606
|
+
}
|
|
607
|
+
f = message.getCurrency();
|
|
608
|
+
if (f != null) {
|
|
609
|
+
writer.writeMessage(
|
|
610
|
+
15,
|
|
611
|
+
f,
|
|
612
|
+
prisca_v1_core_currency_currency_pb.Currency.serializeBinaryToWriter
|
|
613
|
+
);
|
|
614
|
+
}
|
|
547
615
|
};
|
|
548
616
|
|
|
549
617
|
|
|
@@ -712,12 +780,66 @@ proto.GeneralLedgerAccount.prototype.setUpdatedAt = function(value) {
|
|
|
712
780
|
|
|
713
781
|
|
|
714
782
|
/**
|
|
715
|
-
* optional
|
|
783
|
+
* optional string companies_references_id = 9;
|
|
784
|
+
* @return {string}
|
|
785
|
+
*/
|
|
786
|
+
proto.GeneralLedgerAccount.prototype.getCompaniesReferencesId = function() {
|
|
787
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* @param {string} value
|
|
793
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
794
|
+
*/
|
|
795
|
+
proto.GeneralLedgerAccount.prototype.setCompaniesReferencesId = function(value) {
|
|
796
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* optional string account_id = 10;
|
|
802
|
+
* @return {string}
|
|
803
|
+
*/
|
|
804
|
+
proto.GeneralLedgerAccount.prototype.getAccountId = function() {
|
|
805
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @param {string} value
|
|
811
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
812
|
+
*/
|
|
813
|
+
proto.GeneralLedgerAccount.prototype.setAccountId = function(value) {
|
|
814
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* optional string currency_ref = 11;
|
|
820
|
+
* @return {string}
|
|
821
|
+
*/
|
|
822
|
+
proto.GeneralLedgerAccount.prototype.getCurrencyRef = function() {
|
|
823
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
824
|
+
};
|
|
825
|
+
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* @param {string} value
|
|
829
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
830
|
+
*/
|
|
831
|
+
proto.GeneralLedgerAccount.prototype.setCurrencyRef = function(value) {
|
|
832
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
/**
|
|
837
|
+
* optional AccountGroup account_group = 12;
|
|
716
838
|
* @return {?proto.AccountGroup}
|
|
717
839
|
*/
|
|
718
840
|
proto.GeneralLedgerAccount.prototype.getAccountGroup = function() {
|
|
719
841
|
return /** @type{?proto.AccountGroup} */ (
|
|
720
|
-
jspb.Message.getWrapperField(this, prisca_v1_account_group_account_group_pb.AccountGroup,
|
|
842
|
+
jspb.Message.getWrapperField(this, prisca_v1_account_group_account_group_pb.AccountGroup, 12));
|
|
721
843
|
};
|
|
722
844
|
|
|
723
845
|
|
|
@@ -726,7 +848,7 @@ proto.GeneralLedgerAccount.prototype.getAccountGroup = function() {
|
|
|
726
848
|
* @return {!proto.GeneralLedgerAccount} returns this
|
|
727
849
|
*/
|
|
728
850
|
proto.GeneralLedgerAccount.prototype.setAccountGroup = function(value) {
|
|
729
|
-
return jspb.Message.setWrapperField(this,
|
|
851
|
+
return jspb.Message.setWrapperField(this, 12, value);
|
|
730
852
|
};
|
|
731
853
|
|
|
732
854
|
|
|
@@ -744,17 +866,17 @@ proto.GeneralLedgerAccount.prototype.clearAccountGroup = function() {
|
|
|
744
866
|
* @return {boolean}
|
|
745
867
|
*/
|
|
746
868
|
proto.GeneralLedgerAccount.prototype.hasAccountGroup = function() {
|
|
747
|
-
return jspb.Message.getField(this,
|
|
869
|
+
return jspb.Message.getField(this, 12) != null;
|
|
748
870
|
};
|
|
749
871
|
|
|
750
872
|
|
|
751
873
|
/**
|
|
752
|
-
* optional ChartOfAccount chart_of_account =
|
|
874
|
+
* optional ChartOfAccount chart_of_account = 13;
|
|
753
875
|
* @return {?proto.ChartOfAccount}
|
|
754
876
|
*/
|
|
755
877
|
proto.GeneralLedgerAccount.prototype.getChartOfAccount = function() {
|
|
756
878
|
return /** @type{?proto.ChartOfAccount} */ (
|
|
757
|
-
jspb.Message.getWrapperField(this, prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount,
|
|
879
|
+
jspb.Message.getWrapperField(this, prisca_v1_chart_of_account_chart_of_account_pb.ChartOfAccount, 13));
|
|
758
880
|
};
|
|
759
881
|
|
|
760
882
|
|
|
@@ -763,7 +885,7 @@ proto.GeneralLedgerAccount.prototype.getChartOfAccount = function() {
|
|
|
763
885
|
* @return {!proto.GeneralLedgerAccount} returns this
|
|
764
886
|
*/
|
|
765
887
|
proto.GeneralLedgerAccount.prototype.setChartOfAccount = function(value) {
|
|
766
|
-
return jspb.Message.setWrapperField(this,
|
|
888
|
+
return jspb.Message.setWrapperField(this, 13, value);
|
|
767
889
|
};
|
|
768
890
|
|
|
769
891
|
|
|
@@ -781,7 +903,81 @@ proto.GeneralLedgerAccount.prototype.clearChartOfAccount = function() {
|
|
|
781
903
|
* @return {boolean}
|
|
782
904
|
*/
|
|
783
905
|
proto.GeneralLedgerAccount.prototype.hasChartOfAccount = function() {
|
|
784
|
-
return jspb.Message.getField(this,
|
|
906
|
+
return jspb.Message.getField(this, 13) != null;
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* optional Company companies = 14;
|
|
912
|
+
* @return {?proto.Company}
|
|
913
|
+
*/
|
|
914
|
+
proto.GeneralLedgerAccount.prototype.getCompanies = function() {
|
|
915
|
+
return /** @type{?proto.Company} */ (
|
|
916
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_company_company_pb.Company, 14));
|
|
917
|
+
};
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* @param {?proto.Company|undefined} value
|
|
922
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
923
|
+
*/
|
|
924
|
+
proto.GeneralLedgerAccount.prototype.setCompanies = function(value) {
|
|
925
|
+
return jspb.Message.setWrapperField(this, 14, value);
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* Clears the message field making it undefined.
|
|
931
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
932
|
+
*/
|
|
933
|
+
proto.GeneralLedgerAccount.prototype.clearCompanies = function() {
|
|
934
|
+
return this.setCompanies(undefined);
|
|
935
|
+
};
|
|
936
|
+
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Returns whether this field is set.
|
|
940
|
+
* @return {boolean}
|
|
941
|
+
*/
|
|
942
|
+
proto.GeneralLedgerAccount.prototype.hasCompanies = function() {
|
|
943
|
+
return jspb.Message.getField(this, 14) != null;
|
|
944
|
+
};
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* optional Currency currency = 15;
|
|
949
|
+
* @return {?proto.Currency}
|
|
950
|
+
*/
|
|
951
|
+
proto.GeneralLedgerAccount.prototype.getCurrency = function() {
|
|
952
|
+
return /** @type{?proto.Currency} */ (
|
|
953
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_currency_currency_pb.Currency, 15));
|
|
954
|
+
};
|
|
955
|
+
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* @param {?proto.Currency|undefined} value
|
|
959
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
960
|
+
*/
|
|
961
|
+
proto.GeneralLedgerAccount.prototype.setCurrency = function(value) {
|
|
962
|
+
return jspb.Message.setWrapperField(this, 15, value);
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* Clears the message field making it undefined.
|
|
968
|
+
* @return {!proto.GeneralLedgerAccount} returns this
|
|
969
|
+
*/
|
|
970
|
+
proto.GeneralLedgerAccount.prototype.clearCurrency = function() {
|
|
971
|
+
return this.setCurrency(undefined);
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* Returns whether this field is set.
|
|
977
|
+
* @return {boolean}
|
|
978
|
+
*/
|
|
979
|
+
proto.GeneralLedgerAccount.prototype.hasCurrency = function() {
|
|
980
|
+
return jspb.Message.getField(this, 15) != null;
|
|
785
981
|
};
|
|
786
982
|
|
|
787
983
|
|
|
@@ -1018,7 +1214,9 @@ accountType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
1018
1214
|
languageDescriptionList: jspb.Message.toObjectList(msg.getLanguageDescriptionList(),
|
|
1019
1215
|
proto.GeneralLedgerLanguage.toObject, includeInstance),
|
|
1020
1216
|
chartOfAccountRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1021
|
-
accountGroupRef: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
1217
|
+
accountGroupRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1218
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
1219
|
+
currencyRef: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
1022
1220
|
};
|
|
1023
1221
|
|
|
1024
1222
|
if (includeInstance) {
|
|
@@ -1072,6 +1270,14 @@ proto.BaseGeneralLedgerAccount.deserializeBinaryFromReader = function(msg, reade
|
|
|
1072
1270
|
var value = /** @type {string} */ (reader.readString());
|
|
1073
1271
|
msg.setAccountGroupRef(value);
|
|
1074
1272
|
break;
|
|
1273
|
+
case 5:
|
|
1274
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1275
|
+
msg.setAccountId(value);
|
|
1276
|
+
break;
|
|
1277
|
+
case 6:
|
|
1278
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1279
|
+
msg.setCurrencyRef(value);
|
|
1280
|
+
break;
|
|
1075
1281
|
default:
|
|
1076
1282
|
reader.skipField();
|
|
1077
1283
|
break;
|
|
@@ -1130,6 +1336,20 @@ proto.BaseGeneralLedgerAccount.serializeBinaryToWriter = function(message, write
|
|
|
1130
1336
|
f
|
|
1131
1337
|
);
|
|
1132
1338
|
}
|
|
1339
|
+
f = message.getAccountId();
|
|
1340
|
+
if (f.length > 0) {
|
|
1341
|
+
writer.writeString(
|
|
1342
|
+
5,
|
|
1343
|
+
f
|
|
1344
|
+
);
|
|
1345
|
+
}
|
|
1346
|
+
f = message.getCurrencyRef();
|
|
1347
|
+
if (f.length > 0) {
|
|
1348
|
+
writer.writeString(
|
|
1349
|
+
6,
|
|
1350
|
+
f
|
|
1351
|
+
);
|
|
1352
|
+
}
|
|
1133
1353
|
};
|
|
1134
1354
|
|
|
1135
1355
|
|
|
@@ -1225,6 +1445,42 @@ proto.BaseGeneralLedgerAccount.prototype.setAccountGroupRef = function(value) {
|
|
|
1225
1445
|
};
|
|
1226
1446
|
|
|
1227
1447
|
|
|
1448
|
+
/**
|
|
1449
|
+
* optional string account_id = 5;
|
|
1450
|
+
* @return {string}
|
|
1451
|
+
*/
|
|
1452
|
+
proto.BaseGeneralLedgerAccount.prototype.getAccountId = function() {
|
|
1453
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
1454
|
+
};
|
|
1455
|
+
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* @param {string} value
|
|
1459
|
+
* @return {!proto.BaseGeneralLedgerAccount} returns this
|
|
1460
|
+
*/
|
|
1461
|
+
proto.BaseGeneralLedgerAccount.prototype.setAccountId = function(value) {
|
|
1462
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* optional string currency_ref = 6;
|
|
1468
|
+
* @return {string}
|
|
1469
|
+
*/
|
|
1470
|
+
proto.BaseGeneralLedgerAccount.prototype.getCurrencyRef = function() {
|
|
1471
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* @param {string} value
|
|
1477
|
+
* @return {!proto.BaseGeneralLedgerAccount} returns this
|
|
1478
|
+
*/
|
|
1479
|
+
proto.BaseGeneralLedgerAccount.prototype.setCurrencyRef = function(value) {
|
|
1480
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
|
|
1228
1484
|
|
|
1229
1485
|
|
|
1230
1486
|
|
|
@@ -29,6 +29,17 @@ function deserialize_CreatePurchaseRequisitionTrxResponse(buffer_arg) {
|
|
|
29
29
|
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.CreatePurchaseRequisitionTrxResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
function serialize_GetPurchaseRequisitionTransactionTrxDetailPreloadResponse(arg) {
|
|
33
|
+
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse)) {
|
|
34
|
+
throw new Error('Expected argument of type GetPurchaseRequisitionTransactionTrxDetailPreloadResponse');
|
|
35
|
+
}
|
|
36
|
+
return Buffer.from(arg.serializeBinary());
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function deserialize_GetPurchaseRequisitionTransactionTrxDetailPreloadResponse(buffer_arg) {
|
|
40
|
+
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
function serialize_GetPurchaseRequisitionTrxByIdRequest(arg) {
|
|
33
44
|
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxByIdRequest)) {
|
|
34
45
|
throw new Error('Expected argument of type GetPurchaseRequisitionTrxByIdRequest');
|
|
@@ -62,17 +73,6 @@ function deserialize_GetPurchaseRequisitionTrxDetailByIdRequest(buffer_arg) {
|
|
|
62
73
|
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxDetailByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
63
74
|
}
|
|
64
75
|
|
|
65
|
-
function serialize_GetPurchaseRequisitionTrxDetailByIdResponse(arg) {
|
|
66
|
-
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxDetailByIdResponse)) {
|
|
67
|
-
throw new Error('Expected argument of type GetPurchaseRequisitionTrxDetailByIdResponse');
|
|
68
|
-
}
|
|
69
|
-
return Buffer.from(arg.serializeBinary());
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function deserialize_GetPurchaseRequisitionTrxDetailByIdResponse(buffer_arg) {
|
|
73
|
-
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxDetailByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
76
|
function serialize_GetPurchaseRequisitionTrxDetailListDetailRequest(arg) {
|
|
77
77
|
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxDetailListDetailRequest)) {
|
|
78
78
|
throw new Error('Expected argument of type GetPurchaseRequisitionTrxDetailListDetailRequest');
|
|
@@ -223,11 +223,11 @@ var PurchaseRequisitionTrxServiceService = exports.PurchaseRequisitionTrxService
|
|
|
223
223
|
requestStream: false,
|
|
224
224
|
responseStream: false,
|
|
225
225
|
requestType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxDetailByIdRequest,
|
|
226
|
-
responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.
|
|
226
|
+
responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTransactionTrxDetailPreloadResponse,
|
|
227
227
|
requestSerialize: serialize_GetPurchaseRequisitionTrxDetailByIdRequest,
|
|
228
228
|
requestDeserialize: deserialize_GetPurchaseRequisitionTrxDetailByIdRequest,
|
|
229
|
-
responseSerialize:
|
|
230
|
-
responseDeserialize:
|
|
229
|
+
responseSerialize: serialize_GetPurchaseRequisitionTransactionTrxDetailPreloadResponse,
|
|
230
|
+
responseDeserialize: deserialize_GetPurchaseRequisitionTransactionTrxDetailPreloadResponse,
|
|
231
231
|
},
|
|
232
232
|
getPurchaseRequisitionWithTrxList: {
|
|
233
233
|
path: '/PurchaseRequisitionTrxService/GetPurchaseRequisitionWithTrxList',
|