<commit_before><?php namespace Picqer\Financials\Exact;

class SalesOrders extends Model
{

    use Query\Findable;
    use Persistance\Storable;

    protected $primaryKey = 'OrderID';

    protected $salesOrderLines = [ ];

    protected $fillable = [
		'AmountDC',
		'AmountFC',
        'Division',
        'Currency',
        'OrderedBy',
        'OrderID',
        'OrderNumber',
        'Customer',
        'YourRef',
        'SalesOrderLines',
        'Document',
        'Description',
        'Status',
        'PaymentCondition',
        'Remarks',
        'Salesperson',
        'DeliverTo',
    ];

	    public function addItem(array $array)
    {
        if ( ! isset( $this->attributes['SalesOrderLines'] ) || $this->attributes['SalesOrderLines'] == null) {
            $this->attributes['SalesOrderLines'] = [ ];
        }
        if ( ! isset( $array['LineNumber'] )) {
            $array['LineNumber'] = count($this->attributes['SalesOrderLines']) + 1;
        }
        $this->attributes['SalesOrderLines'][] = $array;
    }


    protected $url = 'salesorder/SalesOrders';<commit_msg>WarehouseID in SalesOrders<commit_after><?php

namespace Picqer\Financials\Exact;

class SalesOrders extends Model {

	use Query\Findable;

use Persistance\Storable;

	protected $primaryKey = 'OrderID';
	protected $salesOrderLines = [];
	protected $fillable = [
		'AmountDC',
		'AmountFC',
		'Division',
		'Currency',
		'OrderedBy',
		'OrderID',
		'OrderNumber',
		'Customer',
		'YourRef',
		'SalesOrderLines',
		'Document',
		'Description',
		'Status',
		'PaymentCondition',
		'Remarks',
		'Salesperson',
		'DeliverTo',
		'WarehouseID',
	];

	public function addItem(array $array) {
		if (!isset($this->attributes['SalesOrderLines']) || $this->attributes['SalesOrderLines'] == null) {
			$this->attributes['SalesOrderLines'] = [];
		}
		if (!isset($array['LineNumber'])) {
			$array['LineNumber'] = count($this->attributes['SalesOrderLines']) + 1;
		}
		$this->attributes['SalesOrderLines'][] = $array;
	}

	protected $url = 'salesorder/SalesOrders';
{'fraction_non_alphanumeric': 0.1640701071080818, 'fraction_numerical': 0.0009737098344693282, 'mean_word_length': 3.228395061728395, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '402960', 'n_tokens_mistral': 700, 'n_tokens_neox': 642, 'n_words': 112}