Skip to content

Commit

Permalink
Merge pull request #141 from asvyazin/ddekb-2347
Browse files Browse the repository at this point in the history
document number is optional for acceptance certificate and reconciliation act
  • Loading branch information
asvyazin authored Apr 4, 2017
2 parents 29f6b77 + 6f7eb5b commit 28a7b5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions proto/Events/DiadocMessage-PostApi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ message AcceptanceCertificateAttachment {
repeated DocumentId InitialDocumentIds = 4;
repeated DocumentId SubordinateDocumentIds = 5;
required string DocumentDate = 6;
required string DocumentNumber = 7;
optional string DocumentNumber = 7 [default=""];
required string Total = 8;
optional string CustomDocumentId = 9;
optional string Vat = 10;
Expand Down Expand Up @@ -206,7 +206,7 @@ message ReconciliationActAttachment {
repeated DocumentId InitialDocumentIds = 5;
repeated DocumentId SubordinateDocumentIds = 6;
required string DocumentDate = 7;
required string DocumentNumber = 8;
optional string DocumentNumber = 8 [default = ""];
optional string CustomDocumentId = 9;
optional bool NeedReceipt = 10 [default = false];
repeated CustomDataItem CustomData = 11;
Expand Down
12 changes: 8 additions & 4 deletions src/Proto/Events/DiadocMessage-PostApi.proto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,10 @@ public string DocumentDate
get { return _DocumentDate; }
set { _DocumentDate = value; }
}
private string _DocumentNumber;
[global::ProtoBuf.ProtoMember(7, IsRequired = true, Name=@"DocumentNumber", DataFormat = global::ProtoBuf.DataFormat.Default)]

private string _DocumentNumber = "";
[global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"DocumentNumber", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string DocumentNumber
{
get { return _DocumentNumber; }
Expand Down Expand Up @@ -1281,8 +1283,10 @@ public string DocumentDate
get { return _DocumentDate; }
set { _DocumentDate = value; }
}
private string _DocumentNumber;
[global::ProtoBuf.ProtoMember(8, IsRequired = true, Name=@"DocumentNumber", DataFormat = global::ProtoBuf.DataFormat.Default)]

private string _DocumentNumber = "";
[global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"DocumentNumber", DataFormat = global::ProtoBuf.DataFormat.Default)]
[global::System.ComponentModel.DefaultValue("")]
public string DocumentNumber
{
get { return _DocumentNumber; }
Expand Down

0 comments on commit 28a7b5d

Please sign in to comment.