|
1 | 1 | namespace Microsoft.SubscriptionBilling; |
2 | 2 |
|
3 | 3 | using System.Text; |
4 | | -using System.Reflection; |
5 | 4 | using Microsoft.Utilities; |
6 | 5 | using Microsoft.Sales.Document; |
7 | 6 | using Microsoft.Inventory.Item; |
@@ -191,28 +190,11 @@ codeunit 8073 "Sales Report Printout Mgmt." |
191 | 190 | end; |
192 | 191 | end; |
193 | 192 |
|
194 | | - local procedure CheckAppendAsteriskToFormattedLineAmount(SourceRecord: Variant): Boolean |
| 193 | + local procedure CheckAppendAsteriskToFormattedLineAmount(SalesLine: Record "Sales Line"): Boolean |
195 | 194 | begin |
196 | | - exit(IsServiceCommitmentItem(SourceRecord)); |
197 | | - end; |
198 | | - |
199 | | - local procedure IsServiceCommitmentItem(SourceRecord: Variant): Boolean |
200 | | - var |
201 | | - SalesLine: Record "Sales Line"; |
202 | | - DataTypeManagement: Codeunit "Data Type Management"; |
203 | | - RecRef: RecordRef; |
204 | | - SourceRecordNotDefinedForProcessingErr: Label 'Table %1 %2 has not been defined for processing.', Comment = '%1 = Table ID, %2 = Table Name'; |
205 | | - begin |
206 | | - DataTypeManagement.GetRecordRef(SourceRecord, RecRef); |
207 | | - case RecRef.Number of |
208 | | - Database::"Sales Line": |
209 | | - begin |
210 | | - RecRef.SetTable(SalesLine); |
211 | | - exit(SalesLine.IsServiceCommitmentItem()); |
212 | | - end; |
213 | | - else |
214 | | - Error(SourceRecordNotDefinedForProcessingErr, RecRef.Number, RecRef.Caption()); |
215 | | - end; |
| 195 | + if not (SalesLine."Document Type" in [SalesLine."Document Type"::Quote, SalesLine."Document Type"::Order]) then |
| 196 | + exit(false); |
| 197 | + exit(SalesLine.IsServiceCommitmentItem()); |
216 | 198 | end; |
217 | 199 |
|
218 | 200 | local procedure AppendAsteriskToText(var TextToAppendAsterisk: Text) |
|
0 commit comments