Subversion Repositories SmartDukaan

Rev

Rev 1341 | Rev 1910 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1341 Rev 1348
Line 86... Line 86...
86
 
86
 
87
def to_t_vendor(vendor):
87
def to_t_vendor(vendor):
88
    t_vendor = Vendor()
88
    t_vendor = Vendor()
89
    t_vendor.id = vendor.id
89
    t_vendor.id = vendor.id
90
    t_vendor.name = vendor.name
90
    t_vendor.name = vendor.name
-
 
91
    return t_vendor
91
 
92
 
92
def to_t_vendor_item_pricing(vendor_item_pricing):
93
def to_t_vendor_item_pricing(vendor_item_pricing):
93
    t_vendor_item_pricing = VendorItemPricing()
94
    t_vendor_item_pricing = VendorItemPricing()
94
    t_vendor_item_pricing.vendor = to_t_vendor(vendor_item_pricing.vendor)
95
    t_vendor_item_pricing.vendorId = vendor_item_pricing.vendor.id
95
    t_vendor_item_pricing.item = to_t_item(vendor_item_pricing.item)
96
    t_vendor_item_pricing.itemId = vendor_item_pricing.item.id
96
    t_vendor_item_pricing.transferPrice = vendor_item_pricing.transfer_price
97
    t_vendor_item_pricing.transferPrice = vendor_item_pricing.transfer_price
97
    t_vendor_item_pricing.dealerPrice = vendor_item_pricing.dealerPrice
98
    t_vendor_item_pricing.dealerPrice = vendor_item_pricing.dealerPrice
98
    t_vendor_item_pricing.mop = vendor_item_pricing.mop
-
 
99
99
    t_vendor_item_pricing.mop = vendor_item_pricing.mop
-
 
100
    return t_vendor_item_pricing
-
 
101
100
102