Individual Invoicing Of Payments_Contract with services
!!! When calculating the payment schedule, the system checks the completion of all posting groups in the payment calendars for services, insurance, and customer (total payment calendar). If there is no posting group, the system will not calculate the payment schedule, it will display a message to the User when activating the contract or calculating the payment schedule. If the combination of posting groups for VAT calculation is not in the VAT posting setup, the system will not post the invoice, it will display a message to the User.
When posting an individual payment directly from a payment calendar line, the user marks the line and runs the Post function.
After you run the Post function, the system:
If the contract flag is Financing with Services=Y
The system checks the Payments Billing Method (4026635) in the Customer table (18) and then proceeds according to this value:
Separately for Contract
The user does not see a dialog window to change the Posting Date and VAT Date
Other values (Collectively for Contract, Collectively for Customer, Collectively for Customer Business Places, Collectively for Customer and Calc.Type, Collectively for Framework Agreement), the system displays a dialog box with fields when the function runs:
Posting Date
By default, fill the Workdate system, the user can manually change the
VAT Date
By default, fill the Workdate system, the user can manually change the
Customer-facing settings: field Payment Billing Method = Collectively per customer
To display a dialog box:
After confirmation, the system performs another check:
Whether the absolute value of the "Amount" field is <= than the value of the field "Tolerance for creating a document from SP (LCY)" from "Onecore settings" (if the contract is in a currency other than the local currency, then the system will recalculate the value of the field "Tolerance for creating a document from SP (LCY)" from "Onecore setup" according to the current exchange rate as of the system date)
If YES, then the system will ask:
The default value is given according to the current value of the "Amount" field, if "Amount" is >= 0 then Invoice is checked, otherwise Credit note (the creation of a credit note is described in chapter Posting a Credit Memo from a Payment Calendar).
User can changeAfter confirmation, the system creates a document according to the current functionality. If it creates a posted document and an error is displayed on the amount of the document, then the user starts posting again and selects the second type of document
Goes on
If NO, the job continues
The system creates a document to which it overwrites the dates from the first dialog window - into the sales invoice (in the case of a negative RS line and credit note - description in the chapter Posting a credit memo from a payment calendar) as follows:
Posting Date - from the dialog box
VAT Date - from the dialog window
Due Date:
according to the value of Payments Billing Method (4026635) on Customer (18):
Collectively for Contract, Collectively for Customer, Collectively for Customer Business Places, Collectively for Customer and Calc.Type
calculates Due Date=Posting Date + the number of days per payment terms code from the customer from the Payment Terms Code § field (same as in the Post Financing Payment with Services mass job).
Collectively for Framework Agreement
calculates Due Date=Posting Date + number of days according to the payment terms code from API Master Agreement (4026497) from the Payment Terms Code (190, Code) field. The Master Agreement number is found in the header of the financing contract in the Master Agreement No. (4026670) field from the API Financing Contract Header (4026397).
When a sales invoice (credit memo) is posted, the system overwrites the dates (Posting Date, VAT Date, and Due Date) into the payment calendar for that payment.
In the header of the invoice, the following fields are also filled in:
Invoice Print Type = Payment
Contract Code = Contract to be invoiced from
VAT Posting Group = From Contract Card
Customer Posting Group = From Contract Card