Creates a new Asset Rental

Parameters

asset ID

The ID of the asset to be rented.

movement_id

The ID of the customer the asset is getting rented by.

start_time

Date the rental period will start from (YYYY-MM-DD).

end_time

Date the rental persiod will end (YYYY-MM-DD).

periodicity

Period of rental in days, weeks, months or years (1 - Day, 2 - Week, 3 - Month, 4 - Year) .

rental_per_period

Price of the rental per period.

total

Total value of the rental

notes

Notes for the rental.

Example

FM_api('AssetRental_new', ['asset_id' => '2',
                         'movement_id' => '33',
  												 'start_time' => '2018-10-15',
	  											 'end_time' => '2018-10-16',
		  										 'periodicity' =>  '4',
			  									 'rental_per_period' => '1000.00',
				  								 'total' => '1000.00',
					  							 'notes' => 'Example Note']);

On Success

"{"ok":1}"