File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,8 @@ public function setValue(Money $value): BaseTransactionLine
115
115
}
116
116
117
117
/**
118
- * Payment status of the sales transaction. If line type detail or vat always notmatchable. Read-only attribute.
118
+ * Payment status of the sales transaction. If line type detail or vat always notmatchable, according to the documentation.
119
+ * However, in practice this appears to be untrue for detail, see issue #177. Read-only attribute.
119
120
*
120
121
* @param string|null $matchStatus
121
122
* @return $this
@@ -125,7 +126,7 @@ public function setMatchStatus(?string $matchStatus): BaseTransactionLine
125
126
{
126
127
if (
127
128
$ matchStatus !== null &&
128
- in_array ( $ this ->getLineType (), [LineType:: DETAIL (), LineType::VAT ()] ) &&
129
+ $ this ->getLineType () === LineType::VAT () &&
129
130
$ matchStatus != self ::MATCHSTATUS_NOTMATCHABLE
130
131
) {
131
132
throw Exception::invalidMatchStatusForLineType ($ matchStatus , $ this );
You can’t perform that action at this time.
0 commit comments