Обязательные параметры счета в файле XML:
- Дата;
- Номер - будет соответствовать номеру на сайте?
- Контрагент;
- Договор с контрагентом – будет браться из основного договора контрагента;
- Банковский счет;
- Товары и услуги:
- Номенклатура;
- Количество;
- Цена ;
Обязательные параметры счета в файле XML:
| # See https://www.thomaskeller.biz/blog/2011/06/04/acls-on-mac-os-x/ | |
| $ cd ~/bittorrent | |
| $ mkdir private | |
| $ chmod -R +a '<username> allow read,write,delete,add_file,add_subdirectory,file_inherit,directory_inherit' private | |
| $ chmod -R +a# 1 'everyone deny read,write,delete,add_file,add_subdirectory,file_inherit,directory_inherit' private |
| /usr/local/bin/gpg --batch --passphrase-file ~/.gnupg/key.txt --no-tty "$@" |
| extension NSData { | |
| private func getHash( | |
| algorithm: (UnsafePointer<Void>, CC_LONG, UnsafeMutablePointer<UInt8>) -> UnsafeMutablePointer<UInt8>, | |
| digestLength: Int32 | |
| ) -> String { | |
| let digestLen = Int(digestLength) | |
| let fileLen = CUnsignedInt(self.length) | |
| let buffer = UnsafeMutablePointer<CUnsignedChar>.alloc(digestLen) | |
| algorithm(self.bytes, fileLen, buffer) |
| var api = new ParseServer({ | |
| databaseURI: databaseUri || 'mongodb://localhost:27017/dev', | |
| cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', | |
| appId: process.env.APP_ID || 'myAppId', | |
| masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret! | |
| serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed | |
| liveQuery: { | |
| classNames: ["Posts", "Comments"] // List of classes to support for query subscriptions | |
| }, | |
| allowClientClassCreation: process.env.CLIENT_CLASS_CREATION || false // <<< This line is added for disabling client class creation |
| let parseConfiguration = ParseClientConfiguration(block: { (ParseMutableClientConfiguration) -> Void in | |
| ParseMutableClientConfiguration.applicationId = "myAppId" | |
| ParseMutableClientConfiguration.clientKey = "myMasterKey" // This is wrong! Never put your master key into the sources. | |
| ParseMutableClientConfiguration.server = "https://anotherdarntest.herokuapp.com/parse" | |
| }) | |
| Parse.initializeWithConfiguration(parseConfiguration) |
| // MARK: - CLLocationManagerDelegate | |
| func locationManager(manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) { | |
| if let location = locations.first { | |
| var text = "location: \(location.coordinate.latitude), \(location.coordinate.longitude)\n" | |
| text += "course: \(location.course)\n" | |
| text += "speed: \(location.speed)\n" | |
| text += "altitude: \(location.altitude)\n" | |
| CLGeocoder().reverseGeocodeLocation(location, completionHandler: { (placemarks, error) -> Void in | |
| if error != nil { |
| window.originalSetTimeout=window.setTimeout; | |
| window.originalClearTimeout=window.clearTimeout; | |
| window.activeTimers=[]; | |
| window.setTimeout=function(func,delay) | |
| { | |
| var id = window.originalSetTimeout(func,delay); | |
| window.activeTimers[id] = {"func": func, "delay": delay}; | |
| return id; | |
| }; |
| #!/usr/bin/env ruby | |
| element = '1' | |
| elements_count = ARGV[0].to_i | |
| max_count = 20 | |
| if elements_count == 0 | |
| print "Write a number of sequence elements to print as an argument for the script. It should be between 1 and #{max_count}.\n" | |
| exit |
| <?php | |
| function getNDaysBack($daysCount, $php_format = false) { | |
| // php_format должен быть равен 'Y-m-d' для выборки по свойствам CIBlockElement::GetList | |
| // в остальных случаях, например, для CSaleOrder::GetList этот параметр не нужно указывать | |
| if($php_format === false) { | |
| // получим полный формат сайта | |
| $site_format = CSite::GetDateFormat("FULL"); | |
| global $DB; | |
| // переведем формат сайта в формат PHP |