Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.87 KB | None | 0 0
  1. private function getLineTranformedOrder($stockmove)
  2.     {
  3.         $navOrderLine = new NavOrderLinesTemplate();
  4.         return $navOrderLine
  5.             ->Order_No = $this->order['Order']['docnumber']
  6.             ->Customer_VAT_Registration_No = $this->order['Master']['User']['cnp']
  7.             ->Card_No = $this->order['Master']['User']['card']
  8.             ->Cust_Company_No = $this->order['Company']['id']
  9.             ->Company_Name = $this->order['Company']['name']
  10.             ->Commerce_Trade_No = $this->order['Company']['norc']
  11.             ->VAT_Reg_No = $this->order['Company']['cui']
  12.             ->Company_Address = $this->order['Company']['county']
  13.             ->Bank_No = $this->order['Company']['bank_no']
  14.             ->Bank_Name = $this->order['Company']['bank']
  15.             ->Bank_Address = $this->order['Company']['bankaddress']
  16.             ->IBAN = $this->order['Company']['iban']
  17.             ->Invoice_Amount = $this->order['Company']['total']
  18.             ->From_BV = $this->orderIsFromBv()
  19.             ->Customer_No = $this->getCustomerNo()
  20.             ->Location_Code = $this->getLocationCode()
  21.             ->Customer_Name = $this->getCustomerName()
  22.             ->Company_Invoice = $this->isCompanyInvoice()
  23.             ->Bank_No = $this->getBankNo()
  24.             ->Order_Date = $this->getOrderDate()
  25.             ->Customer_Address = $this->formatAddress($this->order['Order']['invoice_address'])
  26.             ->Customer_Ship_to_Address = $this->formatAddress($this->order['Order']['delivery_address'])
  27.             ->Item_No = $stockmove['sku']
  28.             ->Quantity = $stockmove['ordered_quantity']
  29.             ->Unit_Price = $stockmove['price_without_vat']
  30.             ->Line_Amount_incl_VAT = ($stockmove['ordered_quantity'] * $stockmove['price'])
  31.             ->Points_Discount = $stockmove['no_vat_unit_used_points']
  32.             ->Line_Discount = '0';
  33.  
  34.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement