Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function getLineTranformedOrder($stockmove)
- {
- $navOrderLine = new NavOrderLinesTemplate();
- return $navOrderLine
- ->Order_No = $this->order['Order']['docnumber']
- ->Customer_VAT_Registration_No = $this->order['Master']['User']['cnp']
- ->Card_No = $this->order['Master']['User']['card']
- ->Cust_Company_No = $this->order['Company']['id']
- ->Company_Name = $this->order['Company']['name']
- ->Commerce_Trade_No = $this->order['Company']['norc']
- ->VAT_Reg_No = $this->order['Company']['cui']
- ->Company_Address = $this->order['Company']['county']
- ->Bank_No = $this->order['Company']['bank_no']
- ->Bank_Name = $this->order['Company']['bank']
- ->Bank_Address = $this->order['Company']['bankaddress']
- ->IBAN = $this->order['Company']['iban']
- ->Invoice_Amount = $this->order['Company']['total']
- ->From_BV = $this->orderIsFromBv()
- ->Customer_No = $this->getCustomerNo()
- ->Location_Code = $this->getLocationCode()
- ->Customer_Name = $this->getCustomerName()
- ->Company_Invoice = $this->isCompanyInvoice()
- ->Bank_No = $this->getBankNo()
- ->Order_Date = $this->getOrderDate()
- ->Customer_Address = $this->formatAddress($this->order['Order']['invoice_address'])
- ->Customer_Ship_to_Address = $this->formatAddress($this->order['Order']['delivery_address'])
- ->Item_No = $stockmove['sku']
- ->Quantity = $stockmove['ordered_quantity']
- ->Unit_Price = $stockmove['price_without_vat']
- ->Line_Amount_incl_VAT = ($stockmove['ordered_quantity'] * $stockmove['price'])
- ->Points_Discount = $stockmove['no_vat_unit_used_points']
- ->Line_Discount = '0';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement