| Quote |
|---|
| You may choose to check the balance after writing the record set. Usually this method is better choice in terms of overall system performance, so we recommend it. |
Is this method used in 1C:AccountingSuite?
I downloaded the 1C:AccountingSuite v. 1.1.32.76 and looked at the source of SalesInvoice.Posting().
I see what looks like a use of the new method:
| Code |
|---|
// 1. Common postings clearing / reactivate manual ajusted postings
// 2. Skip manually adjusted documents
// 3. Create structures with document data to pass it on the server
// 4. Collect document data, available for posing, and fill created structure
// 5. Fill register records with document's postings
// 6. Write document postings to register
// 7. Check register blanaces according to document's changes
// 8. Clear used temporary document data
|
However, when I debugged the code I noticed that the balance check is not executed at step 7, but later:
| Code |
|---|
// OLD Posting
...
If NOT AllowNegativeInventory Then
Cancel = True;
Return;
EndIf;
|
What is the situation with 1C:AccountingSuite?
Is there a configuration available where I could study this method to understand it fully?