Posting of document is changing date every time

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company:

Hi!
I have a problem with document posting: all the time when I post it the date is changed to current. It's very dangerous if it is reposted the date which was stored in it is lost! What can I do to fix it?

 
#2
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Sep 16, 2011
Company: individual

Use something like that in your document's Object module

Code
Procedure BeforeWrite(Cancel, WriteMode, PostingMode)
   If Not Ref.IsEmpty() Then
      PostingMode = DocumentPostingMode.Regular;
   EndIf;
EndProcedure

 
#3
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Document form have property UsePostingMode and you can select Non-real-time.

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.