@@ -193,25 +193,27 @@ codeunit 8062 "Billing Proposal"
193193 end ;
194194 end ;
195195
196- if not AutomatedBilling then
197- case BillingTemplate. Partner of
198- Enum ::"Service Partner"::Customer:
199- begin
200- SalesHeaderGlobal. MarkedOnly( true) ;
201- if SalesHeaderGlobal. Count <> 0 then begin
202- Page . Run( Page ::"Sales Credit Memos", SalesHeaderGlobal) ;
203- Message( CreditMemoPreventsProposalCreationLbl) ;
204- end ;
196+ if AutomatedBilling then
197+ exit ;
198+
199+ case BillingTemplate. Partner of
200+ Enum ::"Service Partner"::Customer:
201+ begin
202+ SalesHeaderGlobal. MarkedOnly( true) ;
203+ if SalesHeaderGlobal. Count <> 0 then begin
204+ Page . Run( Page ::"Sales Credit Memos", SalesHeaderGlobal) ;
205+ Message( CreditMemoPreventsProposalCreationLbl) ;
205206 end ;
206- Enum ::"Service Partner"::Vendor:
207- begin
208- PurchaseHeaderGlobal . MarkedOnly ( true ) ;
209- if PurchaseHeaderGlobal. Count <> 0 then begin
210- Page . Run ( Page ::"Purchase Credit Memos", PurchaseHeaderGlobal ) ;
211- Message ( CreditMemoPreventsProposalCreationLbl ) ;
212- end ;
207+ end ;
208+ Enum ::"Service Partner"::Vendor:
209+ begin
210+ PurchaseHeaderGlobal. MarkedOnly ( true ) ;
211+ if PurchaseHeaderGlobal . Count <> 0 then begin
212+ Page . Run ( Page ::"Purchase Credit Memos", PurchaseHeaderGlobal ) ;
213+ Message ( CreditMemoPreventsProposalCreationLbl ) ;
213214 end ;
214- end ;
215+ end ;
216+ end ;
215217 end ;
216218
217219 local procedure ProcessContractServiceCommitments( BillingTemplate: Record "Billing Template"; ContractNo: Code [20 ]; ContractLineFilter: Text ; BillingDate: Date ; BillingToDate: Date ; BillingRhythmFilterText: Text ; AutomatedBilling: Boolean )
0 commit comments