Example #1
0
        private void SynchronizePsOrderRow(OrderEntity order, PsOrderRow psRow)
        {
            var row = order.GetRowByWebId((int)psRow.id);

            if (row == null)
            {
                row       = AddNewRow(order, psRow);
                row.WebId = (int)psRow.id;
            }
            else
            {
                UpdateRow(row, psRow);
            }
        }
Example #2
0
 private void UpdateRow(OrderRowEntity row, PsOrderRow psRow)
 {
     row.ChangeQuantity(psRow.product_quantity);
 }
Example #3
0
 private OrderRowEntity AddNewRow(OrderEntity order, PsOrderRow psRow)
 {
     return(AddNewRow(order, (int)psRow.product_id, psRow.product_quantity));
 }